114 lines
6.3 KiB
Markdown
114 lines
6.3 KiB
Markdown
# Windows setup guide
|
|
|
|
Play DanceEvolution Arcade (DEA) with a plain webcam instead of a real Kinect v1. This is the
|
|
player path: download the bundle, drop one DLL into the game, run the tracker, calibrate once,
|
|
and play. No build, no Python.
|
|
|
|
The bundle ships the native tracker (`kinect-tracker.exe`), its ONNX Runtime and pose model, and
|
|
the clean-room `Kinect10.dll` shim for both architectures. The shim feeds the game our webcam-derived
|
|
skeleton; the game's own menus and gameplay run unmodified. We never touch any game file.
|
|
|
|
## What you supply
|
|
|
|
The bundle links to these but never redistributes them. You install them yourself:
|
|
|
|
- **Kinect for Windows Runtime v1.8** (the real `Kinect10.dll` and its dependencies). The game
|
|
loads `Kinect10.dll`, so the runtime's own libraries must be on the machine even though our shim
|
|
stands in for the DLL itself. Official download:
|
|
<https://www.microsoft.com/en-us/download/details.aspx?id=40278>
|
|
- **DanceEvolution Arcade** (`gamekdm.dll` + data) and **spice2x** with its Kinect-bypass option,
|
|
per your install. Not provided here.
|
|
|
|
## 1. Install the Kinect 1.8 runtime
|
|
|
|
Run the Microsoft installer linked above. That's all it's needed for: the game's load of
|
|
`Kinect10.dll` pulls in the runtime's dependencies.
|
|
|
|
## 2. Drop in the shim, matched to the game's bitness
|
|
|
|
The bundle has both `shim/x86/Kinect10.dll` and `shim/x64/Kinect10.dll`. A 64-bit DLL won't load
|
|
into a 32-bit game, so pick the one that matches DEA. Most DEA/spice2x builds are 32-bit (x86). If
|
|
you're unsure, check from a Developer Command Prompt:
|
|
|
|
```
|
|
dumpbin /headers gamekdm.dll REM FILE HEADER machine: 14C = x86, 8664 = x64
|
|
```
|
|
|
|
Then:
|
|
|
|
1. Back up the existing `Kinect10.dll` in the game folder if one is there (don't overwrite it in
|
|
place; move it aside).
|
|
2. Copy the matching `shim/<arch>/Kinect10.dll` into the DanceEvolution Arcade `contents` folder,
|
|
**next to `gamekdm.dll`**.
|
|
|
|
## 3. Run the tracker
|
|
|
|
1. Plug in your webcam.
|
|
2. Run `kinect-tracker.exe`. Keep `onnxruntime.dll` and the `models/` folder beside it.
|
|
3. Pick your camera and a 4:3 resolution from the two drop-downs. The game only accepts a 4:3
|
|
image, so the tracker lists 4:3 modes only. Your choice is remembered for next time.
|
|
4. Click **Start**. The live preview shows you with the pose overlay, so you can frame yourself.
|
|
|
|
## 4. Calibrate the cursor
|
|
|
|
The menu hand-cursor is the one thing tuned to a specific camera and body. The built-in
|
|
calibration measures your own arm reach so the cursor covers the whole screen on your setup.
|
|
|
|
With capture running, click **Calibrate cursor** and raise your right arm up and out toward the
|
|
top corner of the screen - hand clearly above your shoulder and out to the side - for about two
|
|
seconds as prompted. The tracker derives your arm-reach gains and writes them to the shared
|
|
config file the shim reads. See [docs/calibration.md](calibration.md) for the details and for
|
|
re-running it if the cursor feels off.
|
|
|
|
## 5. Launch DEA
|
|
|
|
Start DanceEvolution Arcade through spice2x with the Kinect bypass enabled (it clears the
|
|
boot-time Kinect presence check; it provides no gameplay data). The game sees the virtual Kinect,
|
|
draws your skeleton, and the menu cursor follows your hand.
|
|
|
|
The skeleton rendering and menu-cursor mapping are verified working on a real Windows + DEA setup.
|
|
The one thing only you can judge is in-game feel: whether the cursor lands where you expect and the
|
|
dance tracking matches your moves in your room. If the cursor coverage is off, re-run the
|
|
calibration (step 4), then **restart DEA** so the new gains take effect (the shim reads the
|
|
calibration once at startup; a running game keeps the old values). If the player is mirrored, moves
|
|
invert, or the player drops out, see [docs/troubleshooting.md](troubleshooting.md).
|
|
|
|
## Camera, lighting, and framing requirements
|
|
|
|
The pose estimate is only as good as what the camera sees. For reliable tracking:
|
|
|
|
- **Camera:** any USB webcam that offers a **4:3** capture mode (640x480 is plenty). Mount it at
|
|
roughly chest-to-head height, facing you straight on, not tilted up or down.
|
|
- **Framing:** stand back far enough that your **whole body** is in frame, head to feet, with room
|
|
to raise and extend both arms without leaving the picture. A cropped arm or cut-off legs degrade
|
|
the skeleton the game validates against. Centre yourself; don't stand at the edge.
|
|
- **Lighting:** even, front lighting. Avoid a bright window or lamp behind you (backlight turns you
|
|
into a silhouette and the pose estimate drifts). Dim or uneven light makes tracking jittery.
|
|
- **Background:** a reasonably uncluttered background with you clearly separated from it helps the
|
|
person segmentation. One player only; other people in frame can confuse the single-person pose.
|
|
- **Distance:** roughly 2 to 3 metres from the camera, the same range a real Kinect expects. Too
|
|
close pegs the depth near the camera; too far and the pose gets small and noisy.
|
|
|
|
Calibrate (step 4) in the lighting and at the distance you'll actually play, since the gains are
|
|
measured from your live pose.
|
|
|
|
---
|
|
|
|
## Advanced: device-level attach (developer path, unverified here)
|
|
|
|
The player path above (shim + native tracker) is the supported way to play. There is also an
|
|
OS-agnostic **device-level** path that presents the webcam as a real USB Kinect so the Microsoft
|
|
NUI runtime enumerates it and skeletonizes the synthetic depth itself. It targets a stronger
|
|
proof (the OS sees a genuine Kinect), but it needs a USB/IP VHCI client, driver-signing setup, and
|
|
a native-Linux or Windows host to exercise. It was **not executed** in this project's Linux/WSL2
|
|
build environment, so treat it as a developer reference, not a tested procedure.
|
|
|
|
If you want to pursue it, the scripts and the full topology/signing analysis live under
|
|
`attach/windows/` (`scripts/` for the usbip-win2 and usbip-win clients, `docs/approach.md` for the
|
|
isochronous-framing analysis). The emitter side is in `attach/linux/`. In short: run the USB/IP
|
|
emitter, attach a VHCI client on Windows (usbip-win2 is attestation-signed and usually needs no
|
|
test-signing; the legacy usbip-win needs `bcdedit /set testsigning on`, Secure Boot off, and its
|
|
test certificate imported), then confirm Device Manager binds the three Kinect PIDs to the MS
|
|
Kinect driver and `KinectExplorer-D2D` enumerates the sensor. This path proves OS enumeration; the
|
|
shim path does not and does not claim to.
|