View Full Version : Light Positioning

10-27-2001, 01:27 AM
In my flight simulator i use gluLookAt to change my view, but the Light position changes with the gluLookAt transformations, so when i move the light source also moves, how can i correct this so the light source stays constant relative to the ground and not to the camera??

10-27-2001, 01:37 AM
Create the lightsource after you call gluLookAt. The lightsource is transformed by the MODELVIEW matrix stack.