# 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.

## 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:
	glBegin(GL_TRIANGLE_STRIP);
glTexCoord2d(1,1);
glVertex3f(1,1,0); // Top Right

glTexCoord2d(0,1);
glVertex3f(0,1,0); // Top Left

//glTexCoord2d(1,.25);
//glVertex3f(1,0,0);

//glTexCoord2d(0,.25);
//glVertex3f(0,0,0);

glTexCoord2d(1,.5);
glVertex3f(1,-1,0);

glTexCoord2d(0,.5);
glVertex3f(0,-1,0);

//glTexCoord2d(1,.75);
//glVertex3f(1,-2,0);

//glTexCoord2d(0,.75);
//glVertex3f(0,-2,0);

glTexCoord2d(1,0); // Bottom Right
glVertex3f(1,-3,0);

glTexCoord2d(0,0);// Bottom Left
glVertex3f(0,-3,0);
glEnd();



##### Share on other sites
what happens if you switch the texcoords of vertex 3,4 with 7 and 8? (the ones you had to comment out)

Thanks 8D

1. 1
2. 2
Rutin
21
3. 3
4. 4
5. 5
frob
12

• 17
• 9
• 31
• 16
• 9
• ### Forum Statistics

• Total Topics
632614
• Total Posts
3007440

×