Sign in to follow this  
neodev

One Vertex & Two UV, how draw this indexed primitive

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this