Commit graph Ratatoskr/scripts/ridge-bake/export.py
Author SHA1 Message Date
Meta Vens
8ed2088a21 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
14ad4d14f9 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
1df9222e28 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
9bcd7f0db7 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
568f6c19d3 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
b30ddac052 Ridge baker: near plane opaque to the horizon, occlusion-matched far planes, near-cover check; rebake Vienna (#165)
Some checks failed
Rat dev preview / Build dev preview (push) Has been cancelled
2026-11-14 12:52:20 +00:00
5b7b4c2eeb Ridge backdrop A+D: baked ridge planes over the live sky (Vienna) (#163)
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m6s
2026-11-14 11:07:58 +00:00