Jump to content
  • Advertisement
Sign in to follow this  
neodev

One Vertex & Two UV, how draw this indexed primitive

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

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

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