Search code examples
c++directxfbx

fbx mesh load geometry transformation


I am trying to load a car model from fbx file with one model that divided into 5 sub models.
4 sub models are the wheels and one sub model is the car.
At first when I tried to render it I Saw only one wheel so I start diagnostic on the frame.
I realized that all the four wheel are much more big then the car.
This and the fact that I see only one wheel make me think that in fbx each sub model has own transformation matrix.
Am I right?
And if yes how can I get the specific transformation for the specific sub model?


Solution

  • All nodes in fbx have own transformation. You can take it by EvaluateLocalTransform(if you keep hierarchy) or EvaluateGlobalTransform (if you don't)