Sign in to follow this  

A question about XFile animation matrix!

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this