Free OpenGL Example
Click here to go to the OpenGL template

FreeWorld Tutorial


By Alan Baylis 21/07/2003



Static Lights

The static lights are used in the world loader/viewer to illuminate the world using light mapping. The static lights are represented in the perspective window as wire frame spheres and by circles in the orthogonal windows. You can move the static lights within the orthogonal windows by left clicking and dragging on the center control point or resize the lights diameter by left clicking and dragging on the control point on the circles perimeter. From the static light properties window you can select the current static light by using the drop down list near the top, next to this is a check box to set the current lights visibility state in the editor, this has no effect within the viewer as all lights are treated as visible. You can change the color of the light by clicking on the button next to the check box, this color is used within the viewer. Below the color button you can add, delete, save and load the lights. On the right of the properties window you can manually enter the position and radius values for the current light and also set the light brightness value. Setting the brightness of the light takes a bit of practice, but try setting the brightness to a overly high value to start with and then test them in the world, if the lights are brighter than you want you can then load the lights back into the editor to make the changes, if the brightness is set too low or the light is outside of the world then the polygons will not be illuminated.

Above Content Copyright © 1998 - 2005 Alan Baylis, All Rights Reserved