Archived

This topic is now archived and is closed to further replies.

kill

glNormal?

Recommended Posts

kill    146
Can someone tell me what exactly does glNormal do, what does it affect, and how is it used? Thanks.

Share this post


Link to post
Share on other sites
chris82    122
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

Share this post


Link to post
Share on other sites
kill    146
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?

Share this post


Link to post
Share on other sites
Nicodemus    122
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

Share this post


Link to post
Share on other sites
chris82    122
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!

Share this post


Link to post
Share on other sites