mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:23:04 +02:00
Document non-usage of Leap controller's first finger joints
This commit is contained in:
parent
cf3d2c7b4a
commit
8954e1d6e1
1 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ var leapHands = (function () {
|
||||||
fingers,
|
fingers,
|
||||||
NUM_FINGERS = 5, // 0 = thumb; ...; 4 = pinky
|
NUM_FINGERS = 5, // 0 = thumb; ...; 4 = pinky
|
||||||
THUMB = 0,
|
THUMB = 0,
|
||||||
NUM_FINGER_JOINTS = 3, // 0 = metacarpal(hand)-proximal(finger) joint; ...; 2 = intermediate-distal(tip) joint
|
NUM_FINGER_JOINTS = 3, // 0 = metacarpal(hand)-proximal(finger) joint; ...; 2 = intermediate-distal joint
|
||||||
MAX_HAND_INACTIVE_COUNT = 20,
|
MAX_HAND_INACTIVE_COUNT = 20,
|
||||||
calibrationStatus,
|
calibrationStatus,
|
||||||
UNCALIBRATED = 0,
|
UNCALIBRATED = 0,
|
||||||
|
@ -226,8 +226,6 @@ var leapHands = (function () {
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
|
|
||||||
// TODO: Leap Motion controller joint naming doesn't match up with skeleton joint naming; numbers are out by 1.
|
|
||||||
|
|
||||||
hands = [
|
hands = [
|
||||||
{
|
{
|
||||||
jointName: "LeftHand",
|
jointName: "LeftHand",
|
||||||
|
@ -246,6 +244,9 @@ var leapHands = (function () {
|
||||||
{ controller: Controller.createInputController("Spatial", "joint_R_wrist") }
|
{ controller: Controller.createInputController("Spatial", "joint_R_wrist") }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// The Leap controller's first joint is the hand-metacarpal joint but this joint's data is not used because it's too
|
||||||
|
// dependent on the model skeleton exactly matching the Leap skeleton; using just the second and subsequent joints
|
||||||
|
// seems to work better over all.
|
||||||
fingers = [{}, {}];
|
fingers = [{}, {}];
|
||||||
fingers[0] = [
|
fingers[0] = [
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue