Archived

This topic is now archived and is closed to further replies.

KILE

Lighting position problem

Recommended Posts

KILE    122
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

Share this post


Link to post
Share on other sites