Commit Graph
106 Commits
Author SHA1 Message Date
kinect-botandsisyphus-dev-ai 148b3fcdef fix(tracker): normalize joint reach by live shoulder width (body-size scale)
the users own fix idea: scale based on tracked body size. The shims
arm-reach gain (3.2/2.6) is a fixed multiplier tuned against one reference
reach magnitude - a players actual size/distance from camera changes the
raw reach the gain amplifies, so a fixed gain over- or under-stretches
limbs/cursor depending on who is in frame and how far away.

Added _body_scale(): derives a scale factor each frame from the live
shoulder width (MediaPipes world landmarks, already metric) against
TARGET_SHOULDER_WIDTH_METERS=0.40 (core/calibration.hs own T-pose target),
applied around the SHOULDER_CENTER pivot so scaling resizes the skeleton
around its own centre rather than shifting it on screen. Wired into both
map_pose_to_kinect_joints and SkeletonMapper.map via a shared _raw_joint_xyz
helper, so calibration and the live publish path stay consistent. 98/98
tests passing.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 13:37:12 -05:00
kinect-botandsisyphus-dev-ai 4a9a651a4a perf(tracker): force a 1-frame V4L2 capture buffer, second latency source
The capture-thread decoupling (b513519) fixed inference backing up the
queue, but V4L2 webcams commonly buffer 4-5 frames internally in the driver
by default regardless of how fast userspace reads - a second, independent
latency source. Even a tight read() loop can return an already-stale
buffered frame. Set CAP_PROP_BUFFERSIZE=1 so every read() returns the
camera actual latest frame. No tracker-native equivalent exists (Media
Foundation IMFSourceReader is pull-based, no driver ring buffer to drain) -
this is a genuine Linux/V4L2-specific fix, not a port. 98/98 tests passing.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 13:32:17 -05:00
kinect-botandsisyphus-dev-ai b513519b55 perf(tracker): decouple capture from inference, matching win_main.cpp
Latency bug: Tracker._inference_worker read the camera and ran pose
inference in the same synchronous loop, so a slow model frame backs up the
camera driver queue and lag grows without bound - the same bug win_main.cpp
fixed natively (dedicated capture thread, condition-variable wake, latest-
frame-wins, no fixed poll).

Added _capture_worker on its own thread, storing only the latest frame
behind a lock+condvar; _inference_worker now waits for and consumes the
newest capture, never a queued one. run()/stop() start and join both
threads. Updated the regression test to drive capture then inference
synchronously (both are plain methods, no real threading needed for a
deterministic single-frame test). Full suite: 98/98 passing.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 13:22:40 -05:00
kinect-botandsisyphus-dev-ai a90b2af6e9 fix(tracker): port core/mapping's hand averaging + Holt smoothing exactly
"i don't know what calibration you're talking about because i never had to
callibrate on the windows version" and "i'm having the problem from earlier
[...] difficult to move the cursor down" - both pointed at the same thing:
calibration was a workaround for a real pipeline discrepancy, not the fix.
On Windows the user only ever used the hardcoded default gains (3.2/2.6, no
calibration run) and it worked; if the Linux tracker needs calibration to
reach the same place with the same defaults, the two pipelines aren't
actually equivalent. Went back to core/mapping.cpp (the C++ module
joint_mapping.py's own docstring already claims to mirror "exactly") and
found two real, concrete divergences from that claim:

1. HAND joint averaging. core/mapping.cpp's hand_landmark() averages four
   points (wrist + index/pinky knuckles + thumb, each 0.25 weight) - the
   individual finger landmarks are MediaPipe's noisiest output, so this is a
   deliberate accuracy/jitter fix (~35% less jitter, lands on the palm
   centre matching real Kinect). joint_mapping.py's _kinect_joint_landmarks
   only averaged index+pinky (2 points, no wrist, no thumb) - a different
   hand position every frame than the Windows tracker computes for the same
   physical hand. Ported hand_landmark() exactly (same weights, same
   visibility-gated fallback to the wrist alone).

2. No smoothing at all. tracker-native/src/frame_pipeline.cpp runs every
   published joint through core/mapping's SkeletonMapper, which owns one
   Holt (double-exponential) smoothing filter per joint with jitter-radius
   damping, prediction, and a max-deviation clamp - applied to literally
   every frame of the main publish loop, not just during calibration. The
   Python tracker published a fresh, completely unsmoothed position every
   frame - a real behavioral gap (jitter/prediction/damping characteristics
   the Windows cursor feel was built around), not cosmetic.

Ported both into tracker/joint_mapping.py: HoltSmoothingFilter (the exact
filter math) and SkeletonMapper (owns one filter per joint, holds the last
smoothed position when a joint's visibility drops below VIS_TRACKED instead
of publishing a fresh low-confidence one - matching
core/mapping.cpp::SkeletonMapper::map exactly). FrameContractPublisher now
owns one SkeletonMapper instance persisting across publish() calls (matching
frame_pipeline.cpp owning one SkeletonMapper for the tracker session),
replacing the stateless per-frame map_pose_to_kinect_joints() call (still
kept, now only used by calibration.py and as the first-frame reference).

Verified against the C++ test suite's own fixtures, not just "looks
similar": tests/test_joint_mapping_py.py ports
test_mapping.cpp::HoltFilterMatchesPrecomputedGoldenSequence's exact raw/
expected values (1e-7 precision match) and
::OccludedJointIsInferredAndHoldsLastSmoothedPosition. Full suite: 98/98
passing (tests/test_tracker.py's existing fixed-pose comparison test still
matches exactly, since a fresh filter's first update is a pure passthrough -
no smoothing history yet - proven by a dedicated new test).

This does not touch the cursor arm-gain calibration added earlier - that
remains available but optional, same as it always was on Windows.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 13:14:14 -05:00
kinect-botandsisyphus-dev-ai 7d055fc847 fix(build): move kDefaultShmName into the outer let block (scope bug)
Placed it as a sibling of devShells/packages/apps in the output attrset
instead of inside the let ... in binding those three outputs share, so it
was never in lexical scope where apps = forAllSystems (...) referenced it -
"error: undefined variable 'kDefaultShmName'" on any nix run. Moved it next
to the other shared helpers (mingwCxxWrapper, poseModels, etc.) in the one
outer let block.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 13:00:00 -05:00
kinect-botandsisyphus-dev-ai ce877a6076 feat(build): bake the shm name into the flake, add nix run .#launch-options
"just put the shm in the nix flake" - the shm name (virtual_kinect_frames)
was only a CLI default inside tracker.py's argparse, invisible from
flake.nix; the user had to retype --shm-name, and separately hand-compute
the Z: drive path translation (/dev/shm/... -> Z:\dev\shm\...) for every
KINECT_SHIM_SHM_FILE/KINECT_SHIM_CONFIG launch-option value.

flake.nix now defines kDefaultShmName once and passes --shm-name explicitly
from the tracker app, so the shm name genuinely lives in the flake instead
of only matching the tracker's own default by coincidence. Added a new
nix run .#launch-options app that computes and prints the exact, ready-to-
paste Steam Launch Options line (KINECT_SHIM_SHM_FILE + KINECT_SHIM_CONFIG,
both Wine Z:-path-translated from the real /dev/shm path and $HOME) - no
more manual path arithmetic. Verified the path-translation logic (POSIX ->
Z:\... with slashes flipped) against the exact script content by running it
standalone, producing Z:\dev\shm\virtual_kinect_frames and
Z:\home\<user>\.config\VirtualKinect\calibration.cfg as expected.

docs/linux-wine.md updated to point at nix run .#launch-options instead of
having the reader compute the Z: paths by hand, and to drop the now-
redundant --shm-name flag from the Nix tracker invocation example.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 12:57:42 -05:00
kinect-botandsisyphus-dev-ai c08bc922b6 feat(tracker): add Linux cursor calibration, matching the Windows flow exactly
"the cursor scaling is still wrong, make it like the windows one" - the
Linux tracker had no way to calibrate at all. The in-game cursor's arm-reach
gains (default 3.2/2.6) were tuned specifically for the native Windows
tracker's camera/pose characteristics via its "Calibrate cursor" button
(core/calibration.h's derive_arm_gains); Linux users were stuck on that
default regardless of their own camera/body, with no equivalent tool.

tracker/calibration.py is a byte-for-byte port of core/calibration.h's
arm-gain derivation (mean(|reach|) -> target/mean, clamped [1,6]) and the
calibration.cfg text format load_config()/save_config() share, so a config
written by either side is read identically by the shim - not a
reimplementation that happens to produce similar numbers, the same formula
and the same wire format, verified against tests/test_calibration.cpp's own
cases (averaging, diagonal-gesture success, horizontal-only rejection,
clamp-to-min, save/reload round-trip) ported 1:1 into
tests/test_calibration_py.py - 6/6 passing, plus the existing tracker suite
still 11/11.

tracker.py gets a --calibrate mode (calibrate_cursor()): mirrors each frame
for pose inference exactly like the main loop, computes Kinect joints with
mirror=False, and reads HAND_LEFT (index 7) minus SHOULDER_LEFT (index 4) -
the slots the player's actual right arm lands in post-mirror, pre-shim-swap,
matching exactly where win_main.cpp's CalibrateCursor() reads
skeleton.joints[7]/[4] (verified by reading that function directly). Usage:
nix run .#tracker -- --calibrate --source 0.

docs/calibration.md and docs/linux-wine.md document the Linux flow, the
Linux default config path (no %LOCALAPPDATA% equivalent - XDG config dir),
and that KINECT_SHIM_CONFIG must be set explicitly in both the calibration
tool's environment and the game's launch options (Wine or Proton) so they
agree on one file - the same pattern already established for
KINECT_SHIM_SHM_FILE.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 12:53:45 -05:00
kinect-botandsisyphus-dev-ai 46187b60a4 fix(tracker): publish the mirrored frame as color, matching the user's actual Windows experience
After the pose-mirror fix (5157651) made skeleton/depth correct, the RGB
video still looked wrong: mirrored on Linux where the user's actual Windows
reference showed a natural selfie-mirror video in-game. Checking the current
win_main.cpp + win_camera.cpp source shows no mirroring anywhere in the
publish path today - but that's inconsistent with what the user actually
observed on their working Windows setup, most likely because the deployed
exe predates a later "un-mirror for cursor accuracy" commit in this
project's history, or an earlier point in that mirror saga is what they
actually tested.

The published color buffer is fully independent of skeleton/cursor
correctness (driven only by the separate pose-inference path, verified
correct), so mirroring it carries no correctness risk. Tracker._inference_worker
now stores the same mirrored copy used for pose inference as self._latest_frame
(previously the raw capture), so the published color stream matches the
selfie-mirror video the user's Windows setup actually showed them.

Renamed/updated the regression test (now
test_inference_worker_mirrors_frame_for_pose_and_publish) to assert both the
pose-inference input and the published frame equal the mirrored copy. Full
suite: 11/11 passing.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 12:44:55 -05:00
kinect-botandsisyphus-dev-ai 5157651cd7 fix(tracker): mirror the capture for pose inference, matching tracker-native
The in-game skeleton/cursor tracking was left/right reversed. Root cause:
tracker-native's win_main.cpp physically mirrors the captured frame
(pixel-level horizontal flip) before pose inference, but publishes the raw
unmirrored frame as the color stream, and runs its mapper with
cal_mapping_cfg.mirror=false (verified by reading win_main.cpp and
core/mapping.cpp directly). The shim's unconditional L/R joint swap
(fallback/windows-nui/src/sensor.cpp) then corrects MediaPipe's resulting
left/right mislabeling.

The Python tracker never physically mirrored the capture - it only applied a
coordinate-level flip (1-u) in joint_mapping.py, with FrameContractPublisher
defaulting mirror=True. That left joint identity already correct on its own
(no image mirror -> no MediaPipe mislabeling -> no swap needed), so the
shim's unconditional swap then flipped it backwards: the exact "tracking is
backwards" symptom.

Fix: Tracker._inference_worker now mirrors the frame (cv2.flip) before
handing it to the pose provider, exactly like win_main.cpp, while keeping
the raw frame for self._latest_frame (the published color stream).
FrameContractPublisher's mirror default changes to False to match
cal_mapping_cfg.mirror=false, so the physical flip isn't double-applied.

New regression test calls the real Tracker._inference_worker directly (not
a reimplementation) with an asymmetric synthetic frame and asserts the pose
provider receives the mirrored version while the stored/published frame
stays unmirrored. Updated test_publish_and_read_back_fake_pose to compute
its independent expectation with the publisher's actual mirror setting
instead of assuming it matches joint_mapping's own default. Full suite:
11/11 passing.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 12:36:55 -05:00
kinect-botandsisyphus-dev-ai b0c418bd16 fix(build): link the missing mcfgthread static lib for mingw cross builds
The shim build failed under the Nix flake with a wall of "undefined
reference to __MCF_cxa_guard_acquire / _MCF_mutex_lock_slow / ..." from
libstdc++.a. Root cause: nixpkgs' pkgsCross.mingw32/mingwW64 GCC links
against the MCF threading runtime but doesn't pull in libmcfgthread
automatically - a known upstream nixpkgs gap (nixpkgs#156343,
"pkgsCross.mingw32.stdenv.cc provides slightly incomplete linking
environment: cannot find -lmcfgthread"). The project's build.sh /
build_win.sh hardcode -static -static-libgcc -static-libstdc++ (so the
shipped DLL has no runtime dependency), which pulls in libstdc++'s
MCF-based locale/guard code and hits exactly this gap.

Added mingwCxxWrapper: a thin wrapper around each cross g++ that appends
-L<mcfgthreads>/lib -lmcfgthread, using pkgsCross.<target>.windows.mcfgthreads
overridden with dontDisableStatic (upstream only ships the shared lib by
default). CXX32/CXX64/CXX_WIN now point at the wrapper's absolute store
path rather than a bare compiler name, so there's no PATH-ordering
ambiguity against the unwrapped g++ that pkgsCross.*.buildPackages.gcc
still puts on PATH for as/ld/objdump/windres.

Not yet verified against a real nix build (no nix in this sandbox) - based
on the confirmed upstream nixpkgs issue plus a real working example from
that issue thread (pkgsCross.mingwW64.windows.mcfgthreads.overrideAttrs
{ dontDisableStatic = true; }). Awaiting the user's real-environment
rebuild.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 12:00:06 -05:00
kinect-botandsisyphus-dev-ai d8b0db4e59 docs: document the real spice2x "Kinect bypass" mechanism
The user hit "spice2x won't launch" which turned out to be DEA's boot-time
Kinect presence check hanging then exiting cleanly after ~20s (full AVS2
boot, I/O hooks via Wine HID all succeed, then xrpc dispose with no crash
signature - easy to mistake for a launch failure). They looked for a
"Kinect bypass" option in spicecfg and couldn't find it, because it isn't a
built-in checkbox - it's a community runtime JSON patch
(github.com/JoeKoh27/danevo-patches), imported through spicecfg's Patches
tab -> Import from URL. Verified by fetching the patch repo directly.

docs/setup-windows.md step 5 and docs/troubleshooting.md now spell out the
exact mechanism (Patches tab, import URL, enable Kinect bypass, the specific
gamekdm.dll build it targets) instead of just saying "enable the Kinect
bypass option", which was accurate in substance but too vague about where
to find it.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:43:06 -05:00
kinect-botandsisyphus-dev-ai 1cc8dc3515 feat(tracker): print startup + periodic status lines (no GUI on this path)
The Linux Python tracker is headless by design - no window, no camera
picker, no live preview; those only exist in the Windows-only
tracker-native/ GUI, which cannot run under Wine (docs/linux-wine.md). But
it also produced zero console output during a normal run, so a working
tracker and a silently stuck one looked identical - which is what prompted
"i don't see the window or picker or preview".

Added:
- a startup banner (camera source opening/opened, model loading, shm
  target + resolution + fps) so a terminal run shows the pipeline actually
  came up,
- a periodic "[tracker] frame=N fps=F player=tracked|lost seq=S" status
  line (every 2s by default, Tracker.run(status_interval=...), disableable
  for tests) so a long-running session shows live confirmation it is still
  publishing frames and whether a person is currently detected.

Verified for real: ran the CLI against both a synthetic test video (confirms
the startup banner, mediapipe loads and infers) and a paced fake source
spanning several seconds (confirms the periodic status line fires on
schedule with the right frame/fps/player fields). Full tests/test_tracker.py
suite still passes (10/10, 0.78s) - the fast unit-test runs finish well
under the 2s default interval, so no new output or timing coupling there.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:13:15 -05:00
kinect-botandsisyphus-dev-ai c4796d7dcf feat(build): fetch the pose model bundles through Nix, hash-pinned
tracker.py failed with FileNotFoundError on pose_landmarker_full.task - the
flake built the Python env fine but never fetched the .task model bundles
that docs/setup-linux.md step 2a used to curl by hand into the git-ignored
tracker/models/.

Added poseModels: a runCommand derivation that fetches all three tiers
(lite/full/heavy) via pkgs.fetchurl with sha256 hashes pinned from the real
bundles (verified by downloading and hashing each one directly, not guessed).
The google storage "latest" path can move the file it points to; fetchurl's
hash check fails loudly if it ever does, rather than silently serving a
different model.

nix run .#tracker now passes --models-dir pointing at this derivation by
default (a user-supplied --models-dir/--model after it still wins, argparse
keeps the last occurrence). nix develop also symlinks the fetched bundles
into tracker/models/ so a manual python -m tracker.tracker inside the shell
needs no separate fetch either. docs/setup-linux.md updated to note the Nix
path skips the manual model-download step too.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:09:14 -05:00
kinect-botandsisyphus-dev-ai 022502864c fix(build): give the flake default apps/packages so bare nix run works
nix run with no args resolves to apps.<system>.default (or packages.default
as a fallback), neither of which the flake defined - only the explicitly
named apps.tracker/core-test/shim-build existed, so a bare nix run errored
with "does not provide attribute ... default". Added apps.default (aliased
to the tracker app, so nix run with no args launches the tracker, matching
the args.--source default of webcam 0) and packages.default (the tracker's
Nix-built environment via mkVirtualEnv).

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:07:25 -05:00
kinect-botandsisyphus-dev-ai 97d287e439 fix(tracker): drop opencv-contrib-python from the resolution, fixing the Nix build
The real nix develop run surfaced a FileCollisionError: mediapipe declares a
dependency on opencv-contrib-python (its own cv2 build), which collides with
our own opencv-python-headless pin - both provide cv2/__init__.pyi with
different contents. uv2nix merges every locked wheel into one environment and
refuses on a content mismatch; a plain pip/uv venv install silently let
whichever package installed last clobber the others files instead, which is
why this never surfaced before.

tracker/pyproject.toml now excludes opencv-contrib-python from resolution
(tool.uv.exclude-dependencies) since opencv-python-headless already provides
everything the tracker and mediapipe need - verified by installing the
re-locked tracker/uv.lock into a real venv and confirming import mediapipe,
import cv2, and from mediapipe.tasks import python all succeed with only the
headless build present.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:06:15 -05:00
kinect-botandsisyphus-dev-ai fd1c9ad3e5 feat(build): add a Nix flake for a venv-free Linux build
flake.nix builds the whole project with Nix instead of a manual uv venv:

- the Python tracker as a pure Nix-built environment via uv2nix, from
  tracker/uv.lock (generated by uv lock against pyproject.tomls pins -
  numpy==2.5.5, opencv-python-headless==5.1.0.95, mediapipe==1.2.3, Python
  3.12), so the environment is an immutable Nix store path assembled from
  hash-pinned wheels, never a mutable venv or a pip install step. libglvnd
  replaces the manual libGLESv2.so.2 .deb-extraction workaround.
- the OS-agnostic core + CTest suite via cmake (nix run .#core-test).
- the Windows shim + native tracker cross-compiled via nixpkgs mingw-w64
  (pkgsCross.mingwW64/mingw32; nix run .#shim-build), with CXX32/CXX64/CXX_WIN
  wired to the build scripts override hooks.

nix run .#tracker runs the tracker directly; nix develop gives a shell with
everything for manual work. docs/setup-linux.md documents the Nix path as
the lead option, keeping the uv/venv path as the no-Nix fallback.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:00:15 -05:00
kinect-botandsisyphus-dev-ai 2ea8fc4aa6 feat(shim): bridge the Wine-hosted shim to the native Linux tracker via a file-backed shared-memory mapping
Wine mf.dll stubs out MFEnumDeviceSources for video capture (confirmed in
Wine upstream source), so tracker-native/kinect-tracker.exe always sees zero
cameras and null-derefs when run under Wine. Rather than chase that Wine
limitation, let the already-verified native-Linux Python tracker (tracker/,
full V4L2 access) feed the Wine-hosted shim directly.

FrameSource gains open_file() (CreateFileW + file-backed CreateFileMappingW
+ MapViewOfFile), selected via a new KINECT_SHIM_SHM_FILE env var checked
first in VirtualKinectSensor::Initialize, falling back to the existing
anonymous named-section path when unset. The Linux tracker publishes through
multiprocessing.shared_memory, which on Linux is backed by a real file at
/dev/shm/<name>; through Wines default Z: drive that is reachable from
inside Wine as Z:\dev\shm\<name>, so both sides map the same tmpfs file
with no Wine camera support needed at all.

Builds clean for both x86/x64 (fallback/windows-nui/build.sh). New runbook
in docs/linux-wine.md; linked from README and docs/troubleshooting.md.

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-30 10:00:06 -05:00
kinect-bot 48eb19dd43 fix(calibration): gesture wording matches derivation (todo 9); restore build.sh exec bit 2026-11-27 04:10:29 -05:00
kinect-bot ee6781ef31 feat(release): wave 3 landed - preflight, docs refresh, limitations 2026-11-27 03:49:56 -05:00
kinect-bot e0f98550a1 feat(release): wave 2 landed - Windows prebuilt player bundle 2026-11-27 03:18:46 -05:00
kinect-bot 710c4f23e5 feat(release): wave 1 landed - tuning/calibration, model+ORT distribution, licensing, 2P experiment+probe 2026-11-27 03:05:51 -05:00
kinect-bot 865185e4a6 docs(plan): add approved release-readiness work plan 2026-11-27 01:42:06 -05:00
kinect-bot 8cc94da668 docs: add docs/game-internals.md (how DEA consumes the Kinect: skeleton validity gate, the Flash/libafp menu-cursor PhIZ, two-player, in-process introspection) + a full RE/decompilation jump-start (Ghidra gkproj, ifstools+bemaniutils afp toolchain, real-Kinect datasets, key addresses). Refresh README + native-tracker for the native tracker, working DEA, and new features. 2026-11-27 01:09:11 -05:00
kinect-bot 449cb2d749 feat(tracker): remember the last-selected camera + resolution in kinect_tracker_last.txt next to the exe; the dropdowns default to it on next launch (falls back to the first camera if it's gone). User rebuilds the tracker. 2026-11-27 01:03:44 -05:00
kinect-bot 86722b0379 perf(tracker): multi-thread ONNX inference (was single-threaded, the dominant latency; now ~half the cores clamped 2-4) + replace the capture->infer Sleep(1) poll with a condition-variable wake and a buffer swap (no fixed poll latency, no per-frame copy under lock). User rebuilds the tracker. 2026-11-27 01:01:25 -05:00
kinect-bot 10dd2859ca cleanup(shim): gate the in-process RE introspection (DumpGameDisplayState), the handcur hand/cursor log, and the producer-tick heartbeat behind kShimDebug (false) so shipping builds stay quiet and the debug tooling is clearly separated 2026-11-27 00:56:37 -05:00
kinect-bot 03f7b01f9a tune(shim): gain back to X3.2/Y2.6 (3.7/3.0 overshot). revert(mapping): remove redundant core L/R swap (shim does it; avoids double-swap on a clean core rebuild) + restore golden/occlusion tests. 2026-11-27 00:44:56 -05:00
kinect-bot 61025ed3f9 tune(shim): nudge arm gains X 3.2->3.7, Y 2.6->3.0 (range was slightly short) 2026-11-27 00:39:39 -05:00
kinect-bot 4965a5415a tune(shim): raise arm gains X 1.6->3.2, Y 1.3->2.6 (~2x) so a comfortable one-arm range covers the full screen (covered ~half each axis before) 2026-11-27 00:29:33 -05:00
kinect-bot 552beedd15 fix(shim): swap L/R joints (mirror swaps MediaPipe labels - verified) + amplify arm reach 1.6x/1.3x (MediaPipe compresses hand-relative range vs real Kinect, UTKinect-measured) so the menu cursor covers the full screen. Shim-side so no tracker rebuild needed. 2026-11-27 00:19:53 -05:00
kinect-bot cb5e8f7865 fix(mapping): swap L/R joint assignments so the mirrored camera puts the player's right hand in HAND_RIGHT (was landing in HAND_LEFT); matches real Kinect convention. Update golden + occlusion tests. 2026-11-26 23:39:49 -05:00
kinect-bot 91c4e82ea6 fix(tracker): restore source mirror - real Kinect data (UTKinect/MSR) shows right hand is +x rel shoulder-center; our un-mirrored build had it -x (flipped), pinning the menu cursor 2026-11-26 23:24:43 -05:00
kinect-bot 9bf156ccb8 revert(mapping): restore original smoothing (the raised jitter-radius over-damped the hand, making the cursor track worse) 2026-11-26 22:37:56 -05:00
kinect-bot f51656cf0e diag(windows-nui): comprehensive paired log - all candidate hand/ref joints + both cursor slots + state flag (one sweep captures everything) 2026-11-26 22:32:13 -05:00
kinect-bot 62d6e953f9 diag(windows-nui): log hand + live cursor PAIRED and dense (~0.5s) to solve the hand->cursor mapping 2026-11-26 22:26:39 -05:00
kinect-bot a77508a0fb test(mapping): pin golden Holt sequence to explicit params so smoothing-default tuning doesn't break it 2026-11-26 22:15:04 -05:00
kinect-bot fd1b0f086f fix(mapping): stabilize cursor - higher smoothing + wider jitter dead-zone + lower prediction (reference jitter was making the hand-shoulder cursor jump) 2026-11-26 22:14:24 -05:00
kinect-bot 4981a4c768 diag(windows-nui): read the game's live menu cursor (DAT_103d2bb8 controller +0x108/+0x10c) to correlate hand->cursor directly 2026-11-26 22:08:46 -05:00
kinect-bot 256a9056c0 diag(windows-nui): log HAND_L/R + shoulder joint positions (and hand-relative-to-body) to debug menu cursor pinning 2026-11-26 21:04:15 -05:00
kinect-bot dede81706a fix(mapping): stabilize HAND joints via 4-point average (wrist+index+pinky+thumb) - ~35% less jitter, palm-centered like a real Kinect HAND, for the menu hand-cursor 2026-11-26 03:52:54 -05:00
kinect-bot 5b9d00fcac tracker: add synthetic skeleton puppet (Python reimpl of core/mapping) for cursor+pose validation without webcam/game 2026-11-26 03:38:46 -05:00
kinect-bot 03e3a1808c perf(tracker): low-latency capture - MF_LOW_LATENCY + dedicated capture thread that keeps only the latest frame (inference never processes a stale backlogged frame) 2026-11-26 03:07:10 -05:00
kinect-bot 36035cc9a2 fix(windows-nui): center skeleton in game's validity box via vFloorClipPlane.w=1-hip.y (SKELETON NOW RENDERS - gate was the gravity/floor transform Y-translation) 2026-11-26 03:04:38 -05:00
kinect-bot 32e729a1f1 diag(windows-nui): dump full 16-element transform matrix (diagonal-only read was misleading) 2026-11-26 02:49:50 -05:00
kinect-bot dac3bb22d2 diag(windows-nui): introspect the filter's validity box DAT_103d3230 (the valid region our M*Position must fall within) 2026-11-26 02:37:19 -05:00
kinect-bot 501ee262ad diag(windows-nui): dump manager's internal SkeletonData[0] copy to check if our skeleton reaches the filter's buffer; revert position probe 2026-11-26 02:26:47 -05:00
kinect-bot cb85158379 diag(windows-nui): introspect game reference stage points for filter distance analysis 2026-11-26 02:14:03 -05:00
kinect-bot b4637dc119 diag(windows-nui): also introspect game transform matrix diagonal + candidate validity flags 2026-11-26 02:06:40 -05:00
kinect-bot f46021f61a diag(windows-nui): introspect game's live skeleton-validation state (reference dir, gravity, selected IDs) from the shim's in-process read of gamekdm.dll 2026-11-26 01:59:48 -05:00
kinect-bot 4698fa153b tracker-native: add straight-standing test image that clears the game's limb-verticality gate 2026-11-26 01:43:53 -05:00