#Animation retargeting rotation issue

3 messages · Page 1 of 1 (latest)

restive echo
#

I'm trying to get a simple animation retargeting function working to change from one rest pose to another (with the same bones and overall skeleton layout). It works properly on bones that are unchanged from the source rest pose, but any that are animated seem to only have correct rotation on one axis, the other two axes seem to be flipped. The data is being imported from blender via GLTF and I've verified that the rest poses and animation data is correct, so I'm not sure what I'm doing wrong.

I've tried swapping quaternion multiplication order in almost every spot it's used, but that just seems to make the result completely wrong.

I'm using the Quaternion and Float3 structs from the ozz-animation library.

https://pastebin.com/ieu6esQG

lyric kelpBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

restive echo