Page 1 of 1

How to get correct transform of joints after loading motion to model via API

Posted: Sat Nov 20, 2021 8:06 pm
by rampagedog
How to get the correct transform of joints after loading motion to model via API?
I am trying to visualize the skeleton model in Blender.
After loading the motion, I set the frame index.
I use getTransformInGround(). It seems that this function can't get the correct transform.. Or maybe I mess up the transform and its corresponding part.
My workflow is to get the joints. With the joints, I get the parent body and child body. Using getTransformInGround() to get the global transformation of the child body.
Import mesh files and use the global transformation to define the transformation of the body geometry in Blender.

I also attempt to use the bones(joints) in Blender to visualize the osim file, that is why I currently move to visualize the geometry without bones...
My goal is to visualize the skeleton and animate it with its joints in Blender....