Jump to content
  • Advertisement
Sign in to follow this  

Mapping Textures to Triangle Strips Consisting of More than Six Verticies

This topic is 4447 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

In lesson 19 there is an example of how to create a simple 4 vertex triangle strip and then map a texture to it. I expanded the strip to 6 verticies (4 triangles) and was able to map the same texture with no problem. However, If I expand to 10 vertices I am unable to map all the texture to all the points in the strip without the texture being distorted. However, If I commment vertex #s 2,3,6, and 7 the texture is stretched perfectly. Code with commented vertices:
		glVertex3f(1,1,0); // Top Right
		glVertex3f(0,1,0); // Top Left


		glTexCoord2d(1,0); // Bottom Right

		glTexCoord2d(0,0);// Bottom Left

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!