Jump to content
  • Advertisement
Sign in to follow this  
akira32

XFile's Skeletal animation and Skinned Meshes

This topic is 4320 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 export 3d max's model and its animation by plugin of panda. But I want to separate the xfile's "skeletal animation" and "skinned meshes". Becuase I want to use the same skeletal anoamtion with different characters(different skinned meshes,each character's bone structure is the same). Now I am reading the book "Advanced Animation with DirectX",but the book don't write the combination and separation of "skeletal animation" and "skinned meshes". Do any book or web talk about the combination and separation of "skeletal animation" and "skinned meshes"? Could someone tell me?

Share this post


Link to post
Share on other sites
Advertisement
Are the meshes just clones of each other? Why can't you export each mesh individually with the frame hierarchy and animation sets into their own .x file? Since you would have to create a new animationController and D3DXFRAME hierarchy for each mesh anyway, why not just let Max do the work?

Even though the animation sets create may be the same, the controller would have to be unique for each mesh, since each mesh would have to have its own D3DXFRAME hierarchy and each animation controller is connected to one D3DXFRAME hierarchy. When you load one mesh with a frame hierarchy and animation sets, DX internally creates the controller for it and registers the named bones of the frame hierarchy into the controller (see D3DXFrameRegisterNamedMatrices).

Share this post


Link to post
Share on other sites
Have a look into Chapter 5 and 6.
He introduces 2 functions there:

// Load a skeletal mesh
LoadMesh(&g_Mesh, &g_Frame, g_pD3DDevice, "..\\Data\\tiny.x", "..\\Data\\");

and

// Load an animation collection
g_Anim.Load("..\\Data\\tiny.x");

The first loads the Mesh itself and the second the Animationdata. Its easy to load Mesh and Animation seperated that way. But you have to be careful to use the exact same Bonestructure and names in each Mesh.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!