glNormal?

Started by
4 comments, last by kill 23 years, 9 months ago
Can someone tell me what exactly does glNormal do, what does it affect, and how is it used? Thanks.
Advertisement
glnormal specify the normal,orthogonal perpendicolar or whatever you want to call it for you polygon.
it affect most lighting ,clipping and can be used for collision
I knew that

So basically for every triangle I draw I should specify glNormal? What if I don''t specify it, can you tell me exactly what differences I''m gonna have?
Normals are used for lighting. If you use lighting, you must specify normals. If you don''t specify them, they''ll be lit incorrectly (if at all).

Hope that helps,

Nicodemus.

----
"When everything goes well, something will go wrong." - Murphy
Nicodemus.----"When everything goes well, something will go wrong." - Murphy
if you don''t calculate the normal for every polygon when you enable lighting the model appear as 2d!
i have solved yesterday this,it was getting me mad!
And if you want smooth shading - you have to specify normal for each vertex.

This topic is closed to new replies.

Advertisement