PDA

View Full Version : Light problem



Claudio
09-27-2000, 11:57 PM
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?

jonas
09-28-2000, 01:14 AM
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.

Claudio
09-28-2000, 01:23 AM
The plane is in x/z coordinate and the normal is set only once time to (0,0,1)

09-29-2000, 11:15 PM
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...

Claudio
09-30-2000, 02:26 AM
i have just do it.... but it reamain seam

Rob
09-30-2000, 07:27 AM
If your plane is really in the x/z plane, your normal should be (0,1,0), not (0,0,1).

09-30-2000, 11:15 AM
Do you call glLightf(blah, blah, blah) each frame?

If you don't do this the light looks like you described.