Ridge runtime: lit G-buffer cards, camera on a circle (plane path deleted) #171

Merged
eureka merged 8 commits from void/ridge-runtime-cards into dev 2026-11-20 13:09:31 +00:00

2026-11-20

Meta Vens
Ridge baker tests: check wall distance and albedo in every wall column
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m36s
The face-up albedo mutant still survives (no fixture has a wall under a face steep enough to move the
albedo: not yet reached); the card-0 wall mutant is killed by the near-hill fixture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:59:43 +01:00
Meta Vens
Ridge baker tests: kill the card-0 wall and face-up wall albedo mutants
A near hill makes every row of card 0 lie below its first sample (so a flagged card 0 would show);
a ramp under card 1's first sample makes its face steep (so albedo from the face normal would show).
The geometry channel-swap mutant follows the encoder's new spelling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:49:10 +01:00
Meta Vens
Ridge runtime: the card rig and still, scene wiring, v2 asset gate and docs
startRig puts one element per lit card, farthest first, at its rows with transform-origin on the
horizon centre, animated by +-scale_i x heading with scale(scale_i); the still draws the same cards at
heading 0. index.ts lights in prepare, so a sky-change rebuild lights again and any failure (no WebGL2
included) is planesFail and the sky alone. ridgeAssets.test gates the committed v2 bake.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:48:53 +01:00
Meta Vens
Ridge runtime: light the baked cards once per sky in WebGL2, and the K-card loader
lightCards.ts: one program on its own canvas, per card sun and ambient in the column frame,
aerial perspective from the geometry distance and the atmosphere's extinction, contour ink,
the sky's own display; wall code is the face up. Context released after the last card.
Backdrop.ts fetches and decodes every card straight and lights once; any failure is null.
toneMap exports its ACES constants and earthAtmosphere its ground extinction, so the shader copies no number.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:48:50 +01:00
Meta Vens
Ridge runtime: cardMotion, the one owner of pan reach, heading range and card scale
Heading each side is the baker's range capped so every card still covers the viewport;
card i pans scale_i x heading about the horizon centre. Tests on phone, tablet, desktop
and ultrawide viewports and for the cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:48:46 +01:00
Meta Vens
Ridge bake: rebake Vienna with wall rows, camera and per-card scale (vienna-6815bb9dca99)
Three cards (splits 6, 40 km), camera r +200 m, heading range 23 deg, per-card scale
1.156 / 1.018 / 1.004. The six-key sun-frame bake vienna-12e733dc9f09 is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:37:51 +01:00
Meta Vens
Ridge baker: wall rows, the camera on a circle, per-card distance and scale
Cards i > 0 flag the extruded face under their first sample as wall (R = G = 255 in the
geometry file, albedo with the face up); the manifest gains camera {r_m, heading_max_deg} and
per-card distance_m (non-wall median) and scale = d / (d - r). The baker refuses |r| >= half the
nearest distance and any camera that uncovers the frame. Tests and mutants for each rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:37:24 +01:00
Meta Vens
Ridge runtime: delete the v1 sun-key planes (frames, crossfade, two-frame Backdrop) and parse manifest v2
frameChoice, frameLuma, the two-frame Backdrop, the v1 ridgeAssets gate, DRIFT_DEPTH,
the plane rig and paintPlanes are gone; parseManifest reads schema 2 (K cards, encoding,
camera.heading_max_deg, pxPerDegV). Until the lit-card rig lands the scene is the sky alone.
The plane/index tests of the deleted behaviour are removed here and return rewritten.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:19:04 +01:00