Jump to content
  • Advertisement
Sign in to follow this  
Ksingh30

D3DXLoadMeshFromX

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

Advertisement
Not sure if there's a way to iterate through the triangles, but you can definitely get the vertex buffer and index buffer and make any changes necessary. For more info, see my post in this thread.

Share this post


Link to post
Share on other sites
u can iterate through the triangles of the .X mesh through the vertex and index buffer.

The index buffer will list the triangles points, which means in sets of 3.

E.g. Index Buffer = {3,6,4,9,2,7....} this means the first triangle will have these 3 points : The 3rd vertex in the vertex buffer, the 6th vertex in the vertex buffer, and the 4th vertex in the vertex buffer. etc..

Hence using this info, u can find out the triangles of the mesh.

Hope this helps.

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!