X file with animation

Started by
1 comment, last by dosin 16 years, 12 months ago
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!
Advertisement
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.
but it gets a big complicated
- it does but- does anyone know of a good book or know of a good example doing this -

This topic is closed to new replies.

Advertisement