Kerim Čamdžić
Kerim Čamdžić

Reputation: 1

Positioning an entire kinect skeleton in the center of 3D space

Okay I have been searching for this problem everywhere, truth be told asked a similar question at the processing forum and no-one answered on it. So I took a freedom to ponder yours guy brains a bit. So I have a skeleton in P3D and every time its recognized by SImpleOpenNI it just draws it in a relation to the kinect, but how would I go about programming it that every time it gets recognized it gets centered or at least start it so that the entire scene is centered around certain kind of parameters.

Upvotes: 0

Views: 170

Answers (1)

Capture the world coordinates of some joint (I believe that the hip or torso joint is better for this), and then subtract those coordinates from the coordinates of every joint. Your hip joint will be at (0, 0, 0) and all the other joints will be centered around that one.

Upvotes: 1

Related Questions