Jump to content
  • Advertisement
Sign in to follow this  
greg2fs

Modify a LPD3DXMESH ? (number of vertices...)

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

Hello, I need to remove vertices which are in double in a LPD3DXMESH. They are in double because they have different UV or normals, but only position are need by my program and I need not to have double vertices. My question is how can I remove these vertices, I tried to put all the normal to 0,1,0 and all the UV to 0,0 and do OptimizeInplace but it changed nothing. THanks [Edited by - greg2fs on August 18, 2008 12:49:00 PM]

Share this post


Link to post
Share on other sites
Advertisement
From what I understand using Google Translate, you're saying you need to duplicate vertices that have different normals or texture coordinates, and you're asking if you can change the number of vertices in a mesh?

Does your source mesh have the duplicated vertices in it then? If so, why do you want to get rid of the duplicated vertices - they're not really duplicates because they differ in UV coordinates or normals.

There's no GenerateAdjency or equivalent for a vertex buffer - a vertex buffer is just a random pool of vertices; there's no way to tell what vertices are connected to make up a triangle - you'd need an index buffer for that too, which is presumably what ID3DXMesh uses internally.

Share this post


Link to post
Share on other sites
Sorry to put a message in french I forgot I was on an english website, then I translated my message.
From what you say, the only way is to use a vertexbuffer and build the adjency on my own ?

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!