PDA

View Full Version : Bugs with lights.



Bahamut_france
03-20-2001, 04:20 AM
Hi.
When I add a light in spot mode, for example, if I rotate the view around a cube, the lightning if different in function of the view angle. is it really a bug og openGl? and exist a method to resolve this problem ?
Thanks for help

Lars
03-20-2001, 04:41 AM
If understand it right, your problem is that OpenGL translates the lights position by the current ViewMatrix when setting the lightsource. If you don't wan't tat, you have to set the identity matrix before setting the light.

Lars