One Vertex & Two UV, how draw this indexed primitive

Started by
1 comment, last by Evil Steve 16 years, 2 months ago
i have create an mesh exporter to directx programm " from 3ds max 6", but in my model i found 1125 vertx, and 1529 uv coord's ,so two face shared the same vertex but not same uv, How draw this model in directx using indexed primitives???. please i need really your help.
Advertisement
I think that you need two sets of uv coords. I may be wrong but try to set-up two sets with a custom fvf format. Also your gonna have to use texture blending if I am not mistaken. Hope that helps.
Vertices in a model editing package usually just refer to a 3D position, and texture coordinates are handled differently. In D3D, a vertex is a combination of texture coordinate and vertex position.
So, you'll need to go through each vertex (Probably as a preprocessing step), and see if it's used by two texture coordinates. If it is, you'll need to suplicate that vertex.

This topic is closed to new replies.

Advertisement