Skip to main content
gamedev.net
šŸ”’ Locked

Lighting problem...

Started by Orb Oct 21, 2003 at 11:58 AM 0 replies 250+ views
Original Post
Orb
Orb
This happens to me all the time, but I always disregarded it. I''m trying to render some animated water, and it''s working, but I''m having problems with the light that I set up. When ever I rotate the camera down, the light fades, and the water becomes darker. When I rotate the camera up, the water gets lighter. It''s almost as if the light is view dependant, but I never set that.
FlyingDemon
FlyingDemon
I had the same problem before when i started to use gluLookAt.

It happened when i used:
(glLightfv(GL_LIGHT0, GL_POSITION, lightPosition) or your equivelent) before calling gluLookAt.

I fixed it by calling it after gluLookAt.

Hope that helps.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.