Jump to content
  • Advertisement


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


Tri-Strip Normals

This topic is 5654 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?
	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);
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
It''s impossible to do planar shading with tri-strips.
Opengl can setnormal only per vertex, not per triangle.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!