Jump to content
  • Advertisement
Sign in to follow this  
Nom De Plume

FBX animation problem

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

I'm writing a converter to take some FBX animations exported from Max. The converter is to translate the FBX's into a proprietary format since the final application will not use the Autodesk FBX SDK. To achieve this I am trying to understand exactly how the take nodes and curve nodes work. This is ok, except that if a take node ( KFbxTakeNode ) has a curve node ( KFCurveNode ) but this curve node has NO keys, then how is the global transform of the node calculated ? ( ie. how does the method KFbxNode::GetGlobalFromCurrentTake calculate the transform ? ) I can't find an answer to this in the SDK, and all the examples use the method without explaining how the result is arrived at.... Are there any experts on FBX animation out there ?....

Share this post


Link to post
Share on other sites
Advertisement
personally, I just sample data from FBX rather than dealing with the curves directly, then it's just a case of doing....

fbxTakeNode->GetEulerRotationX()->Evaluate(curr_time)


and then converting to quat or whatever you are planning. With FBX the computation goes something like this for a local space matrix,


[S] *
 * [Rot] * [Post] * [T]

where
S=scale
T=translate
Pre=KFbxNode::GetPreRotation( KFbxNode::eSOURCE_SET )
Post=KFbxNode::GetPostRotation( KFbxNode::eSOURCE_SET )
Rot=current fbxTakeNode->GetEulerRotation#()


It basically uses the same matrix construction as Maya, i'd check out the docs to MFnTransform and MFnIkJoint in the maya API docs for more info (if you have it available).

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!