View Full Version : light points in a 3d world

04-04-2002, 01:00 PM
i am trying to get a light source to begin at the origin of the system, I have objects rotating around the light source. The problem is that I can't get the light to reflect off the surface facing the light source, it reflects the light is if it was coming from the behind the viewer. If anyone knows what i am doing wrong please help.

04-05-2002, 08:39 AM
The light position is transformed by the current
modelview matrix. Set the light position after
you set the matrix.