Commit graph Ratatoskr/scripts/ridge-bake
Author SHA1 Message Date
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
0e2bc509d3 ridge-bake: README (run line, tiles per preset, licence)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 01:03:58 +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
e58c167d90 ridge-bake: ignore bytecode, untrack the pyc that slipped into the move
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 23:20:27 +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