Hand tracking support + elbows without controllers

This extends the HMD skeleton to support arm tracking. We do end up with kinda duplicate bones tho.

If user has controllers: elbows go from controllers with tracker on lower arm and possibility for upper arm tracker.

If user has no controller (or no feeder app) and enables Elbow SteamVR trackers: elbows go from chest.

If user has no controllers and enables Hand SteamVR trackers: SteamVR trackers on the users hand appear using upper arm, forearm and hand trackers. Use chest tracker as well for more precision.

This also adds a lot of body proportions...
This commit is contained in:
Louka committed 2022-04-04 22:21:18 -04:00
1 parent 91fb4bc035
commit 039628d7e4
8 files changed
+359 -169

No files matched your search

@@ -349,6 +349,19 @@ public class VRServerGUI extends JFrame {
});
}
});
JCheckBox handsCb;
add(handsCb = new JCheckBox("Hands"), c(2, 3));
handsCb.setSelected(br.getShareSetting(TrackerRole.LEFT_HAND) && br.getShareSetting(TrackerRole.RIGHT_HAND));
handsCb.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
server.queueTask(() -> {
br.changeShareSettings(TrackerRole.LEFT_HAND, handsCb.isSelected());
br.changeShareSettings(TrackerRole.RIGHT_HAND, handsCb.isSelected());
});
}
});
}});