mannequin.js icon indicating copy to clipboard operation
mannequin.js copied to clipboard

2D Posture Data

Open danvpop1 opened this issue 1 year ago • 1 comments

Hello, When I use the get posture method, I get relative positions values and the vectors are not consistently populated with what seems like positional data. Where can I recover the joint positions in world space? My goal is to get the 3D world space joint positions, and project them into 2D coordinates in image space. Thanks!

danvpop1 avatar Jan 24 '24 21:01 danvpop1

The posture property returns a collection of angles in joints. It is used later on to recreate a body posture. The joint positions in world space are not included in the posture, as they are not a primary data, but derivatives.

To get the global 3D coordinates of a joint use its 'point' method. For example person.l_ankle.point(0,0,0) should return the world space position of the left ankle of person.

boytchev avatar Jan 25 '24 16:01 boytchev