Webcam-driven virtual Kinect v1
Make an ordinary RGB webcam present itself as a genuine Microsoft Kinect v1 sensor so unmodified Kinect apps — primary proof target DanceEvolution Arcade (DEA) on Windows — run with no recompile. We emulate the device (the thing on USB), not the game's API, so the approach is OS-agnostic and the real host Kinect stack (MS NUI on Windows, OpenNI2/NiTE on Linux) computes the skeleton from webcam-derived synthetic depth.
Clean-room notice
All synthesis, mapping, protocol, and shim code in this repository is written fresh.
The public Kinect NuiApi.h headers and the libfreenect USB protocol are treated as
interface facts only. No GPLv3 source (KinectFaker, NiVirtualCam, NiTE2, etc.) is read or
vendored. The MS Kinect 1.8 runtime, NiTE2, and any game assets are never bundled — the
docs link to their official sources.
Module map
| Path | Role |
|---|---|
core/contract/ |
Frozen, versioned IPC frame + control schema (todo 2) |
core/mapping/ |
NUI intrinsics, MediaPipe-33 -> Kinect-20 map, Holt smoothing (todo 6) |
core/synth/ |
Packed depth + player-index + color rasterizer (todo 7) |
core/protocol/ |
Kinect v1 virtual USB device emitter (todo 8) |
tracker/ |
Python webcam -> MediaPipe pose/segmentation -> IPC (todo 5) |
attach/linux/ |
Linux USB attach via usbip/vhci (todo 9) |
attach/windows/ |
Windows virtual USB bus attach + signing docs (todo 12) |
fallback/linux-openni2/ |
OpenNI2 virtual device fallback / general emulator (todo 15) |
fallback/windows-nui/ |
Clean-room Kinect10.dll NUI shim (todo 14) |
tools/logging-shim/ |
Pass-through logging shim for the Windows spike (todo 4) |
tools/record-replay/ |
Deterministic record/replay harness (todo 16) |
tools/mock-nui-host/ |
Mock NUI host driving the shim (todo 16) |
tests/ |
Cross-cutting C++ (CTest) + Python (pytest) smoke tests |
docs/ |
Build, setup, calibration, troubleshooting, spike reports |
The shared engine is the OS-agnostic core/ (built into libnui_core, unit-tested on
Linux); only the thin attach/ and fallback/ layers are per-OS.
Build
See docs/build.md. Quick start (Linux):
cmake -S . -B build/linux && cmake --build build/linux
ctest --test-dir build/linux --output-on-failure
.venv/bin/pytest -q
The full plan lives in .omo/plans/webcam-kinect-emulator.md; the architecture and NUI
contract notes in .omo/design/.