eherr / anim_utils

Data structures and utilities for skeleton animations.
Other
39 stars 14 forks source link

Example for retargeting #1

Closed gemlongman closed 4 years ago

gemlongman commented 4 years ago

could you offer some exampl for retargeting animation form a bvh to another, which is between different skeletons.

eherr commented 4 years ago

I have uploaded now an example to the following repository: https://github.com/eherr/anim_utils_scripts

gemlongman commented 4 years ago

I have uploaded now an example to the following repository: https://github.com/eherr/anim_utils_scripts

It‘s great~ Thank you so much! By the way, is there some methods could automatically get skeleton model json file? It seems that the motion preprocessing tool couldn't export a custom skeleton model json file: image

eherr commented 4 years ago

Yes you can create a, new skeleton model by pressing on the "add new model" button. It will export a json file into the directory data/skeletons. You can then later edit it by selecting it from the drop down list and pressing on the "edit model" button.

eherr commented 4 years ago

In the skeleton model editor you need to assign a default joint name to the joints you want to be taken into account and set the coordinate system for each joint. The green axis represents the twist axis and the red axis the twist axis.

After you have assigned the left_hip, right_hip and head. You can let the tool guess the coordinate system automatically so you only have to apply corrections.

gemlongman commented 4 years ago

The green axis represents the twist axis and the red axis the twist axis.

After you have assigned the left_hip, right_hip and head. You can let the tool guess the coordinate system automatically so you only have to apply corrections.

Wow! this's so helpful! Thank you so much!

eherr commented 4 years ago

You are welcome! Sorry I made a mistake in the earlier comment: green is the twist axis and red is the swing axis. You also might have to restart the tool after setting the joint mapping to let it reload the model due to a bug.

gemlongman commented 4 years ago

green is the twist axis and red is the swing axis. You also might have to restart the tool after setting the joint mapping to let it reload the model due to a bug.

Got it~ I have noticed the axis and will pay more attention on it. The bug actually is not very serious, but thank you for reminding.