need help with a patch for xbox kinect 360 using maxMsp
Hi,i am trying to work on a project where i want to use the xbox kinect and create a patch that counts the number of body movements. In my case the arm raise .Each time you raise arms and they meet at the top of your head its one rep and after 5 successful reps it a set and then the maxmsp counter resets to zero.
Im a novice when it comes to programming and maxmsp so i any help will be much appreciated.
You could calculate the distance between the hand and the head (using these coordinates) and bang whenever the distance goes below a threshold. As you say, use counter to bang after five successes and reset.
Use the free version of NI-Mate (https://ni-mate.com/) to get the Kinect data into max by sending over OSC. You'll need to select skeleton tracking, select the port to send via, use the object udprecieve and then route the messages for head and hand. Research equations for the distance between two XYZ coordinates.