example of a gestural interface • The ingredients: joint position and vector math • What makes a good gestural interface? • A better example of a gestural interface Tuesday, April 17, 12
0); // make a vector of ints to store the list of users IntVector userList = new IntVector(); // write the list of detected users // into our vector kinect.getUsers(userList); // if we found any users if (userList.size() > 0) { // get the first user int userId = userList.get(0); // if we're successfully calibrated if ( kinect.isTrackingSkeleton(userId)) { ... Tuesday, April 17, 12
// make a vector to store the left hand PVector rightHand = new PVector(); // put the position of the left hand into that vector kinect.getJointPositionSkeleton(userId, SimpleOpenNI.SKEL_LEFT_HAND, rightHand); ellipse(rightHand.x, rightHand.y, 10, 10); Tuesday, April 17, 12