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
Owner

Cut ratatoskr-backdrop:cut_spec:cut-ridge-runtime-cards.r2, report ratatoskr-backdrop:cut_report:cut-ridge-runtime-cards.h1.

The runtime now draws the baker's G-buffer cards and lights them live, with parallax from a camera on a circle (rulings ridge-camera-on-circle, ridge-camera-offset-signed, ridge-cards-per-card-slide, ridge-cards-runtime-lit).

  • Deleted: the six-sun-key plane path (frameChoice.ts, crossfade, frameLuma.ts, FRAME_KEYS/PLANE_NAMES, the two-frame Backdrop, DRIFT_DEPTH, v1 manifest parsing, public/ridge/vienna-12e733dc9f09).
  • Baker: wall rows are coded R=G=255 in the geometry image; the manifest carries camera {r_m, heading_max_deg} and each card's non-wall distance_m and scale. Vienna rebaked as vienna-6815bb9dca99 (r +200 m, heading +-23 deg, scales 1.156 / 1.018 / 1.004).
  • Runtime: a v2 parser, a K-card loader, cardMotion (heading limited per screen so every card covers it), and lightCards.ts, one WebGL2 pass per sky that lights the cards (sun, ambient, haze from the atmosphere model, display tone mapping from toneMap.ts, edge/occlusion/crease ink).
  • Tests: scene 429 pass; baker 27 pass, mutants 38 of 39 killed (the survivor, wall albedo from the face normal, is a follow-up). Failures in albums ShareSet and phoneHitTestKit are on dev already (a case collision between ShareSet.tsx and shareSet.ts).
  • Looked at in a browser at 1024x768 and 375x812 (offline demo): cards lit, crease and outline ink on the ranges, no gaps. The near card (Vienna's plain, about 1.5 km) lights to one flat tone: the look is the art pass (ratatoskr:follow_up:ridge-art-quality-rework).

Served nothing changes until a release.

🤖 Generated with Claude Code

Cut `ratatoskr-backdrop:cut_spec:cut-ridge-runtime-cards.r2`, report `ratatoskr-backdrop:cut_report:cut-ridge-runtime-cards.h1`. The runtime now draws the baker's G-buffer cards and lights them live, with parallax from a camera on a circle (rulings `ridge-camera-on-circle`, `ridge-camera-offset-signed`, `ridge-cards-per-card-slide`, `ridge-cards-runtime-lit`). - Deleted: the six-sun-key plane path (`frameChoice.ts`, crossfade, `frameLuma.ts`, `FRAME_KEYS`/`PLANE_NAMES`, the two-frame Backdrop, `DRIFT_DEPTH`, v1 manifest parsing, `public/ridge/vienna-12e733dc9f09`). - Baker: wall rows are coded R=G=255 in the geometry image; the manifest carries `camera {r_m, heading_max_deg}` and each card's non-wall `distance_m` and `scale`. Vienna rebaked as `vienna-6815bb9dca99` (r +200 m, heading +-23 deg, scales 1.156 / 1.018 / 1.004). - Runtime: a v2 parser, a K-card loader, `cardMotion` (heading limited per screen so every card covers it), and `lightCards.ts`, one WebGL2 pass per sky that lights the cards (sun, ambient, haze from the atmosphere model, display tone mapping from `toneMap.ts`, edge/occlusion/crease ink). - Tests: scene 429 pass; baker 27 pass, mutants 38 of 39 killed (the survivor, wall albedo from the face normal, is a follow-up). Failures in albums `ShareSet` and `phoneHitTestKit` are on dev already (a case collision between `ShareSet.tsx` and `shareSet.ts`). - Looked at in a browser at 1024x768 and 375x812 (offline demo): cards lit, crease and outline ink on the ranges, no gaps. The near card (Vienna's plain, about 1.5 km) lights to one flat tone: the look is the art pass (`ratatoskr:follow_up:ridge-art-quality-rework`). Served nothing changes until a release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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>
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>
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>
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>
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>
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>
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>
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
2e3e9133c0
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>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Ratatoskr!171
No description provided.