-
Notifications
You must be signed in to change notification settings - Fork 3
SkelScratch basics
The basics of SkelScratch are two blocks: The joint block and the handstate block.
The joints block allows you to use the coordinates of your joints in your scratch projects. It is the first block under "More Blocks" when the extension is loaded. .
The first menu is the body select. If two bodies are detected in the frame the kinect will assign one as body 1, and the other as body 2. The extension supports up to 6 bodies (the limit of the kinect v2).
The second menu is the joint select. It contains 26 joints (all that the kinect v2 supports).
Note: The Kinect v1 does not support the "Spine Shoulder", both Hand Tips, and both Thumb joints.
The third menu is the coordinate select: x, y, or z.
x and y are given in meters from the kinect multiplied by its axis length in Scratch.
X is positive to the right when facing the kinect. So if your head was one meter right of the kinect (in its sight), the Body 1, Head, x would be 240. If your head was one meter left, it would be -240. The y coordinate works similarly, 1 meter up is 180.
The z-coordinate is the distance "out" from the kinect. It is scaled in between x and y, at 200, and is never negative. So if your head was one meter in front of the kinect, the Body 1, Head, z would be 200.
The handstate block allows you to use the placement of your fingers relative to your hand in your scratch projects.
It is the second block under "More Blocks" when the extension is loaded.
This block also contains three drop down menus.
The first is the same as before.
The second is just left or right. Left for left hand, right for right hand.
The third is the handstate. There are five handstates: Unknown, Not Tracked, Open, Closed, and Lasso.
Unknown means the kinect is tracking your hand but can't tell its state (or the body is untracked).
Not Tracked means the Kinect, while able to track the body, is unable to track the hand (rare).
Open means your hand is open; the kinect can see your whole palm.
Closed means your hand is in a fist; the kinect can see none of your palm.
Lasso means you have two fingers up and two fingers down; the kinect can half of your palm.
Note: The Kinect v1 does not support handstates.