Different times doesn't change the global transformation matrix values in animated model FBXSDK C++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?