View Full Version : glNormal()

09-28-2000, 08:08 AM
What does this command do? Thanks! Absolutely new to openGl and trying to dice down each command. Thanks!

BTW I have a cube that spins but I can't changes it color. I put glColor3f(0.0f,0.0f,1.0f); before the vertexes but no color changes! Any help would be nice. Thanks!

aka SilentSno

09-28-2000, 09:50 AM
This specifies the normal for the next vertex. (normals are used for lighting calculations etc.)

09-28-2000, 05:34 PM
A normal specifies how the surface will be lit. Usually, if you don't want smoothing it will the a normalized (size 1) perpendicular to the polygon. However when you want smooth surfaces then the normal at a vertice is the normalised (meaning size 1) of the normals of all the polygons that share the vertice.

Antonio www.fatech.com/tech (http://www.fatech.com/tech)

10-01-2000, 10:30 AM
Thanks you two!! I also got the colors to work just need GL_ENABLE(GL_COLOR_MATERIAL)

aka SilentSno