Advertisement

When to define normals

Started by September 18, 2000 01:13 AM
1 comment, last by DemOSh 24 years, 2 months ago
My question is when should glNormal be called? Whenever i do a triangle strip i end up with a dark spot at the first and last pair of verteces. as i understand it, i should call the first two verteces then a normal, vertex, normal, vertex.... but obviously this isnt right, should i be defining a normal for each vertex instead? ~DemOSh juha@pacbell.net
What your doing is wrong, dunno where you got that idea from. If you want to use a single face normal you make a glNormal() call before all of the glVertex() calls. If you want to use vertex normals you make a normal call before each vertex call.

Nate Miller
http://nate.scuzzy.net
Advertisement
Hmm... To be more correct, you should either call glNormal() before the glVertex() calls of ONE FACE (not all glVertex() calls) if you want to set the normal of a face, or before each of the glVertex() calls individually.

S.

This topic is closed to new replies.

Advertisement