In my scene i have the default light in default position, and a quad and a plane that rotate…
The problem is the plane…
When it rotate on y axis, the light seam turn on and off, by if i stop the plane the light seam right
Any one has an answer?
In my scene i have the default light in default position, and a quad and a plane that rotate…
The problem is the plane…
When it rotate on y axis, the light seam turn on and off, by if i stop the plane the light seam right
Any one has an answer?
Do you have your normals correctly placed ? I had a problem similar to yours and solved it when I started messing around with my normal values.
The plane is in x/z coordinate and the normal is set only once time to (0,0,1)
Originally posted by Claudio:
The plane is in x/z coordinate and the normal is set only once time to (0,0,1)
Just try to put a glPushMatrix() (refferd to MODELVIEW) and glPopMatrix() around your rotation code…
i have just do it… but it reamain seam
If your plane is really in the x/z plane, your normal should be (0,1,0), not (0,0,1).
Do you call glLightf(blah, blah, blah) each frame?
If you don’t do this the light looks like you described.