Message 1 of 3
EvaluateLocalTransform/EvaluateGlobalTransform return nan values
Not applicable
06-11-2019
12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
when I am use fbx 2019 sdk to convert fbx to csb, EvaluateLocalTransform/EvaluateGlobalTransform return
FbxAMatrix whose elements is nan. The code is as fallowed. The error only happen on the 3th/4th keyframe(time=0.233333/0.266667) in the "Bone_Hair_05".
FbxAnimLayer *layer = animStack->GetMember<FbxAnimLayer>(l);
FbxAnimCurveNode *curveNode = layer->GetSrcObject<FbxAnimCurveNode>(n);
FbxProperty prop = curveNode->GetDstProperty(o);
FbxNode *node = static_cast<FbxNode *>(prop.GetFbxObject());
for (float time = (*itr).second.start; time <= last; time += stepSize) {
time = std::min(time, (*itr).second.stop);
fbxTime.SetMilliSeconds((FbxLongLong)time);
FbxAMatrix *m = node->EvaluateLocalTransform(fbxTime);
}Then, I try to use "GetNodeLocalRotation/Translation/Scaling" to get data. The first element of FbxQuaternion data is nan. And This is the 3d max file.