These sections were split out of README.md to keep it readable.
ft-handview (screens/handview.cpp, built by screens/build.sh) draws each tracked hand: when Room View is off, and with HANDS_VIEW_ROOMVIEW=1 (the default) when it’s on too, floating over the cutout’s hole (the tracking is good enough to look right on its own; 0 draws nothing with Room View on, as before).
The model (HANDS_VIEW_MODEL): asset (the default), the WebXR Input Profiles’ generic-hand (MIT), a rigged low-poly hand of 1360 vertices and 2314 triangles per hand with the 25 WebXR hand joints as its skeleton; or babylon (Babylon.js’s hand meshes, CC BY 4.0, 1808 triangles), mrtk3 (MRTK3’s OpenXR hand, BSD-3-Clause, 2794), godot (Godot XR Tools’ hands, CC0, 3052) or mrtk2 (MRTK2’s rigged hand, MIT, 2664). All are in screens/assets/hands/, each with its source, version, licence and conversion in a README (the MRTK ones were FBX, converted with assimp and screens/tools/hand-glb-clean.py; MRTK3 has only a right hand, mirrored for the left). screens/tools/hand-asset.py maps each one’s skeleton onto WebXR’s 25 joints by name (MRTK3’s names sit a joint along; MRTK2 has no metacarpals but the little finger’s, so the others go a third of the way to the knuckle, unweighted; extra joints such as a root or a palm give their weights to the wrist) and turns them all into handasset.cpp (quantized vertices, normals, four joints and weights per vertex, the triangles, the joints’ bind pose; screens/build.sh makes it in screens/build/ each build, and screens/handasset.h declares it), compiled in, so there’s no glTF code at run time. generic-hand’s fingertip joints sit about a centimetre inside its fingertips, so its fingers reach about that far past the tracked tips; Babylon’s and MRTK2’s end within a few millimetres of them. screens/handskin.cpp poses it: each of the model’s joints gets a frame, the same way in its bind pose and on the tracked hand (version 2’s fitted skeleton, else the landmarks): its bone’s direction toward the next joint, and a roll from the palm (across it for the fingers’ first bones, its normal for the thumb’s; each bone after takes its parent’s sideways axis, the axis a finger bends about). WebXR’s metacarpal joints, which MediaPipe doesn’t have, follow the palm (wrist, index and little knuckles). The model is scaled by the palm’s size and each bone along its length to the tracked bone (0.6-1.6 times). A left hand is drawn with the model’s left hand, so nothing is mirrored. The vertex shader blends up to four joints’ matrices per vertex (linear blend skinning on the GPU); the CPU only works out the 25 matrices and skins a third of the vertices to place the hand’s square. The model ends just past the wrist: its heel fades out over the 3 cm before the tracked wrist, and the rest past it isn’t drawn. That leaves it open there: with the hand pointing away from you, you’d look into it (a hollow tube, a fist’s fingertips through the palm). So it’s capped: a stencil pass counts the surfaces along each view (+1 for each front face, -1 for each back face; the GPU’s early depth test would drop hidden ones, so it’s a pass of its own with the depth test off), and where one more back face than front says the view went in through the cut, a disc where the fade begins (an ellipse fitted to the skinned points there) covers it, solid in the middle and fading toward its edge. Godot’s hand has a longer, wider wrist, so more of it is faded, and from above a hand pointing away shows a darker patch there. HANDS_VIEW_MODEL=robot draws a robot hand built in code from the tracked skeleton (screens/handrobot.cpp; no asset, so no licence): rigid pieces, each fixed to one bone, so nothing bends or stretches out of shape. Each finger bone is a light shell (a tapered box with rounded edges and ends) with a gap at each joint; a dark ball sits at each knuckle and at the thumb’s base, a dark hinge (a short cylinder along the axis the bone bends about) at the other joints. The palm is a dark core between a palm plate and a back plate (a dark seam shows round its sides, a panel line across each), ending in a short closed cuff past the wrist with a dark plate in its end. Small accents glow cyan: a pad on each fingertip, a line across the back of the knuckles, a dot in the palm, a ring round the cuff. 2373 vertices and 4360 triangles, one mesh for both hands, built once as a right hand on a reference hand (handskin::DemoPose’s open one) in each segment’s frame: the frames are handskin’s (handskin::TrackedFrames: the bone’s direction and its roll from the palm, by the models’ rule), a left hand’s mirrored from a right one’s, so the same mesh draws the left mirrored. Posed, each of its 16 segments (the palm, three thumb bones, three for each finger) is scaled by the palm’s size against the reference’s, and the palm’s width by the knuckles’ span; each vertex is fixed to its bone’s start or end, so a shell’s rounded ends keep their shape, its straight middle takes up the tracked bone’s length, and a fingertip ends at the tracked tip. The girth follows the palm’s size, not ft-hands’ joint radii (rough, mostly its defaults). The vertex shader applies one segment’s matrix per vertex; the CPU works out 16 matrices and poses a quarter of the vertices to place the square. Nothing fades and nothing is open, so there’s no cap pass. In solid the shells are matte ceramic white and the joints dark grey with a sharper highlight; in ghost the shells are pale and see-through (30%), the joints darker (50%), the accents nearly solid, with the same fresnel rim as the models. No free robot hand asset fit (2026-10-09, screens/assets/hands/README.md). HANDS_VIEW_MODEL=capsules draws the older hand instead: the cutouts’ mesh matte with no margin (screens/handmesh.cpp), a tube per finger bone, the palm’s slab, the thumb’s web and the forearm’s stub, fading out over the 10 cm behind the wrist.
The look (HANDS_VIEW_STYLE): ghost (the default) is a light, see-through hand (about a third opaque) that glows white toward its edges, a soft fresnel rim where the surface turns away from you (no drawn outline, so a finger over the palm shows only its own soft edge), with the fingertips a little brighter; solid is a matte light grey hand, nearly opaque, lit from above (wrapped, so the underside is dimmer, not dark) with a soft cool rim light, easier to see over bright games. Both shade only the surface nearest the eye (the body pass keeps depth), so a see-through hand never shows its inside or its far side. model <name>|capsules, style ghost|solid and inroom 1|0 on @ft_handview switch them live until a restart.
Each hand is an overlay of its own (sort order 100, over the panels and the dashboard): a square placed at the hand, facing your head, side by side, each half what one eye sees of the hand projected onto the square. The compositor keeps a placed overlay still in the room as your head turns, so a hand only waits for its own motion; a head-locked layer would have to be redrawn at the display’s rate to stay put. It’s drawn for each new hands frame and, while the hand moves, at most every 20 ms in between (moved ahead like the cutouts), on the GPU: the body into a scratch buffer (and the model’s cap), then the colour into a DMA-BUF SteamVR imports. The --demo hands (two hands 45 cm ahead, drawn 30 times a second each) cost 0.5-0.7 ms of CPU per hand per draw (0.3 of it the mesh) and about 4.5% of one core in all on 2026-10-09 with the capsules; idle it’s 0.2%, and with Room View on and HANDS_VIEW_ROOMVIEW=0 it wakes 10 times a second. Offscreen (--snapshot, two waving hands at 30 draws a second each, no SteamVR, capped to one core by frame-job, 2026-10-09) the model took 0.36-0.40 ms of CPU per draw (0.08-0.09 of it posing and placing) and 2.2-2.4% of a core, the capsules 0.55-0.62 ms (0.27-0.34) and 3.2-3.5%. With the fresnel look and the cap (the same day, the user in the headset with SteamVR running): asset 0.34 ms of CPU against 0.32-0.33 before, and 0.61-0.62 ms of waiting for the GPU per draw (each frame’s glFinish, shared between its two draws) against 0.57; the other models 0.27-0.41 ms of CPU and 0.61-0.68 ms of GPU wait, the capsules 0.44-0.45 and 0.53-0.54. The robot (2026-10-09, frame-job at 4 cores, the same run as the others’ numbers here): 0.21-0.24 ms of CPU per draw (0.04-0.05 posing and placing) and 0.55-0.57 ms of GPU wait, against asset 0.28 and 0.66, babylon 0.26 and 0.66, mrtk3 0.25 and 0.66.
Between frames and past them (screens/handhold.h, 2026-10-13, user: “implement interpolation for the rendered hands so that they feel smoother”, and “if the hand is lost it’s preferable the rendered hand display freeze instead of make impossible movements, spaz out, or vanish until a few seconds have passed”). The tracking comes about 30 times a second. Each new frame blends in, joint by joint, from the pose drawn now over about the time since the frame before (15-70 ms), drawn every 15 ms meanwhile. A hand the tracking loses stays where it was last drawn, still, for HANDS_VIEW_HOLD seconds (3), then goes. A frame whose palm is further from the last one taken than a hand moves (15 cm, or 6 m/s over the time since; the lazy susan’s strokes peak at 4.5) or whose palm turned over (100 degrees) in under 0.2 s isn’t drawn until two frames in a row agree with each other by the same test (or 0.25 s passes): the drawn hand holds still meanwhile, then goes straight there. A hand first seen, or back after a loss, also waits for two frames that agree, about 33 ms. A hand taken off for a controller, Room View or a lost head pose goes at once. HANDS_VIEW_SMOOTH=0 draws each frame as it comes and a hand only while it’s tracked, as before. The status line counts the losses held and the jumps held off.
--snapshot FILE.png draws demo poses of both hands offscreen (open palm toward you, palm away, palm up, fist, point, pinch, spread; each row the left hand’s two eye halves over dark, the right’s over light) with no SteamVR or headset, then the cost loop above (and how long the GPU took after it): for checking the look and the skinning after a change. FT_HANDS_VIEW_MODEL and FT_HANDS_VIEW_STYLE in its environment pick what it draws.
A hand holding a controller isn’t drawn: the pointer helper sends ft-handview its word (“hands L R allowed” on @ft_handview, as to ft-screens); while the helper is silent (3 s), a hand within 15 cm of its side’s controller counts as holding it. The hands draw in VR games too (hand input keeps its own rules), but only while hand tracking runs: the relay parks it while Frametop is paused for a game, unless the dashboard is open.
Room View (screens/roomview.h): SteamVR has no public “is Room View on”. In a VR game, the compositor’s VREvent_RoomViewShown and VREvent_RoomViewHidden tell it; with no game, the construct shows Room View when camera/enableConstructRoomView is on (the default on the Frame). The passthrough shared state (VR_CameraPassthroughState, read only) has an enabled byte; it read 1 on 2026-10-09 and isn’t yet known to follow the dashboard’s Room View button, so only a 0 counts (off). HANDS_ROOMVIEW=auto|on|off in ~/.config/frametop.conf forces it for both programs.
screens/build/ft-handview [--status S] [--res PX] [--demo] [--seconds S] # in the dev container (scripts/in-box)
screens/build/ft-handview --snapshot /tmp/hands.png [--res PX] [--seconds S] # offscreen, no SteamVR
echo -n state | socat -t 1 - ABSTRACT-SENDTO:ft_handview,bind= # the status line; also: roomview auto|on|off, model, style, inroom
screens/tools/hand-asset.py # handasset.cpp and .h from screens/assets/hands/*.glb (--cpp PATH: the data only, as the build does; --check: are they up to date)
screens/tools/hand-glb-clean.py # a converted (FBX -> glTF) hand rewritten for hand-asset.py (screens/assets/hands/*/README.md)
screens/frametop-handview.service runs it as a user service (--status 60), started and stopped with SteamVR; the installer doesn’t install it on its own.
Hand tracking needs all four mono cameras and the headset’s IR light. With the Arcturus colour module attached, SteamVR’s XRService loads an FPGA image (“VCINT”) onto the module every time it opens the cameras: when SteamVR starts and after every wake. When that load fails, XRService runs only the two side cameras, the frames come out darker and noisier, and ft-hands finds no hands at all. It happened on 2026-10-02 at 17:02, after the headset slept; the hand recorder then said “I can’t see your hands” for a whole session.
hands/camcheck.py (system Python, standard library) tells whether the four cameras run: ok, degraded: upper cameras and IR light off (VCINT FPGA failed to load) (or another degraded: reason), or unknown (SteamVR not running, the cameras closed while the headset sleeps). It prints the log lines and other evidence it used; --json is for programs; the exit status is 0, 1 or 2. It reads:
~/.local/share/Steam/logs/xrservice.txt): the last camera start (from the FPGA check to the next “Closing tracking camera interfaces”), its VCINT result, Upper cameras FPGA interleaving support: N, Created N tasks (T tracking, P passthrough) and the TrackingCameraInit lines. A wake that works prints no “Created N tasks”, so an older one doesn’t count;/dev/video* XRService has open (/proc/PID/fd; video9 and video13 are the side pair, video6 and video7 the upper pair). Only on the host: the dev container can’t read another process’s open files, so there it’s skipped;The hand recorder runs it before a session (DESIGN.md, “Camera check”). hands/tests/test_camcheck.py runs it on the 2026-10-02 log cut at several points, and on made-up logs.
hands/ft-camwatch follows the XRService log (a stat every 2 s, reading only what’s new). On a VCINT failure it posts a notification in the Frametop desktop, on the desktop’s own D-Bus, found through its plasmashell as decoration/apply.sh does. With CAMWATCH_AUTO_RESTART=1 in ~/.config/frametop.conf it also restarts SteamVR, but only:
vrcompositor runs and a /sys/class/backlight/*/brightness is over 0), and after it has been off for CAMWATCH_IDLE_S (60);SteamLaunch AppId=N in a process’s arguments; CAMWATCH_IGNORE_APPIDS lists ids that don’t count) and nobody on the remote desktop (an established connection to the VNC port, VNC_PORT, 5900);CAMWATCH_COOLDOWN_MIN (30) of the last automatic restart. It remembers both in ~/.local/state/frametop/camwatch.json, so its own restart doesn’t reset them.It logs every decision to the journal. ft-camwatch --once prints the state and what it would do, and does nothing; --dry-run keeps watching without acting. hands/frametop-camwatch.service is the unit (a template, @REPO@ as in the others; nothing installs or enables it yet). It isn’t PartOf=steamvr.service, so it outlives the restart it asks for. CAMWATCH_NOTIFY=0 turns the notification off. hands/tests/test_camwatch.py tests its decisions with made-up inputs.
Read from the code on the experimental branch, not tried live:
VREvent_Quit it ends its Wayland display (screens/vr.cpp, ft_vr_poll; screens/compositor.c, handle_vr_event). It never connects to SteamVR again: ft_vr_init runs once, at its start.frametop-desktop, is a transient systemd-run unit with Restart=no, so the desktop doesn’t come back by itself: start it again (Desktop in the library, or desktops.sh start).session/keep-apps.sh moves programs started in the desktop out of the unit first, but only desktops.sh stop runs it; here they stop too. Programs in the dev container (ft-screens, the hand recorder) are in the container’s cgroup and end when their Wayland connection goes.PartOf=steamvr.service restart with it: frametop-camd, frametop-hands, the pointer helper, gaze and power, and the hand recorder’s own transient ft-camd and ft-hands units.Verified, from the XRService logs of 2026-10-01 and 2026-10-02 and the running system:
Guesses, not tested:
room_led_en pin, but nothing shows the light’s state directly.SteamLaunch AppId=N: from Steam on other Linux systems; no VR game has run on the Frame to confirm it.