Archived

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

Tri-Strip Normals

This topic is 5435 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to explicitly specify the second tri's normal in a tri-strip like so?
glBegin(GL_TRIANGLE_STRIP);
	for (int i = 0; i < MB_TRISTRIPS; i++)
	{
		glNormal3fv(pNormals[i ].fCoord);
		glVertex3fv(pVertices[pTriStrips[i ].nVertIndices[0]].fCoord);
		glVertex3fv(pVertices[pTriStrips[i ].nVertIndices[1]].fCoord);
		glVertex3fv(pVertices[pTriStrips[i ].nVertIndices[2]].fCoord);
		glNormal3fv(pNormals[i + (MB_NORMALS / 2)].fCoord);
		glVertex3fv(pVertices[pTriStrips[i ].nVertIndices[3]].fCoord);
	}
glEnd();
  
Cheers - CheeseMonger Edit: Stupid BBCode thought [i ] was for italics... [edited by - CheeseMonger on January 28, 2003 3:02:46 AM]

Share this post


Link to post
Share on other sites