View Full Version : lighting surface
09-26-2002, 10:08 AM
I am trying to draw a surface with lighting effect. My surface is formed by many small triangles. I calculated the normal vector at each vertex of the triangles very carefully and I use a directional light source. However, the surface is dim. It looks something is wrong. Can anyone give me a hint of the possible problem? Thank you very much!
09-26-2002, 10:51 AM
My triangle winding direction is Counterclockwise. In fact, I tried both glFrontFace(GL_CW) and glFrontFace(GL_CCW) and I got the same result.
09-26-2002, 01:00 PM
I got lighting effect. However, both the up side and down side of the surface is light. What is the problem? the down side suppose to be dim, right?
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.