Commit graph

2,210 commits

Author SHA1 Message Date
Meta Vens
5fb77e2bcd ridge runtime: view test pins the sign of the camera's sideways shift
A mutant that flipped the offset's sin(phi) term survived: the phi 90 test read
the shift by magnitude only. It now requires the shift to the left for a camera
clockwise of the heading and to the right for the other side.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:11:13 +01:00
Meta Vens
44ad930253 ridge runtime: look sheet draws through the app's still path and takes views; README and target describe the ring and heading
harness/scene/ridgeSheet.html lights a baked place by tile and draws each cell with
createRidgeScene at tier still; ?views=heading:phi:offset renders a heading across
north and the offset-only rotation mode. The scene README and the ridge target
doc replace the drift with the ring, the heading owner and the camera pose.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:06:18 +01:00
Meta Vens
94cfae1945 ridge assets: Vienna as a ring bake (schema 3, r_max 98.2 m); the gate reads tiles
public/ridge replaces the 72 degree window bake with the ring bake from the baker
cut (32 tiles per card, 192 tile files, 1.6 MB, bake id 64118fed28c7). The assets
gate is recomputed for schema 3: per-tile and per-place byte caps, the resident
run from the manifest alone (export.py run_tiles), each tile file's WebP size
tile_w + 2 apron by its band, the bake id re-derived tile-major, no stray files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:43:44 +01:00
Meta Vens
19d49cbd46 ridge runtime: one box per card posed from the heading owner; tiles mounted by arc
The rig is a box per card holding that card's resident tiles, carried by one
animation of cardPose sampled each second over 30 s from heading.ts and the
viewer's offset, reissued at 80% and on any change; a 500 ms timer asks the
backdrop for the arc ahead and mounts what it has made. The reach animation,
DRIFT_LEG_S and the drift's easing are gone. prepare() anchors the heading and
awaits the first arc; a stale or failed build disposes its backdrop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:39:20 +01:00
Meta Vens
0f7a297339 ridge runtime: a lighter per sky, tiles lit by ring column; a backdrop holds tiles by arc
lightCards becomes createLighter: the sun columns and the sky table span the ring
in absolute azimuth, the ground noise is a function of the ground point and so
periodic over the wrap, and a tile is lit from its own files with one overlap
column kept each side. loadBackdrop (every card, at build) becomes createBackdrop:
ensure(arc) fetches, decodes and lights one tile at a time and evicts beyond the
arc and two tiles; a failed tile is retried, never thrown into the scene.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:31:55 +01:00
Meta Vens
e82b6cf01f ridge runtime: ring, heading, cameraState; view without a window; manifest schema 3
cardMotion, DRIFT_FRAC, driftPx, headingMaxDeg and the per-card scale are deleted.
ring.ts owns wrap-around and a card's distance at an azimuth, heading.ts the
view direction and the camera's angle on its circle, cameraState.ts the viewer's
mode, speed and offset; view.ts derives a card's pose and clamps the offset.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:27:48 +01:00
1ef6abab13 Merge pull request 'Ridge baker: the ring is the bake (32 tiles per card, schema 3)' (#177) from void/ridge-ring-bake into dev
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m49s
2026-11-22 22:04:34 +00:00
Meta Vens
069df981f9 ridge-bake tests: r_max at R = d, the 0.1 seam-prior pin back where it holds, tighter albedo bounds
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m34s
The 0.1 pin is back on the 3-12, 4-15/10 and 6-14 km fixtures; 0.04 stays on 4-15/6, 5-30 and 8-40 (closing the seam on the ring tears them above it). Albedo: mean 0.021, p99 0.081 (measured maxima 0.0202, 0.0806).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:48:46 +01:00
Meta Vens
30e4ee549a ridge-bake: r_max_m fits each card tile's linear map at its own distance (R = d)
The per-column median distances inside a tile are no longer part of the fit: the card sits at the tile's distance_m, as ruling ridge-offset-range-fit has it. Vienna's r_max_m is 98.2 m (was 56.1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:48:46 +01:00
Meta Vens
920e37e385 ridge-bake tests: pin the tile cut, the ring anchors and the apron against mutants; mutate.py takes name filters
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:10:31 +01:00
Meta Vens
dbef945493 ridge-bake: README and places.json for the ring, tiles and r_max_m
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:25:12 +01:00
Meta Vens
65db62c986 ridge-bake: the ring is the bake, 32 azimuth tiles per card (schema 3)
The 72 degree window and the baked camera are deleted. The march's 6400 columns are the bake: seams run periodic round the ring (DP over three laps, middle kept), ridge.cards runs per tile on 204 columns with the matching normals, and the vertical anchors read the skyline of the whole ring. Each card tile carries its own distance_m; camera.r_max_m is the largest offset the per-card linear slide fits within 24 card px (and the resident gate allows). Tile, place and resident budgets replace the window's. Manifest schema 3, baker version 4. Tests and mutants rewritten for the ring.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 21:25:09 +01:00
d851a5fca9 Merge pull request 'Sky menu: Auto, six named moments and a free moment, in the place's local time' (#176) from void/sky-menu-moments into dev
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m55s
2026-11-20 23:12:54 +00:00
Meta Vens
cd81f85d05 Sky menu fixes: one owner of the drawn place, Night is tonight's, named moments roll
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m32s
- skyPlace.ts is the only writer of the sky's place: the manifest's when the cards load, FALLBACK_VIEW's
  when the manifest or cards fail; the scene draws the view it told the store, so sky, weather, ink and
  Auto agree on every drawn state (Auto ticks on the fallback).
- useSkyPlace removed: only a scene start fetches the manifest.
- Old-key migration writes the new key first; a refused write keeps the pick for the page load.
- A named moment re-resolves when the place-local day rolls over (the one timer); Night is the nearest
  solar midnight (before the day's noon the one just passed or coming), keyed by the instant drawn.
- Baker validate/schema check place.tz as load_preset does; Vienna manifest baker_version 3 (it carries tz).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 00:07:01 +01:00
Meta Vens
3269250d19 Scene README: the sky choice, the moment authority and place.tz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:42:49 +01:00
Meta Vens
e948f99f9e Sky menu: Auto, six named moments and a free moment picker
Seven radio items plus Pick a moment, which opens a date input and a 5-minute time slider that show the
place-local time and zone and commit on the native change event (slider release), never per input tick.
The picker opens from the moment being drawn, in the place zone (seedFree).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:42:48 +01:00
Meta Vens
4597539976 Tests and look sheet follow the moment authority
Tests move to SkyChoice and the sun-taking makePhysicalSky; the harness sheet takes the six named moments
on both solstices (?named=1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:36:08 +01:00
Meta Vens
ca77bacb4a Sky choice store: Auto, named or free moment resolved at the loaded place
skyState.ts holds the choice, the place and the lines and resolves the band through momentFor and skyBand;
resolveSkyState, LAT and the page-zone clock approximation are deleted. skyPlace.ts shares the manifest with
the scene; hooks, theme and ink take an undefined sky until a place is known. Old 'ratatoskr.skyState' is read
once and removed; the choice persists as 'ratatoskr.skyChoice'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:36:06 +01:00
Meta Vens
8e44479792 Place carries its time zone: baker writes place.tz, manifest parses it
places.json tz per preset, load_preset refuses a missing or unknown zone, schema regenerated,
BAKER_VERSION 3; runtime rejects a zone Intl does not know; Vienna manifest gains the one line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:23:26 +01:00
Meta Vens
fbe9c9a930 Sky moment authority: skyMoment.ts decides the drawn instant; sunForState deleted
momentFor(choice, place, now) and skyBand are the one owner of the instant and the band.
sunAt.ts loses STATE_ELEVATION, solarNoon and sunForState; makePhysicalSky takes the sun it is given.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:23:24 +01:00
Meta Vens
6524621ead Idunn recipe: pin dist d62be29f (release a7: ink follows the drawn sky)
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m57s
Build pull request / Build pull request (pull_request) Successful in 3m20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:12:10 +01:00
d62be29fd4 Merge pull request 'Ink follows the drawn sky' (#174) from void/ink-follows-sky into dev
Some checks failed
Rat dev preview / Build dev preview (push) Has been cancelled
dist-d62be29f
2026-11-20 22:09:04 +00:00
Meta Vens
8567439786 useSceneOn reads whether a scene is drawn, not whether one is configured
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m50s
sceneDrawn.ts owns the flag and html[data-scene] together; BackgroundScene
publishes through it (start, stop, context loss and restore). A failed or
lost scene leaves the person's stored theme in force.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:08:32 +01:00
Meta Vens
e4ae831b5a The drawn sky alone decides theme and ink while a scene is on
sceneThemeId is a function of the resolved sky and sceneOn; the person's
theme stands only where no sky is drawn. Deletes userChoseTheme,
chosenTheme, themeChosen and skyThemeId (ratatoskr:ruling:ink-follows-drawn-sky).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 23:00:30 +01:00
Meta Vens
248839974b Idunn recipe: pin dist f562f8fa (release a6: painterly cel-3 look, real night sky, more sky in the frame)
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 3m9s
Build pull request / Build pull request (pull_request) Successful in 3m28s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:56:14 +01:00
f562f8fae9 Merge pull request 'Ridge look and night sky: painterly cel-3, fitted tone curve, real stars and moon, more sky' (#172) from void/ridge-night-sky into dev
Some checks failed
Rat dev preview / Build dev preview (push) Has been cancelled
dist-f562f8fa
2026-11-20 20:51:22 +00:00
Meta Vens
d84a31ce79 Delete the unused MARGIN constant
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:50:36 +01:00
Meta Vens
01d74b8188 Delete the sky-backdrop contrast apparatus, the sun-disc floor and dead star/tone code; keep stars out of the moon disc
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
skyBackdrop/BACKDROPS and the tests that held login text against sky bounds are gone (the bounds were false: the look is tuned by eye). The vertex-carry guard asserts placement only. d3-celestial's BSD-3 text is in THIRD_PARTY_NOTICES.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:50:20 +01:00
Meta Vens
0089cd956a Ridge framing: horizon at 0.85 of the viewport (operator, by eye)
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m56s
About 31 degrees of sky in a 16:9 cell. The vertex-star guard drops to 0.8:
low vertices sit in the moonlit haze at this framing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:33:04 +01:00
Meta Vens
53910b1e5b Brighter stars, second step: point spread 1.5 arcmin, contrast exponent 0.8; the test now asks for a visible lift (20 of 255) at the vertices, not just a drawn star
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:15:25 +01:00
Meta Vens
3185ea90c1 Brighter stars: smaller point spread, gentler contrast compression, larger points (starting values; the operator tunes by eye)
Under a full moon at the new framing every constellation-line vertex in the sky strip now carries a drawn star (was 24 of 34); a test pins it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:12:47 +01:00
Meta Vens
0fd1ec45ae Frame: the horizon sits at one authored fraction of the viewport (HORIZON_AT 0.95), set by windowFor alone
windowFor places the plane so its horizon row lands at HORIZON_AT of the height, the same for every sky state and viewport; the plane runs below the viewport bottom (negative bottom) and the near plain is cropped. Every consumer already read the camera and plane from windowFor; the sheet's card placement now reads plane.bottom too, and takes ?h= for a phone-shaped cell. Tests pin the constant horizon, ~35 degrees of sky in a 16:9 cell, and plane coverage with baked ground to spare at 1024x768, 1920x1080, 375x812.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:11:31 +01:00
Meta Vens
9d0764f23a Harness: ?labels=1 debug option names each constellation chain in frame (ids fetched from d3-celestial at run time; not shipped)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 21:03:29 +01:00
Meta Vens
5e64e83389 Pin the night bodies under the cards: still paints every line, star and moon before any card; live keeps them in the host canvas under the twinkle canvas and the rig
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:57:52 +01:00
Meta Vens
c18d3e3e9d Harness README: night sets and the night look's knobs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:53:23 +01:00
Meta Vens
52a085143b Harness: ridge sheet pins moments (?moments=, ?night=1) and shows stars, moon and lines (?lines=1); night key at its targets, airglow neutral
The night set renders new, first-quarter and full moon at four hours each plus deep dusk. Night exposure keys the sky to where the curve wants it so the per-channel curve does not turn the scotopic blue shift into a saturated sky.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:52:23 +01:00
Meta Vens
bf71489968 Constellation lines: hidden extra toggled by re-picking Night, persisted per viewer; credits for the star data
pickSkyState (the menu's pick): Night while the choice is Night toggles the lines, stored in ratatoskr.skyLines (storage wrapped), told to listeners as a sky change; the rebuild key carries ':lines' at night so the scene is rebuilt with the option. Sky menu Data section credits BSC5 and d3-celestial (BSD-3-Clause).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:49:37 +01:00
Meta Vens
05cff53959 Stars, moon and constellation lines drawn through the sky's display; the seeded star field and NIGHT_LUMA gating are deleted
nightBodies.ts places the catalogue stars for the sky's own moment, adds their radiance (extinction, B-V colour, point spread) to the dome behind them and takes the sky's display, so twilight hides them; the moon is drawn with its terminator and earthshine; lines over the stars when asked. stars.ts keeps the twinkle schedule, now a gain on a star's flux. Ridge.ts bakes the bodies and takes a lines option.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:48:29 +01:00
Meta Vens
fe12e10f7c Night: moon as key light, airglow floor, adapting exposure with partial adaptation and a scotopic grade
nightSky.ts holds the night's photometry (moon magnitude by phase, Krisciunas & Schaefer; airglow; star radiance; colour from B-V). The moon gets its own atmosphere bake for the night state and lights the dome, the clouds, the haze lookup and the cards (replacing nightAmbient and the cel bands' sun at night). Night loses its fixed knots and 0.043 ceiling: it adapts like day with the targets scaled by partial adaptation, a scotopic grade (Jensen 2001 luminance, blue shift) before exposure in CPU and shader, NIGHT_CEILING tunable (1). The ink-ceiling test for night is dropped with the ceiling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:44:11 +01:00
Meta Vens
8c377b58ec Night sky data: BSC5 naked-eye stars and constellation lines, packed by a committed generator; star placement by the sun's sidereal transform
2887 stars (Vmag <= 5.5) and 150 line chains, 21 KB packed. Placement precesses J2000 to the date and uses sun.js equatorialToHorizontal; tests hold five stars and the moon to astropy's altitude/azimuth within half a degree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:36:24 +01:00
Meta Vens
18ad84aff5 Sky: one sidereal transform for sun, moon and stars; low-precision moon ephemeris and phase
sun.js exports daysSinceJ2000, gmstRad, sunEquatorial and equatorialToHorizontal (sunPosition is now their composition, unchanged in value). moon.js adds the Astronomical Almanac low-precision moon, phase from elongation (Meeus 48.3), topocentric position. Tests against Meeus ex. 47.a and USNO phases.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 20:32:24 +01:00
Meta Vens
d44bf032ca Ridge look: cel-shaded relief, painterly cel is the default look
RidgeLook gains celBands/celSoftness/celBandLevels and a coarse ambient step; DEFAULT_LOOK is painterly with cel 3, PHYSICAL_LOOK keeps the old Lambert look. Sheet presets: physical, swiss, poster, painterly, painterly-cel-2/3/4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:13:05 +01:00
Meta Vens
3232c866ca Tone curve: fitted monotone curve with a small black lift replaces the additive lift and the 0.47 day floor; night ambient
Per-sky monotone cubic through five knots (black lift, p5/p50/p95 of the sky grid to target luminances, white or the night ceiling), shared by sky and cards. Night gets a fixed-knot curve and a RidgeLook.nightAmbient term.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:11:44 +01:00
Meta Vens
fa8f2a163b Harness: ridge look sheet (sky states x looks, four art-direction presets)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:46:56 +01:00
Meta Vens
d4be09c2b2 Ridge look: art-pass axes as uniforms (relief, fixed light, tints, tone, noise)
reliefWeight, reliefLight, hazeTint, nearWarm, contrastByDistance,
cardToneStep, cardGradient, inkScale, groundNoise, cloudShadows; all default to
today's look. makePhysicalSky takes an optional sun for the look sheet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:41:14 +01:00
Meta Vens
9adcd6fe63 Ridge lighting: one RidgeLook record, shader reads it as uniforms
The look constants (ink geometry, ink keeps, sun cut-off) become RidgeLook with
DEFAULT_LOOK; lightCards and lightingOf take an optional look. hazeScale and
ambientScale are new axes (default 1 = today). A recording-GL test proves an
override reaches the shader uniforms.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 14:38:14 +01:00
967d987eac Merge pull request 'Ridge runtime: lit G-buffer cards, camera on a circle (plane path deleted)' (#171) from void/ridge-runtime-cards into dev
All checks were successful
Rat dev preview / Build dev preview (push) Successful in 4m2s
2026-11-20 13:09:30 +00:00
Meta Vens
2e3e9133c0 Ridge baker tests: check wall distance and albedo in every wall column
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m36s
The face-up albedo mutant still survives (no fixture has a wall under a face steep enough to move the
albedo: not yet reached); the card-0 wall mutant is killed by the near-hill fixture.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:59:43 +01:00
Meta Vens
3b5c2a2487 Ridge baker tests: kill the card-0 wall and face-up wall albedo mutants
A near hill makes every row of card 0 lie below its first sample (so a flagged card 0 would show);
a ramp under card 1's first sample makes its face steep (so albedo from the face normal would show).
The geometry channel-swap mutant follows the encoder's new spelling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 13:49:10 +01:00
Meta Vens
e48a2bf76b Ridge runtime: the card rig and still, scene wiring, v2 asset gate and docs
startRig puts one element per lit card, farthest first, at its rows with transform-origin on the
horizon centre, animated by +-scale_i x heading with scale(scale_i); the still draws the same cards at
heading 0. index.ts lights in prepare, so a sky-change rebuild lights again and any failure (no WebGL2
included) is planesFail and the sky alone. ridgeAssets.test gates the committed v2 bake.

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