shiffman / OpenKinect-for-Processing

For use of libfreenect in processing
536 stars 218 forks source link

SkeletonData XYZ different units #130

Open Hjudzin opened 6 years ago

Hjudzin commented 6 years ago

I´m trying to animate an avatar in 3D space using my Kinect for Windows and the Kinect4WinSDK library. The ISSUE is that while I use just the X and Y coordinates of the .skeletonPositions[i].x or.y, everything goes well giving me coordinates arround 1/-1. However when trying to go 3D while including the Z axis, the data .skeletonPositions[i].z is suddenly off, giving me values from 4 000 to 15 000. The official pages assume all three coordinates being in meters or at least in the same scale. Is there a way to calibrate the unit setup or does anybody has an idea? Thanks for any suggestions.

PS: this is how the printline of the head joint looks like: [ 0.375, 0.29583332, 17744.0 ] [ 0.2375, 0.60833335, 13584.0 ] [ 0.253125, 0.45416668, 14008.0 ] [ 0.284375, 0.59583336, 14088.0 ] [ 0.340625, 0.69166666, 15208.0 ]