Commit graph Ratatoskr/scripts/ridge-bake/tests
Author SHA1 Message Date
Nibu
97be0f8086 ridge-bake: kill the last export mutants (pair at the end, 4096 boundary, sky/near rows, luma order and threshold); name the equivalent one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 07:30:28 +00:00
Nibu
3e77ad5853 ridge-bake: luma is the far-mid-near composite over grey at coverage >= 0.5; write_bake measures the written planes; planes/export tests and mutate_export.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 05:52:24 +00:00
Nibu
5ce2c02345 ridge-bake: tighten the stacked-planes bound to 6/255 (4.9 measured), mutate.py prints each verdict as it lands
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 03:21:05 +00:00
Nibu
52c1fb674c ridge-bake: planes export (relight_planes, export.py, manifest schema)
relight_planes splits the opaque relight into three straight-alpha planes
by the affine-haze trick; the premultiplied colour is made exact over the
reference haze per channel (a scalar alpha alone drifts 34/255 on the far
plane, because the haze share differs per channel).  export.py bakes a
place, writes WebP planes, manifest.json and index.json under a budget.

Tests: the straight-alpha test compared a hazy body with a few solid ink
pixels (fixture, not code); the rebake fixture replaced a plane with one
that had no solid pixel; an everywhere-opaque plane decodes as RGB, now
read back as RGBA.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 01:03:57 +00:00
Nibu
bffe988f05 ridge-bake: move the A+D baker, tests and mutation runner into scripts/
Moved from the mockup workspace: ridge.py, sun.py, places.json, tests. core.py is
dropped (ridge.py only imported its save_png, unused; the rest carried hard-coded
paths). places.json is read beside ridge.py; tiles and caches come from RIDGE_TILES
and RIDGE_WORK.

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