Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Different times doesn't change the global transformation matrix values in animated model FBXSDK C++

shalsharief
Explorer

Different times doesn't change the global transformation matrix values in animated model FBXSDK C++

shalsharief
Explorer
Explorer

 

I have an animated model, and then I set the time : 

 

 

FbxTime myTime;
myTime.SetSecondDouble(4.0);

 

 

Then when I get the node for a bone:

 

fbxsdk::FbxNode* armature_node = lScene->GetNode(2);
// structured this way for debugging purposes instead of using a recursive method to extract children
fbxsdk::FbxNode* bone = armature_node->GetChild(0);
fbxsdk::FbxNode* bone1 = bone->GetChild(0);
fbxsdk::FbxNode* bone2 = bone1->GetChild(0);
fbxsdk::FbxNode* bone3 = bone2->GetChild(0);
fbxsdk::FbxNode* bone4 = bone3->GetChild(0);
fbxsdk::FbxNode* bone5 = bone4->GetChild(0);
fbxsdk::FbxNode* bone6 = bone5->GetChild(0);

// to extract global transform matrix for one of the bones
fbxsdk::FbxAMatrix& gm3 = bone3->EvaluateGlobalTransform(myTime);

// print values for the translation vector
std::cout << "translation gm3 only: " << gm3.GetT().mData[0] << ", " << gm3.GetT().mData[1] << ", " << gm3.GetT().mData[2] << ", " << gm3.GetT().mData[3] << std::endl;

 

 

Now when I change the time, the values are still the same, any idea why?

0 Likes
Reply
91 Views
0 Replies
Replies (0)