Files
kinect/docs/limitations.md

70 lines
3.5 KiB
Markdown

# Limitations & requirements
What this virtual Kinect does and does not do today. Read it before you expect a
real-Kinect replacement. Nothing here is aspirational; each point reflects how
the shipping code actually behaves.
## Single-player only
The pipeline is single-person end to end. The native tracker runs single-person
BlazePose, the IPC contract carries one skeleton, and the shim fills only the
first NUI skeleton slot. The reproducible `two_person_probe` run confirmed it:
across a 24-frame two-person sequence driven through the shipping
`PoseEstimator`, exactly one person was tracked every frame (the ROI followed
whoever was most prominent and switched identity when they swapped, never two at
once).
The game itself supports two players (`CUR1`/`CUR2`, six NUI slots), so the gap
is ours. There is an experimental second-skeleton probe behind `KINECT_SHIM_2P=1`,
but it just duplicates slot 0 into slot 1 with a horizontal offset and a distinct
tracking ID. It is a way to check in-game whether DEA lights `CUR2`, not real
two-player tracking. Left unset (the default), slot 1 stays `NOT_TRACKED`. See
`docs/game-internals.md` section 4.
## Menu cursor is "good enough", not pixel-perfect
The DEA menu hand-cursor works: one arm covers the screen and snaps to buttons.
It is not a pixel-perfect match to a real Kinect. The hand-to-cursor mapping
lives in the game's Flash runtime, which we can't touch, so the only lever is our
skeleton. We correct handedness and amplify each arm's reach (MediaPipe reports
the hand closer to the shoulder than a real Kinect does) with empirically tuned
gains. The result is usable, not exact.
## Calibrate the cursor once
A real Kinect and MediaPipe disagree on how far the hand reaches relative to the
shoulder, and that reach depends on your camera's field of view and where you
stand. The guided **Calibrate cursor** action in the tracker measures a short
right-arm-extended hold and writes per-camera cursor gains, which the shim reads,
so the menu cursor covers the whole screen on your setup instead of only the
author's. Recalibrate when you move the camera, change your playing distance, or
switch rooms. See `docs/calibration.md`.
## Lighting and framing
The pose estimate is only as good as the picture it reads.
- **Lighting.** Calibrate and play in decent, steady light. Poor light degrades
the pose, and the calibration is built from that same pose.
- **Full-body framing.** Keep your whole body in frame, especially during
cursor calibration. A cropped arm skews the measured reach.
- **4:3 only.** The game accepts a 4:3 image, and the tracker enforces it. Use a
camera (or camera mode) that offers a 4:3 resolution.
## Windows / DEA-focused
DanceEvolution Arcade on Windows is the proven target. In-game skeleton
rendering and the menu cursor are verified there. The `Kinect10.dll` shim is
generic MS NUI and should work for other Kinect-v1 Windows apps, but only DEA is
proven. The Linux OpenNI2 path proves depth/synthesis fidelity, not the game.
## Personal-use license & signing
This is a clean-room, personal-use project (see `LICENSE`). The drop-in
`Kinect10.dll` shim needs no driver signing. The optional USB device-attach path
(a developer reference, not required for the shim play path) uses a VHCI client:
the attestation-signed usbip-win2 normally needs neither test-signing nor Secure
Boot off. Only the legacy usbip-win client requires `bcdedit /set testsigning
on`, Secure Boot off, and importing its test certificate. Either way, the
device-attach path is not part of the standard play flow.