Commit graph

110 commits

Author SHA1 Message Date
Meta Vens
21fb7bd37b BDS client: RenderCheck for the PS1 kit, a mutant per claim, README for the live machine
RenderCheck reads real frames at a pinned tick: 15-bit colour, one colour per block, the vertex snap against the CPU-projected hull on a coarse
grid, affine texel runs on a checker triangle at 60 degrees, the chamber's glow lighting the figure, the figure at the lanes' origins.
render-mutants.sh breaks the shipped look once per claim (post off, block off, snap off, perspective UVs, glow unset, carriers unposed) and
wants that claim's line to fail; every one does. Bounds from deterministic-bound-margin, readings in their comments.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:08:02 +01:00
Meta Vens
20c2ed73ae BDS client: the PS1 kit: one shader for every surface, a framebuffer pass at 240 lines
ps1.gdshader (a port of eureka-site prototype/ps1.js): vertex snap to the line grid, affine UVs, nearest texels, per-vertex light, glow
and fog, raw sRGB arithmetic. ps1_post.gdshader: one colour per block of the grid anchored at the screen centre, 15-bit colour, the 4x4 Bayer dither.
Look owns the numbers, the skin and tile textures and Ps1(); Main owns the grid (ps1_res) and the post layer under the HUD; Chamber writes
the glow globals in place of its OmniLight3D. The floor box is cut into metre cells so its affine texture stays small per cell.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:08:01 +01:00
Meta Vens
350e137066 BDS client: the SDF puppet, porcelain studio and their checks are deleted; every body draws as its own primitive
Deletes Puppet, PuppetField, PuppetModel, PuppetSkin, puppet.gdshader, studio.gdshaderinc, PuppetChecks, the 978-line
RenderCheck, Look's porcelain and studio, Smoke's puppet checks, the GameCult.Geometry reference (and with it BDS's own
CultLib pin props and revision check, which only guarded that reference; Ymir keeps its own), and msaa_3d. BodyRenderer
draws every body (static and dynamic) as its Ymir primitive under a carrier per stable id; the carrier logic is Puppet.Sync's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 02:08:01 +01:00
Meta Vens
b6c77737a9 Body tests: idle drift and settle comments re-measured at the palm (rules and bars unchanged)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:30:06 +01:00
Meta Vens
46d70811e1 BodyPainBox: the hold point is the palm's (-0.210, 1.116, 0.441) and the box half 0.125, as in Lodur's ConnectedPainBox
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:29:54 +01:00
Meta Vens
cf0ef3a602 RenderCheck: the shipped ring error's lower reading is 16.7, in the bound's comment
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:55:56 +01:00
Meta Vens
6ad5b97bc8 RenderCheck: bent-pose passes, a ring error for MSAA, a halo crawl metric under a slow orbit
The bounds are re-derived across the session pose and the puppet bent 30 and 60 degrees (the ring's std overlapped between the shipped shader and no MSAA
once the pose moved, so the ring reads |shown - reference| in levels: shipped at most 18.9, no MSAA at least 25.4). The orbit reads the error against the
8x reference, differenced twice in time over the halo of the highlights: shipped 5.6, kernel 0 10.5.
lodur:finding:cut-bds-puppet-specaa.s2.bounds-fit-to-the-session-pose, .orbit-crawl-metric-not-committed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:40:39 +01:00
Meta Vens
357610d37f RenderCheck: the flicker bounds are fitted to seven framings, with a silhouette bound for MSAA
The shipped framing reads 1.34, another 1.19, so one framing fitted a bound that failed the shipped shader elsewhere. Five play and two close framings,
bounds between the shipped glaze and kernel 0 / paper sigma / doubled sigma / no MSAA / widened smoothstep in all of them, and the silhouette ring's mean std
against the reference so that removing MSAA fails by design. lodur:finding:cut-bds-puppet-specaa.s1.flicker-bound-fit-to-view, .highlight-shift-bound-fit-to-view, .msaa-defended-incidentally, .sweep-and-orbit-probes-not-committed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:39:44 +01:00
Meta Vens
721507f01a Puppet: the bisque's roughness is no longer widened; the studio's header says what the prefilter keeps
Widening the bisque's roughness by the kernel changed no pixel at any of eight framings (the bisque's specular is dim), so it is deleted
rather than carried undefended. The studio comment now says what the trapezoid does: a linear ramp at a2 = 0, its integral kept to about
6% up to a2 = 0.05 and a third of it at the 0.18 clamp. lodur:finding:cut-bds-puppet-specaa.s1.bisque-roughness-prefilter-undefended, .trapezoid-edge-and-energy-claim

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:39:44 +01:00
Meta Vens
ee052832dc README: the render check's run time
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:39:44 +01:00
Meta Vens
c4fb8d79cf RenderCheck: highlight flicker against a supersampled reference; the 3D draws with MSAA 4x
project.godot rendering/anti_aliasing/quality/msaa_3d=2. The oracle frames draw with MSAA off (they check the shader's own pixels); the
flicker check restores the project's setting, draws the glaze from 16 sub-pixel camera shifts in the play and close views and bounds the p99
per-pixel luma std at 1.3 times a 8x supersampled reference's and the highlight mean within 1 level of it. lodur:cut_spec:cut-bds-puppet-specaa.r1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:39:44 +01:00
Meta Vens
5a75043d63 Puppet: the glaze and the bisque's roughness are prefiltered by the pixel's normal spread (geometric specular antialiasing)
The shading normal's screen derivatives give a kernel (Tokuyoshi and Kaplanyan 2021, pixel variance 1/24, clamped at 0.18) that widens the
bisque's roughness and the studio the glaze reads: each studio box is averaged over the lobe as a trapezoid that keeps its integral, and is
the authored ramp at kernel 0. The unfiltered studio_box is replaced, not kept beside it. lodur:cut_spec:cut-bds-puppet-specaa.r1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:39:44 +01:00
Meta Vens
28a69549db CameraChecks: pitch about the camera's own right, no basis drift, press-time pivot and yaw reversal, a second press ignored
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:32:22 +01:00
Meta Vens
b7305edd04 OrbitCamera: a second press during a drag is ignored, as Blender's modal operator ignores it
A drag whose own button is no longer held (a lost release) still ends, so the next press starts a new one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:32:22 +01:00
Meta Vens
21ed762d35 Smoke: the camera keeps a transform written between frames; CameraChecks: the pole is crossed in small steps
Pins that the camera writes on input only (a per-frame placement mutant survived without it) and that no clamp stops the orbit near the pole (a clamp mutant survived a single large motion).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:32:09 +01:00
Meta Vens
9c9fa8db15 CameraChecks: the yaw reverses with the view upside down, and a wheel notch scales by its factor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:12:18 +01:00
Meta Vens
35d789553e CameraChecks: Blender navigation pinned through the viewport on the real Main
Orbit about the puppet (0.4 degrees a pixel, over the top), Alt+LMB as MMB, emulation off, plain LMB and RMB free, pan, zoom and its clamp, the gesture fixed at the press and ended by a lost release; the startup view equals the old placement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:07:39 +01:00
Meta Vens
e789efacac OrbitCamera navigates as Blender's viewport does: MMB orbit about the puppet, Shift pan, Ctrl and wheel zoom, Alt+LMB as MMB
The right-drag orbit, the yaw and pitch fields and the LookAt placement are gone; the camera's transform is the state, written once per gesture
by one Commit. Startup view unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:03:21 +01:00
Meta Vens
1d60ed6087 Puppet.Centre: the world centre of the drawn bounds, forwarded by BodyRenderer.PuppetCentre
The point the orbit camera turns about. Null before the first draw.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:02:24 +01:00
Meta Vens
2bfb26b75b RenderCheck: the behind-view clip bound sits 3.6 points over the measured 20.4%
A key soft box of 1.5 clips 25.5% from behind and now fails there too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:53:38 +01:00
Meta Vens
36d5d0b18b RenderCheck: the glaze and the lights are one studio, the pooling shows, a white-out from behind fails
The pixels the glaze lights most must reflect, by the drawn normal and the pixel's ray, a direction inside Look's key box or a rim strip; the crease pooling off must change at least 3% of the bisque's pixels; the glaze clips at most 30% from behind (20.4% measured).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:42:13 +01:00
Meta Vens
de5928f9af Puppet: each summary on its own member
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:32:53 +01:00
Meta Vens
116cfa28eb Look: one studio path, the camera's (lodur:ruling:porcelain-studio-follows-camera)
The ruling is camera, so StudioFollowsCamera, the shader's studio_in_view and its world-space branch are deleted: the lights are the camera's children and the glaze reads view-space directions, nothing else.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:32:51 +01:00
Meta Vens
791096939a Smoke: the key keeps coming from the studio's direction in the camera's space as the camera turns
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:39:18 +01:00
Meta Vens
acc79fb13f RenderCheck: leave the glaze on after its check, so the normal views see the shipped shader
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:31:35 +01:00
Meta Vens
23fa1ca1b8 README: the porcelain, its studio and the glaze check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:13:31 +01:00
Meta Vens
4cabc7f920 RenderCheck, Smoke: the bounds on the bisque, a check on the glaze, the studio rig
The clip, spread and glow-lift bounds measure the bisque (glaze off). The glaze check turns it on at the close view from the front and from behind on main's own camera, whose rig turns with it: the bisque stays lit from both sides, the glaze changes at least 3% of the puppet's pixels, and from the front clips at most 12%. The frame capture is one helper. Smoke asserts the camera carries a shadowing key and two rims and the environment is linear with no sky or glow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:13:10 +01:00
Meta Vens
3286418df3 Look: the studio replaces the one hard light
Look.Environment and Look.Sun are deleted; Look.Studio gives the scene a linear colour environment and a shadowing key and two rims carried by the camera, and Look.Glaze feeds the puppet shader the bisque and the same studio the lights come from, so the lights and the glaze's reflections cannot drift. Main builds the studio on its orbit camera. Puppet.Glazed switches the glaze for RenderCheck. StudioFollowsCamera is the open question lodur❓bds-porcelain-studio-follows-camera's one constant (recommended: camera).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:13:08 +01:00
Meta Vens
0425ffa108 Puppet shader: a bisque and an analytic glaze that reflects Look's studio
The studio function (studio.gdshaderinc) and the puppet's bisque and glaze uniforms, defaulting to the matte it replaces: ROUGHNESS 1 and SPECULAR 0 are no longer hard-coded, the albedo pools in creases, and the glaze is emission (Fresnel times the studio in the reflected direction), skipped under show_normals, which also forces the bisque unlit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:07:09 +01:00
Meta Vens
cc9dcaf582 README: who owns what, for the puppet pipeline and the scenarios; status, Withdraw's one-way rule and Calm's row kind no longer stale
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:24:53 +01:00
Meta Vens
bd01101e97 RenderCheck pins the corner blend, the crease clamp, the screen width and the bend-90 continuity: the pixels the corner blend reaches and the band of edges turning 1 to 1.2 rad are held on their own (a vertex normal left in model space, corner reach 1.0 and a crease clamp of 1.0 fail), five views (close, far, bend 90, and mid and far at 1920x1080, where a width fixed at 720 lines fails), continuity at bend 90 with its own bar; README says what the culling box gap really is
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
79ddc1c82c PuppetModel draws any number of bodies: MaxBones is gone, with the rule that dropped a puppet past 32 bodies; the skin takes whatever count the shape has, and PuppetChecks builds and skins a crowd of 40
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
8186d4b859 PuppetChecks: a skinned fold keeps no crease (held to two small shapes, since no pose of the puppet but one 180-degree swing reaches one); RenderCheck draws the creation pose before the bend, so a surface that kept its first pose's creases fails there too; the across-boundary share is held at 0.5%
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
46b9e978f4 RenderCheck: the drawn normal against an independent reference of the whole bevel, close and from 3.7 m, and continuity across triangle boundaries
The reference skins the shape's vertices from the carriers, welds the corners by position, matches edges, derives facets, creases,
area-weighted vertex normals, altitudes, the screen width (finite differences of the edge distance to the pixel's +x and +y neighbours on the
triangle's plane) and the corner blend itself; it reads neither PuppetSkin nor shape.Across. Fails on p90 over 2 deg (measured 0.96 close, 0.76
far), band median over 0.6 deg (0.24), median over 1.5 deg on triangles whose width the smallest altitude caps (0.58), and, across triangle
boundaries at the close camera, over 0.6% of adjacent pairs past 30 deg (0.25%) or a p90 over 6 deg (3.42), with vacuity floors for each. The far
view exists because at the close camera the width is the 3 mm floor and the screen-relative width is never in play.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
461a4e8a51 PuppetSkin owns the drawn surface: CPU skinning, creases, altitudes and vertex normals derived every frame; the shader draws a screen-relative bevel with blended corners
GPU skinning (bones[] and the CUSTOM1 skin) and the bind-time crease are deleted: 51% of the creased edges touch a blended vertex, so a bind
crease went stale at every joint. Puppet._Process skins through PuppetSkin and writes the vertex and attribute streams in place (12 and 52 bytes
per corner, lengths asserted at build); the mesh bounds are the skinned bounds, so PuppetShape.Reach is gone. puppet.gdshader takes the facet
normal, creases, altitudes and vertex normal as attributes, sizes the bevel from Look.BevelScreen and BevelMin (question
lodur❓bds-puppet-bevel-look-width, recommended option) and blends corners to the vertex normal. PuppetChecks measures the skin at bends
of 0, 45 and 90 degrees against geometry computed from the bones alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
a49ffa0f27 PuppetShape welded: each vertex once with its bones, triangles as Corners, the edge match as Across; per-corner Positions, Normals and Crease are gone
PuppetField.Creases() and the bind-time crease are deleted before PuppetSkin derives creases per frame, so between this commit and the next
the shader's creases are zero and the bevel does nothing; RenderCheck's NormalCheck, which read shape.Crease, is deleted with them and
returns in the last commit against an independent reference. PuppetChecks gains Across == the weld-by-position edge match; Pieces,
Stretch and Resolved read the welded arrays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
1305c8cc64 PuppetField.Mesh: the untangle pulls the vertices of folds, inverted and tiny triangles back toward their net position; winding comes from the nets, with no per-triangle flip
The per-triangle flip by the centroid gradient turned the 4 net triangles that face against the field into folds. The nets wind every
quad outward, so each triangle is emitted reversed for Godot's clockwise front, and a triangle against the field is a defect the
untangle removes (halving the Newton displacement of its vertices, at most 12 rounds). On the shipped cell: 12 vertices pulled back,
worst 10.45 mm off the isosurface, 0 folds, 0 inward triangles, smallest 5.04 mm2. PuppetChecks pins those, and the fold ceiling
(folds < shared / 100) is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
bbde113198 puppet.gdshader: the header comment names the SDF, not the field, so the no-SDF-in-shader negative check reads clean
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
25cae809e1 RenderCheck: the drawn shading normal against a CPU reference of the bevel
Renders the torso close up with ShowNormals, reads the view-space normal raw, and compares
it per pixel with the shader's formula evaluated on a depth raster of the skinned triangles
(creases from PuppetShape, distances from bind altitudes and barycentrics). p90 error over
interior pixels and the median over the bevel band are bounded, with floors on the pixels
reached and on the band's reference tilt so a bevel that is off cannot pass. Closes the
gap that an unskinned NORMAL passed the silhouette check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
097fa569b0 Puppet soft bevel: the facet normal tilts to each edge's bisector within Look.BevelWidth
The shader gets the edge-distance basis (CUSTOM0, from Positions) and the triangle's three
creases (CUSTOM2, PuppetShape.Crease); the in-plane direction to each edge comes from screen
derivatives, so no SDF is evaluated and no uniform beyond bones[] is added. At an edge the
tilt is the bisector from both sides: the normal is continuous across it. Look.BevelWidth is
4 mm (open question bds-puppet-bevel-width, recommended option); show_normals/ShowNormals
draws the shading normal for RenderCheck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
56a5a53c35 PuppetShape.Crease: per-edge half turn between facet normals, from the mesh's adjacency
PuppetField.Mesh keeps net-vertex indices per emitted triangle, matches each edge by its
two indices and gives each side half the turn to the neighbour's normal (atan2 of the
bisector in the facet's frame), positive where convex. Edges not shared by exactly two
triangles, and folds where the two sides disagree on which way the edge turns, get 0.
PuppetChecks measures it independently by welding corners by position: symmetric on both
sides, half the facet angle, signed by convexity, zero on loose edges and folds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 09:16:31 +01:00
Meta Vens
746bccdc27 README: load reaches 0 one tick after the fade's end; arousal is exactly 0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
378b69dbc5 Tests: the calm's fade pinned at 3 s and its load tail, the stressors floor at 19 of 20, and terminality on the shipped calm over a full run
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
35fe28c2f3 Docs: the stress bar is arousal; calm fades it over 3 s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
814e2435cd Office: the stress bar shows arousal; calm fades his arousal and senses to nothing over 3 s
Rulings lodur:ruling:stress-bar-shows-arousal-calm-silences and flinch-tail-after-stimulus: the stress column is the arousal column (was 1 - resolve), labelled "stress (arousal)"; the calm goal declares EntryArousal 0, SensoryGain 0 over StressParameters.CalmFadeSeconds (3 s) while the stressors keep sounding. Rung-3 rows re-derived with the old column; the run's own hash re-captured. The terminal-calm test now presses on the goal with a fade longer than the run, since a default calm leaves no load to break the will a third time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
619d4a8665 Tests: the one-way chamber ticks a second past the mend, so both the Brain gate and Disabled are pinned
Reverting the withdraw gate to WillBroken switched back only DeliberateLatency (10 ticks)
after the mend, so a test that stopped at the first mended tick missed it; both mutants
(gate and Disabled to WillBroken) now fail. BodyPainBox's comment states the real reason
its first break is the only one: the withdraw pose is terminal and nothing moves the hand
back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
316e58ddbb Tests: the body withdrawal over seeds 1..20; why the flinch control runs on a will that costs no strength
Base and head give byte-identical body pain box runs on this Lodur (hand out 0-50 ms after
the break), so the spec's changed-bytes sentence does not hold; the pin is the 300 ms bound.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
f4e25a15bd Tests: pin the rage's involuntary onset directly and the CLI rage/calm/clipped line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
ae02a4755d BodyPainBox: drop the first-break guard, which no run can reach
BodyPainBoxSession ends within 1 s of the withdrawal and a mend takes about 60 s, so no
second break occurs in its flow and no test can reach one. The guard was dead defence
(finding body-pain-box-first-break-guard-unpinned, the drop option); PainBoxSession, which
can be ticked past a mend, holds the real guard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00
Meta Vens
4a9861e7d0 PainBoxSession: the break is the first one; a break after a mend is a row
The result reported a break 63 s after its own run's end when the session was ticked
through a mend and a second break (probe: break 77740 ms, end 14830 ms).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 08:07:55 +01:00