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

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Wenye He
Posts: 5
Joined: Mon Oct 16, 2017 7:46 pm

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

Post by Wenye He » Sat Nov 20, 2021 8:06 pm

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....

Tags:

POST REPLY