Normals

Started by
0 comments, last by Moky 22 years ago
plz friends how can i compute normals when i use the mode of glBegin(GL_TRIANGLE_FAN); thanks
Advertisement
The drawing mode has nothing to do with it. To calculate the normals of a triangle, take the cross product of the AB and AC (A B and C being points on the triangle in clockwise order) and normalise the result (scale it to length 1). If you need more help, look at the third tutorial on my site.

____________________________________________________________
www.elf-stone.com

____________________________________________________________www.elf-stone.com | Automated GL Extension Loading: GLee 5.00 for Win32 and Linux

This topic is closed to new replies.

Advertisement