Commit graph Ratatoskr/scripts/ridge-bake/tests
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
a9eb9acbf9 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
a320f17431 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
37b40c89b0 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
4c9064d50e 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
f0f7263e9e 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
f2c10ff798 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
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