![]() ![]() ![]() ![]() LParentGRSM = lParentTM.Inverse() * lParentGX Shear*Scaling = RotationMatrix.Inverse * TranslationMatrix.Inverse * WholeTranformMatrixįbxAMatrix lLSM, lParentGSM, lParentGRSM, lParentTM FBX SDK does not support shear, to patch this, we use: LLRM = lPreRotationM * lRotationM * lPostRotationM LParentGX = CalculateGlobalTransform(lParentNode) Calculate the global transform matrix of the parent nodeįbxNode* lParentNode = pNode->GetParent() I have tried almost all methods to transform the control points of meshes, such as using the code from fbx_sdk sample code: FbxAMatrix CalculateGlobalTransform(FbxNode* pNode)įbxAMatrix lTranlationM, lScalingM, lScalingPivotM, lScalingOffsetM, lRotationOffsetM, lRotationPivotM, lPreRotationM, lRotationM, lPostRotationM, lTransform įbxAMatrix lParentGX, lGlobalT, lGlobalRS įbxVector4 lTranslation = pNode->LclTranslation.Get() įbxVector4 lRotation = pNode->LclRotation.Get() įbxVector4 lPreRotation = pNode->PreRotation.Get() įbxVector4 lPostRotation = pNode->PostRotation.Get() įbxVector4 lScaling = pNode->LclScaling.Get() įbxVector4 lScalingOffset = pNode->ScalingOffset.Get() įbxVector4 lScalingPivot = pNode->ScalingPivot.Get() įbxVector4 lRotationOffset = pNode->RotationOffset.Get() įbxVector4 lRotationPivot = pNode->RotationPivot.Get() But when I've load the file and try to render it, the meshes of some nodes did not display on the right position or with the correct rotation. I want to load a model from an fbx file into my own graphic engine and render the meshes. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |