Ridge backdrop A+D: baked ridge planes over the live sky (Vienna) #163

Merged
void merged 28 commits from nibu/ridge-ad-backdrop into dev 2026-11-14 11:07:59 +00:00

2026-11-14

Nibu
scene test: bake the sky once per state and place (dev's memo keyed on state alone; ridgeSkyFor now takes the manifest View)
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m56s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:04:49 +00:00
Nibu
ridge: revalidate index.json, the one mutable pointer; pin pxPerDegH to px_per_deg_h
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:03:17 +00:00
Nibu
scene: a rebuild keeps the old scene until the next one's planes load; the planes signal belongs to the live scene
prepare() does every await and returns a synchronous make(); rebuild swaps after the load and a stale or disposed build is never made, so it never speaks. onPlanesFail/onPlanesOk are announced for the scene that won, on change only; a success is silent. Tests cover held decodes, post-dispose and superseded failures, the manifest-view sun, and the fallback sky after a failure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:03:17 +00:00
Nibu
ridge: a blend is a true crossfade, one rule for the rig and the still
The baked planes are haze as alpha, so b laid over a at opacity w doubled the haze mid-blend and popped when the choice collapsed to b alone. crossfade() is the one rule: a at 1 - w plus b at w, summed in an isolated group (plus-lighter in the rig, lighter in an offscreen for the still). Tests pin composite = lerp on alpha planes, BLEND_EDGE, and the noon azimuth split.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:03:17 +00:00
Nibu
ridge: first baked asset set, Vienna b464e375319f (6 frames x 3 planes, 1.59 MB)
Produced by scripts/ridge-bake/export.py vienna from the Copernicus GLO-30 tiles.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 08:23:47 +00:00
Nibu
ridge: load baked planes by manifest and compose them over the live sky; failure is the sky-only scene
createRidgeScene takes a decoded Backdrop and adds one rig (far, mid, near) with transform-only drift; index.ts create() loads manifest, frame choice and planes with the scene chunk; BackgroundSceneConfig.place; vite copies public/ridge. Tests also cover resize debounce, listener removal and the window-size fallback.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 08:06:56 +00:00
Nibu
ridge: manifest v1 parser and loader, frame choice by the sun, decoded Backdrop
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 08:04:34 +00:00
Nibu
terrainStars: nightColours no longer returns the deleted ground colour
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 08:02:26 +00:00
Nibu
ridge: one View owns the sky camera and the sun's place; windowFor registers sky and plane
VFOV_DEG, HORIZON_AT, viewFor and VIENNA are gone; vienna.ts is sunAt.ts over a Place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 07:56:22 +00:00
Nibu
2026-11-14 07:56:22 +00:00
Nibu
ridge: delete the noise ridges and the Vienna horizon bake; the scene is sky, stars and rain
Cuts ridgeWorld, ridgeBake, horizon.ts, viennaHorizon.json, bake-horizon.py and the layer/rig/drift half of Ridge.ts, the
HORIZON_CREDIT line, onBake, and the dead SkyColours fields (ground, sunAzimuth, band). Rollback is the tag
parked/ratatoskr-noise-ridge (ruling ridge-ad-rollback-tag).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 07:34:44 +00:00
Nibu
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
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

2026-11-13

Nibu
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
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
Nibu
Ridge backdrop: target (A+D baked planes replace the noise ridge)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 18:02:14 +00:00
Void
Merge dev 8ba407cd into main
No content change: tree equals dev's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 15:48:20 +00:00