• Advertisement
Sign in to follow this  

.X file exporting/importing and hierarchy problems

This topic is 2898 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 all, first i'll tell you what I'm up to. I'm trying to export a biped with animation but no meshes attached to it. Currently I'm using Panda to export. What I'm trying to achieve is to load the frame hierarchy and animation and then manually attach meshes to the frames/bones myself. I started out importing a skeleton without animation but with mesh data to show its bones. I used this to practice swapping mesh data stored on a specific bone with a separately loaded mesh. I got this working fine. Problem is now that I have made a skeleton in max without mesh data and with animation then import that in .x file format my program doesn't like it! Through debugging I have looked at the D3DXLoadMeshHierarchyFromX() function.
HRESULT hr = D3DXLoadMeshHierarchyFromX(filename.c_str(), D3DXMESH_MANAGED,
 d3dDevice,memoryAllocator, NULL, &m_frameRoot, &m_animController);

When loading my new file m_frameRoot is NULL? Does this method only work if mesh data is found when loading? this is the working model(mesh data but no animation) http://www.megaupload.com/?d=JGPFN0AT this is the model that wont load(no mesh data but has animation) http://www.megaupload.com/?d=DVP1PA1M using notepad to look at the structure it is clear that the hierarchy is organised correctly so what is the problem? Any help would be greatly appreciated.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement