Jump to content
  • Advertisement
Sign in to follow this  

[MDX] How to update Mesh.VertexFormat?

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

Hi, this is not a critical problem I have, but I'm curious if there's a clean solution: I loaded a mesh with vertices holding position and normal data and texture coords. Just like in a previous thread (http://www.gamedev.net/community/forums/topic.asp?topic_id=379727), I computed tangent space for the mesh, therefore changing the vertex declaration to position, normal, texCoords, tangent, binormal (PNTTB). When I then call "Geometry.ComputeBoundingBox(..)" for the mesh, myMesh.VertexFormat which I use as parameter returns "None". Of course I can get the stride size of the new vertex format, but is there a possibility to update the mesh's VertexFormat property? I tried UpdateSemantics(myMesh.Declaration), but that didn't help. BR, Jack

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!