Client: the puppet is one skinned SDF isosurface mesh, flat-shaded

PuppetField (engine-free, CultMath): primitives from the shape lanes, a joint
ball and smooth-min per qualifying joint (Revolute, Spherical, Weld), the
bind pose spread 20 degrees at each Spherical joint, surface nets at a 40 mm
cell, two Newton steps onto the isosurface, flatter-diagonal quad split,
two-bone skin weights from the winning term. Puppet builds it once, on a
topology signature change only, and skins it in puppet.gdshader from the pose
carriers' interpolated transforms.

Smoke: triangle count, one connected piece, no skinned edge past 4x its bind
length at the intensity-6 run's end and with each Spherical joint swung 90
degrees, one build across 400 resets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 04:48:01 +01:00
commit fa4610ffe5
7 changed files with 596 additions and 12 deletions

View file

@ -64,12 +64,14 @@ session, `BodyPainBoxSession` (create, `Step`, read `Hand` and the world's lanes
`client/` is a Godot 4.7.2 (mono) project that renders the body run and takes the player's commands: the
Synaptic Induction Chamber, the dummy strapped to a stool with its right hand in the box. It owns presentation and
input only. Godot's physics engine is set to Dummy; each 120 Hz physics frame the client calls
`BodyPainBoxSession.Step()` once and draws Ymir's lanes (one node per stable id, shapes from the Kind and Size lanes).
Needs the .NET 8+ SDK, cmake and a C compiler (MinGW gcc on Windows), the sibling Lodur and Ymir checkouts
(`..\Lodur`, `..\Ymir`, or `LODUR_ROOT` and `YMIR_ROOT`), and Godot 4.7.2 mono.
`BodyPainBoxSession.Step()` once and draws Ymir's lanes: one pose-carrying node per stable id, and the body drawn as one
skinned SDF mesh (a surface-nets isosurface of the shape lanes, limbs smooth-blended into the body they hang from and
joined by a ball at each joint, built once at startup and rebuilt only when the bodies or joints change; flat-shaded).
Needs the .NET 8+ SDK, cmake and a C compiler (MinGW gcc on Windows), the sibling Lodur, Ymir (with joint origin lanes, ABI 8) and CultLib
checkouts (`..\Lodur`, `..\Ymir`, `..\CultLib`, or `LODUR_ROOT`, `YMIR_ROOT` and `CULTLIB_ROOT`), and Godot 4.7.2 mono.
```
dotnet build client/BadDay.Client.csproj # Lodur, Ymir (cmake) and BDS, plus ymir_box3d.dll, into client/.godot/mono/temp/bin/Debug
dotnet build client/BadDay.Client.csproj # CultLib Geometry, Lodur, Ymir (cmake) and BDS, plus ymir_box3d.dll, into client/.godot/mono/temp/bin/Debug
<godot> --path client # play: right-drag orbits, the wheel zooms
<godot> --headless --path client res://tests/Smoke.tscn # the smoke; exit code 0 passes
```