Ridge baker: G-buffer cards from seams through the ray march (chain painter deleted) #170

Merged
void merged 11 commits from void/ridge-gbuffer-baker into dev 2026-11-20 03:36:49 +00:00

2026-11-20

Meta Vens
ridge-bake tests: the Vienna fixture no longer cuts for a slide
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:31:17 +01:00
Meta Vens
ridge-bake tests: delete the slide-reveal tests and mutants
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:30:30 +01:00
Meta Vens
ridge-bake: delete the reveal mask, max_slide_px and SLIDE_PCT (verdict s2)
The slide contract (viewport-aspect drift, simultaneous slides) lives in the runtime cut; a baker
bound of 5% of the card width was unsound and did not lower the decode total. cards() is again one
rectangle of rows with coverage; the schema is regenerated and committed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:30:29 +01:00
Meta Vens
ridge-bake tests: four slide scenes so each part of the cut is needed
Side-by-side nearer ridges, overlap at the edge of their union and a ridge across the window each
need a different term of the cut (single-card slide, slide width, frame edge). The frame-edge mutant
now treats what lies beyond the frame as held (the old one was equivalent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:06:31 +01:00
Meta Vens
ridge-bake tests: slide shifts move columns, the swept-rows term is pinned under a stronger pull
The slide check shifted the albedo along rows, so erosion 0, single-card and frame-edge mutants
survived; it now shifts the last axis. A second test sets the seam prior to 0.1 on the 4 to 15 km
ridge, where only the swept-rows term prevents the hop (at 0.02 the mutant without it cannot tear).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:51:13 +01:00
Meta Vens
ridge-bake: commit the regenerated schema (max_slide_px)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:43:24 +01:00
Meta Vens
ridge-bake tests: written-card round trip, six receding ridges, slide bound, rules that survived
Decode the written WebPs against the cards (channels, range, straight alpha); the six receding-ridge
fixtures with the 0.35 alpha-jump metric; no slide within the bound reveals a cut pixel; empty card;
SEAM_SEP, elev curvature, coverage rows, interpolation and renormalisation. mutate.py grows to 33
mutants. README describes the reveal bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:40:00 +01:00
Meta Vens
ridge-bake: reveal-bounded cards, manifest max_slide_px, prior 0.02, empty-card refusal
cards() cuts from each card the pixels the nearer cards hide at every offset within MAX_SLIDE_PX
(ceil(5% of the card width), the runtime's DRIFT_FRAC), also when one card slides alone; the composite
at rest is unchanged. Manifest v2 carries max_slide_px. pack() refuses an empty card naming its splits.
coverage() no longer counts the rows below the first sample twice. SEAM_PRIOR 0.02.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:40:00 +01:00
Meta Vens
ridge-bake: seam prior 0.1, card mutants, README for cards
The prior is the value where the side-by-side test passes with the swept-rows term and fails without it
(0.05 and below let a seam without the term follow the ridge, 0.15 and above hop across it with the term).
mutate.py holds 16 mutants of the card rules, the cache keys and the export checks, every one killed.
README rewritten for cards, manifest v2, the seam rule and the low-pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:09:24 +01:00
Meta Vens
ridge-bake: K+1 layered-depth G-buffer cards split by K authored seams; manifest v2
ridge.py: elev (shared by march and prefilter), prefilter, normals, set_view from the march skyline,
coverage, seams (one forward-energy DP per authored split), cards (first visible hit at or beyond the
near seam, crest coverage, cross-fade over seam +- XF, nested alphas so the composite equals the opaque
coverage, cropped to the row band). load_preset requires card_split_km (strictly increasing, at most
MAX_CARDS - 1). export.py: manifest v2, two WebPs per card, check_cover, check_budget on count, total
bytes and decoded bytes, sheet. places.json: Vienna card_split_km [6, 40], prefilter_m 100.
The seam prior is 0.05 rows/nat^2 (tie-break only): at 2.0 the seam hopped across a receding ridge
between two columns, which the spec's own side-by-side test forbids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:01:41 +01:00
Meta Vens
ridge-bake: delete the chain stage-flat painter, the sun keys and their tests
Cut 1 of ridge-gbuffer-baker (rulings ridge-bake-gbuffer-depth-bands, ridge-cards-runtime-lit,
ridge-cast-shadows-dropped-for-now). Deletes first: extract, chains, sweep, slots, tapers, the painter,
the relight family, shadows, sun.py, sun_set, luma_range, check_near_cover, the painter inputs in
places.json, and every test and mutant that exercised them. export.py is left unrunnable until the
card writer replaces write_bake; the ray caches stay valid (march, rays_key, stage0 unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:47:21 +01:00