laprej
04-14-2004, 07:57 PM
Hey all,
This is the first time I've had lighting on while calling gluLookAt, and I got some weird results. I know gluLookAt messes with the model-view matrix, I'm not exactly sure what it does, though. I wanted a directional light (the sun) at (1,1,1). It would come down over my right shoulder. It did before I put the gluLookAt in there. Is there any way to determine what the location should be if I want the same/similar lighting effect?
This is the first time I've had lighting on while calling gluLookAt, and I got some weird results. I know gluLookAt messes with the model-view matrix, I'm not exactly sure what it does, though. I wanted a directional light (the sun) at (1,1,1). It would come down over my right shoulder. It did before I put the gluLookAt in there. Is there any way to determine what the location should be if I want the same/similar lighting effect?