Maya to OSim transfer issues - OpenSim 4.2

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Anna Ragni
Posts: 1
Joined: Wed Sep 02, 2020 8:06 am

Maya to OSim transfer issues - OpenSim 4.2

Post by Anna Ragni » Fri Oct 15, 2021 10:10 am

Hi everyone!

I currently have two skeletal models in Maya that have different joint location and rotation information, but have been positioned into identical skeletal poses. I have converted these models to joint files so they can be opened in OSim for analysis and manipulated in the "coordinates" window to achieve the identical skeletal poses.

One of the models (the standard/original model) is put into the target pose by zero-ing out the joints in the "coordinates" window.

The second, experimental, model can only achieve the target pose by transferring translation and rotation joint values from Maya into the OSim "coordinates" window.

The issue is that, for the experimental model, the values from Maya are not resulting in the target pose as expected. There is a minor "offset" of about a centimeter between the geometry of the two models, which should be in identical positions, as they are in Maya. The rotations of the joints/geometry appear to be correct; it's the translations that appear to be offset. I've attached an image of the problem. The purple skeleton is the experimental model and the gray skeleton is the standard/original model. The values given to the hip joint should result in the purple femur being in the same position as the gray one, but you can see there is a small "offset". In contrast, the pelves between the two models are overlapped well, as in Maya (this was done manually to account for the offset when importing two models into OSim).

The two models are using identical geometry files. I have confirmed the axes and coordinate systems are congruent between Maya and OSim. My rotation order of the joints is the same between the two models. The scaling has been accounted for between Maya and OSim. I have removed the display offset between the two models in OSim so that the models are on top of each other instead of side-by-side. I am using 8 decimal places of precision for the values I'm transferring.

Are there any other troubleshooting ideas I'm forgetting? Is there a difference between the two programs I need to account for that I'm missing?

Any help or thoughts would be much appreciated! Thank you!
Attachments
OSim Offset.png
Image of the "offset" between the two models
OSim Offset.png (174.53 KiB) Viewed 203 times

Tags:

User avatar
Ayman Habib
Posts: 2243
Joined: Fri Apr 01, 2005 12:24 pm

Re: Maya to OSim transfer issues - OpenSim 4.2

Post by Ayman Habib » Mon Oct 18, 2021 1:21 pm

Hi Anna,

I wouldn't look at the visuals of the bones (especially when they are that close in your screen capture) as the final say. This could all be z-fighting rather than actual difference. Instead, I would hide the bone geometry and show the frames of the Joints and Bodies, troubleshooting further will depend on what you find out. For example, if the frames are lined up but the geometry/meshes are not then it could be the mesh scaling, if not we need to look into the order of applying translations, rotations and also whether there are constraints in one model and not the other as that may perturb the setting of coordinates. If troubleshooting transforms and there are no constraints or loose assembly tolerances, I'd go down the multibody tree to identify where divergence happens if any.

Please let us know what you find out.

Best regards,
-Ayman

POST REPLY