Jump to content
  • Advertisement

Archived

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

kill

glNormal?

This topic is 6548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!