Advertisement

normals and quad strips

Started by November 04, 2001 06:34 AM
0 comments, last by MelvinElvin 23 years, 3 months ago
Any help in the following problem would be greatly appreciated. I''m using a quad strip to draw four polygons (4 sides of a cube, and then drawing the left and right sides in another statement), and trying to figure out where to specify the normals for each polygon. Since each pair of vertices is used basically to specify 2 different polygons, i''m not sure where to put my glNormal3f call (assuming i''m just using one normal per polygon surface). I read somewhere u specifiy, for the i''th polygon, before the (2i + 2) polygon (So for the first polygon i''m specifying in between my 3rd and 4th calls for glVertex3f), but it doesn''t seem to look exactly right. any help would be greatly appreciated (if the above looks like i''m doing it correctly already, then it''s probably the normals i''m using, not where i''m specifying them, but that''s another matter). Thanks a lot. MelvinElvin.
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Normals are specified per-vertex. This means you can''t have different normals per face using a quad strip. If you need more than one vertex normal per vertex you have to specify individual quads or triangles.

At least that''s how I understand it.

This topic is closed to new replies.

Advertisement