Jump to content
  • Advertisement
Sign in to follow this  
dosin

X file with animation

This topic is 4256 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

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
but it gets a big complicated
- it does but- does anyone know of a good book or know of a good example doing this -

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!