anim_utils icon indicating copy to clipboard operation
anim_utils copied to clipboard

meaning of cos_map of skeleton

Open sarsigmadelta opened this issue 2 years ago • 1 comments

thanks for sharing such a great work, just one confusing stuff, what is "skeleton.skeleton_model["cos_map"] " meaning ? thanks

sarsigmadelta avatar Dec 01 '23 09:12 sarsigmadelta

Thanks. This is a dictionary containing a map from joint names to x and y vectors defining a local coordinate system of the respective joint. It is used by the retargeting code to retarget between two different skeletons without a t-pose by finding a global correcting rotation after transforming the vectors of the source and target joints into the global coordinate system. The global corection can then be brought back into the local coordinate system to be exported again.

Yes the name is confusing. I meant to clean that up one day.

eherr avatar Dec 01 '23 15:12 eherr