Sign in to follow this  
ManagedJack

[MDX] How to update Mesh.VertexFormat?

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

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