From ddfef49b836679b41ec936d24c90576a152861ba Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 02:30:49 +0100 Subject: [PATCH] README: the Godot client section replaces 'Nothing renders the puppet yet' Co-Authored-By: Claude Sonnet 5.5 --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90b6d2c..04e4deb 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,26 @@ steps; the native Ymir library builds with cmake and a C compiler on first build) and adds a line with the time the hand left the box. The body run is also a stepping session, `BodyPainBoxSession` (create, `Step`, read `Hand` and the world's lanes, `SetIntensity`, `SwitchOff`, `DrainEvents`, dispose), that the Godot client drives and `run --body` steps to the end; `BadDay.Core` and -`BadDay.Ymir` target net8.0 for Godot, the executables and tests net10.0. Events queue per tick until drained, so a frame spanning several steps loses none. Stepping past the end keeps the body moving; that free motion is float arithmetic on the platform's math and is not bit-identical across operating systems (the run itself is). Nothing renders the puppet yet. +`BadDay.Ymir` target net8.0 for Godot, the executables and tests net10.0. Events queue per tick until drained, so a frame spanning several steps loses none. Stepping past the end keeps the body moving; that free motion is float arithmetic on the platform's math and is not bit-identical across operating systems (the run itself is). + +### Godot client + +`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. + +``` +dotnet build client/BadDay.Client.csproj # Lodur, Ymir (cmake) and BDS, plus ymir_box3d.dll, into client/.godot/mono/temp/bin/Debug + --path client # play: right-drag orbits, the wheel zooms + --headless --path client res://tests/Smoke.tscn # the smoke; exit code 0 passes +``` + +Or open `client/project.godot` in the Godot editor, Build, Play. The HUD has Reset with a seed, a live intensity +slider, Box off and Slow motion. Do not run `godot --import` on a fresh checkout; a plain run creates `.godot`. +Exports need export templates (not installed here yet), so the client runs from the editor and headless for now. ### Modeled