Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

camera position affects polygon shading

Started by slikrik Dec 8, 2005 at 9:27 AM 1 replies 300+ views
Original Post
slikrik
slikrik
Greetings-- this is a problem I encountered quite a while back, and it's suddenly sprung back up and I can't seem to find the root cause. I have some primitive polygons in my scene, GL_QUADs to be exact, with normals specified. The shading of the polygons, however, seems to be dependent on where my camera is (it seems that the *darkness* follows my camera). What am I forgetting? Thanks!
ViLiO
ViLiO
Hi,

I think you will need to give us more details...

What type of lighting are you using (omni,spot,directional)?
Are you setting the light position after you have set your view matrix?

Regards,
ViLiO
Richard 'ViLiO' Thomasv.net | Twitter | YouTube
slikrik
slikrik
Vilio: you hit the nail on the head, I was setting the light position in my init() function and then never again. Thanks!

Topic Locked

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

Sign in to reply to this topic.