• Advertisement
Sign in to follow this  

A question about XFile animation matrix!

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

In d3dsamples "SkinnedMesh" code line 1363, there were: ///////////////////////////////////////////////////////////////////// D3DXFRAME_DERIVED *pFrame = (D3DXFRAME_DERIVED*)pFrameBase; if (pParentMatrix != NULL) D3DXMatrixMultiply(&pFrame->CombinedTransformationMatrix, &pFrame->TransformationMatrix, pParentMatrix); else pFrame->CombinedTransformationMatrix = pFrame->TransformationMatrix; ///////////////////////////////////////////////////////////////////// note the "TransformationMatrix", this is my question at. At first, I think the "TransformationMatrix" is the current frame Animation matrix, it should be pick from "AnimationSet" segment directly. But when I output the matrix data, I found it does no estimated such. So, in other words, the "TransformationMatrix" matrix must be passed other calculation when D3DXLibrary load the file. Is it such? If is, how to calculate a correct one? [Edited by - coollofty on February 14, 2005 8:41:12 AM]

Share this post


Link to post
Share on other sites
Advertisement
I'm not 100% sure, but I think every frame has a transformation matrix. Try looking through the xfile (if text).

Share this post


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

  • Advertisement