Archived

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

MelvinElvin

normals and quad strips

Recommended Posts

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.

Share this post


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

Share this post


Link to post
Share on other sites