Advertisement

Lighting position problem

Started by November 09, 2001 03:07 AM
0 comments, last by KILE 23 years, 3 months ago
Hi. I have a problem with Light. In my render function I use gluLookAt to position camera in the scene. At the Initialization() function I position the light at for example (100,100,0) but when I move the camera, the light also move, and I don''t know how to make this one fixed. For example, If I have a cube in (200,200,200) and I load the light at this position too, if I move my camera I want that the light move with the cube also. A lot of thank
goto www.opengl.org and check out the faq (link right side of page)

This topic is closed to new replies.

Advertisement