eherr / anim_utils

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

Is there any better way to guess local_cos #2

Closed gemlongman closed 4 years ago

gemlongman commented 4 years ago

https://github.com/eherr/anim_utils/blob/c7849651f36fe18d425b8bacbbc7221ff2c41d66/retargeting/analytical.py#L139

Sorry to bother you:

  1. When I used motion_preprocessing_tool create a skeleton model and used it to retargeting, there were some wrong with the output motion as shown below. Because the dest skeleton has finger joints and eye joints, hand joints and head joint didn't get suitable child for calculating y-axis. That led to head tilt and hand flip. Will it be better that use parent joint's y_aixs and orientation when there are more than one children?

  2. By the way. Maybe I did not match right for the sole of the foot, so the feet become floating. While it is excepted the heel should be higher than the sole of the foot. This problem actually does not matter.

image This is the example files in case you are interested in my problem. example.zip

eherr commented 4 years ago

Yes in those cases the guess does not work correctly. I usually manually correct the guess in the skeleton editor by rotating the coordinate system of the problematic joints using the rotate buttons.

manual_fix

eherr commented 4 years ago

Regarding the feet you can use the button align to z axis to align the feet coordinate system to the ground: aling_to_z_axis

I have uploaded a manually edited configuration file and example output:

manual_fix.zip

gemlongman commented 4 years ago

Thank you very much for all of that!