KevinLTT / video2bvh

Extracts human motion in video and save it as bvh mocap file.
MIT License
579 stars 90 forks source link

why order is xzy? #17

Closed guker closed 3 years ago

guker commented 4 years ago

https://github.com/KevinLTT/video2bvh/blob/87f61358c26bd395bf7311765a0f2d11f4d0a56f/bvh_skeleton/h36m_skeleton.py#L212

why order is xzy, what is difference between xzy and zyx?

KevinLTT commented 4 years ago

See definition of dcm_from_axis below. 'xzy' means firstly choose x_dir as x-axis, and then use cross product of x_dir and y_dir to find z-axis, and finally get y-axis by cross product of x-axis and z-axis. https://github.com/KevinLTT/video2bvh/blob/87f61358c26bd395bf7311765a0f2d11f4d0a56f/bvh_skeleton/math3d.py#L14-L33

Kismetzc commented 3 years ago

Hi,@guker and @KevinLTT I still don't quite understand, can you please explain in more detail