#### Archived

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

# Texture Mapping Problems

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

## Recommended Posts

folowing problem: after importing geometry and uv data from MAX, i go through the face list and render each triangle in the mesh with its UV-coordinates. Everything looks ok, except the cylindrical Mapping. There is an wrap at the connection point of the mapped texture. I know why it is so, but i have no idea how to solve that problem. I hope someone can help me. http://www.bytelords.de/public-img/mapping_problem01.jpg http://www.bytelords.de/public-img/uvkack.jpg in code: for(int fc=0; fc < g->faceList.size(); fc++) { B3DFace* f = g->faceList[fc]; B3DVec3* vertex; B3DVec2* uv; //-------------------------- vertex = g->vertexList[f->a]; uv = g->texCoordList[f->a]; glTexCoord2f(uv->x, uv->y); glVertex3f(vertex->x, vertex->y, vertex->z); vertex = g->vertexList[f->b]; uv = g->texCoordList[f->b]; glTexCoord2f(uv->x, uv->y); glVertex3f(vertex->x, vertex->y, vertex->z); vertex = g->vertexList[f->c]; uv = g->texCoordList[f->c]; glTexCoord2f(uv->x, uv->y); glVertex3f(vertex->x, vertex->y, vertex->z); }

##### Share on other sites
Meanwhile i solved the problem.

I exported the uv-coords per face and not per vertex. It makes it possible for one shared vertex to have different UV-Coords for different faces using that vertex.

However, it works now. :D

1. 1
2. 2
3. 3
Rutin
14
4. 4
5. 5

• 10
• 11
• 14
• 10
• 25
• ### Forum Statistics

• Total Topics
632651
• Total Posts
3007657
• ### Who's Online (See full list)

There are no registered users currently online

×