# 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.

## 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 on other sites
maybe people from this forum:
http://dl3d.free.fr/phpBB2/viewforum.php?f=6

##### Share on other sites
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=scaleT=translatePre=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).



1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5

• 14
• 12
• 9
• 12
• 37
• ### Forum Statistics

• Total Topics
631429
• Total Posts
3000033
×

## Important Information

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

Sign me up!