X file with animation
How can I load the animation data in an xfile? I know there is animation data and frame data stored in the x. file - Just not sure on how to access it.
This is some of the code I am using to load my XFile-
Can someone point me in the right direction...
struct XFILE
{
LPD3DXMESH x_mesh;
D3DMATERIAL9* x_materials;
LPDIRECT3DTEXTURE9* x_textures;
DWORD x_mat_count;
};
result = D3DXLoadMeshFromX(
filename,
D3DXMESH_SYSTEMMEM,
d3ddev,
NULL,
&matbuffer,
NULL,
&xmodel->x_mat_count,
&xmodel->mesh);
Thanks, for any help!
I think the frame data you want comes from D3DXLoadMeshHierarchyFromX, but it gets a big complicated
Article
http://msdn2.microsoft.com/en-us/library/bb147387.aspx
That MSDN article should tell you all you need to know to get a skinned mesh running. The animation sample is also in your SDK for use.
Article
http://msdn2.microsoft.com/en-us/library/bb147387.aspx
That MSDN article should tell you all you need to know to get a skinned mesh running. The animation sample is also in your SDK for use.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement