Ridge mockups A+D, round 2
Mockup only. Nothing here is game code and nothing is wired into the game; the Aetheria repo is untouched. Round 1 (Vienna only, cone vs ray, numbers and licences) stays at round1.html; its sources are in /opt/commons/handoff/nibu-ridge-mockups-ad-20261113/. Sampling is the ray variant (round 1 recommendation: cone sampling bought nothing at this angular resolution). Sun date 2026-09-23.
What changed (the ask, and the answer)
- Iconic-place presets as baker fixtures. Six presets in
places.json (Vienna, Matterhorn, Fuji, Half Dome, Ama Dablam with the Everest massif, Tre Cime): observer, eye height, look-at, ring radius, floor depth, steepness reference, time zone. The baker takes a preset id; the tile list, mosaic origin and window azimuth are derived from it. Five of the six viewpoints are not guessed: each is the median of the densest cluster of geotagged Wikimedia Commons photos whose EXIF camera heading faces the summit and whose summit is visible on the DEM (only coordinates and headings were read, no imagery). Vienna keeps the round-1 observer.
- Far-plateau spike (round 1: a 4°-tall needle at the left of the window): two causes, both fixed. (a) A chain's two ends both took the END value, so the start side borrowed the far end's height and the layer shot up beside a lower ridge. (b) The slot union let a chain that is absent from a column win it with its held value. Chain ends now take their own end's value and a taper length that grows with the drop (8 to 24 columns); only chains present in a column compete. Fixtures with a known right answer pin each; reintroducing each cause fails them (section 2).
- Flat nearest layer. The nearest layer's top line was the DEM sampled at 25 m, so it read as a smooth hill. An authored sub-DEM ridged-multifractal term (the fold-and-weight octave scheme of the game's
ridgeWorld.ts, same constants, but as a 2-D field rather than its 1-D silhouette profile; 60 m first wavelength, 4 octaves, 24 m amplitude, fading to zero between 0.5 and 4 km) is added to the height before the sweep. Section 3: it roughens the near line clearly only where the nearest ridge is inside the 4 km fade (Vienna); at the Matterhorn the measured roughness went slightly down, at Tre Cime up slightly; every place gets more kept chains (the bake cost change is not separable from the load noise on this machine). It is a flag, off in the main figures. Weak result, honestly.
- Cast shadows (tried, cheap). Each layer samples its face at valley, middle and crest; each sample marches the real DEM toward the sun (66 geometric steps, 40 m to 20 km, soft penumbra) and the shadow only removes the direct-sun share of the shading. 0.70 s worst-case median per sun for the march, on one core (the whole relight costs 0.4-1.5 s more than without). The visible effect is small (mean pixel change 0.0004-0.0026 on a 0-1 scale; top and bottom frames in section 4 are near-identical to the eye): cheap and verified, not yet worth its cost. Section 4.
- Also done, from the same 2026-11-13 message: the Y axis is remapped so the ground plane fills the bottom of the frame (section 5).
1. Presets
| preset | eye lat, lon | eye (DEM ground + height) | window centre | ring radius, GLO-30 tiles | viewpoint source | result | authored vertical exaggeration |
|---|
Vienna, looking SW to Rax/Schneeberg far range over a flat foreground | 48.1930, 16.3534 | 183 m + 30.0 m | 214° | 95 km, 8 tiles | existing round-1 observer | 6 layers / 49 chains | 10.0x |
Matterhorn from the Gornergrat (photo cell, 9.7 km) lone horn, close, 27 deg of relief | 45.9831, 7.7825 | 3091 m + 1.6 m | 266° | 60 km, 4 tiles | 7 geotagged Commons photos, median heading 246 deg, 9.7 km from the summit | 5 layers / 51 chains | 1.0x |
Fuji from the Shiraito Falls side, 13.8 km WSW (photo cell) lone cone, smooth | 35.3125, 138.5872 | 487 m + 1.6 m | 67° | 60 km, 5 tiles | 8 geotagged Commons photos, median heading 64 deg, 13.8 km from the summit | 6 layers / 77 chains | 1.5x |
Half Dome from the Yosemite Valley floor (Sentinel Bridge photo cell) granite wall across a valley | 37.7458, -119.5926 | 1209 m + 1.6 m | 92° | 40 km, 3 tiles | 9 geotagged Commons photos, median heading 92 deg, 5.1 km from the summit | 3 layers / 31 chains | 1.0x |
Ama Dablam and the Everest massif, 4 km WSW of Tengboche near Khumjung (photo cell) far high range behind a near spire | 27.8220, 86.7227 | 3782 m + 1.6 m | 72° | 60 km, 4 tiles | 2 geotagged Commons photos, median heading 80 deg, 14.3 km from the summit | 5 layers / 62 chains | 1.0x |
Tre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell) cirque wall, spires | 46.6369, 12.3101 | 2403 m + 1.6 m | 207° | 40 km, 2 tiles | 5 geotagged Commons photos, median heading 195 deg, 2.4 km from the summit | 5 layers / 77 chains | 1.8x |
Timings: one pinned core (taskset), time.perf_counter(), warm (mosaic and rays cached), median and min of 5 repetitions (march: 3), run after the render on a shared machine under load (load average about 20 on 16 cores; round 1 measured relights near 2 s when quieter, so compare ratios, not absolutes); the first-render figures in results2.json are noisier and are not used. Cold mosaic builds (decoding the GeoTIFFs) happened once per preset and are slower (results2.json, t_mosaic_s is 0 only because the cache was already built by the earlier run). Terrain data: Copernicus GLO-30 DEM, © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018, provided under COPERNICUS by the European Union and ESA; all rights reserved (free use incl. commercial with attribution). Viewpoint search: Wikimedia Commons geosearch (public API); no photographs are used or redistributed.
| preset | stage 0 march | sweep (extract+chain+slots) | bake (sun-independent) | relight, noon, no shadows | relight, noon, shadows on | cast-shadow march alone | seam: adjacent-column diff at the wrap / median | rotation test: mean abs diff |
|---|
| Vienna | 0.47 s (min 0.41) | 1.05 s (min 0.95) | 3.49 s (min 3.31) | 4.05 s (min 3.90) | 5.55 s (min 5.43) | 0.70 s (min 0.64) | 0.0195 / 0.0198 | 4.0e-06 |
| Matterhorn | 0.27 s (min 0.27) | 0.87 s (min 0.83) | 2.78 s (min 2.68) | 3.39 s (min 3.38) | 4.72 s (min 4.38) | 0.51 s (min 0.43) | 0.0257 / 0.0206 | 7.2e-05 |
| Fuji | 0.30 s (min 0.29) | 0.88 s (min 0.83) | 3.62 s (min 3.48) | 3.97 s (min 3.92) | 5.24 s (min 5.04) | 0.45 s (min 0.40) | 0.0216 / 0.0212 | 1.0e-04 |
| Half Dome | 0.21 s (min 0.21) | 0.68 s (min 0.64) | 1.91 s (min 1.79) | 2.32 s (min 2.31) | 2.74 s (min 2.69) | 0.14 s (min 0.13) | 0.0260 / 0.0229 | 0.0e+00 |
| Ama Dablam | 0.29 s (min 0.29) | 0.90 s (min 0.87) | 3.23 s (min 2.80) | 3.99 s (min 3.70) | 4.42 s (min 4.34) | 0.34 s (min 0.27) | 0.0239 / 0.0236 | 1.2e-04 |
| Tre Cime di Lavaredo | 0.21 s (min 0.21) | 0.72 s (min 0.70) | 2.93 s (min 2.84) | 3.64 s (min 3.46) | 4.66 s (min 4.32) | 0.29 s (min 0.26) | 0.0227 / 0.0232 | 8.9e-06 |
| place | relight | local time | sun azimuth | apparent elevation |
|---|
| Vienna | dawn | 06:55 CEST | 91.3 | 2.0 |
| Vienna | morning | 09:30 CEST | 122.5 | 26.1 |
| Vienna | noon | 12:46 CEST | 179.9 | 42.1 |
| Vienna | golden | 18:11 CEST | 263.5 | 6.1 |
| Vienna | dusk | 19:02 CEST | 273.1 | -1.8 |
| Matterhorn | dawn | 07:30 CEST | 91.3 | 2.1 |
| Matterhorn | morning | 09:30 CEST | 114.1 | 22.0 |
| Matterhorn | noon | 13:20 CEST | 179.9 | 44.3 |
| Matterhorn | golden | 18:47 CEST | 264.0 | 6.1 |
| Matterhorn | dusk | 19:36 CEST | 272.8 | -1.8 |
| Fuji | noon | 11:37 JST | 179.9 | 55.1 |
| Fuji | golden | 17:09 JST | 266.1 | 6.1 |
| Fuji | dusk | 17:51 JST | 272.1 | -1.8 |
| Half Dome | noon | 12:50 PDT | 179.9 | 52.4 |
| Half Dome | golden | 18:20 PDT | 265.4 | 6.1 |
| Half Dome | dusk | 19:03 PDT | 272.0 | -1.8 |
| Ama Dablam | noon | 11:50 NPT | 179.9 | 62.5 |
| Ama Dablam | golden | 17:23 NPT | 267.1 | 6.1 |
| Ama Dablam | dusk | 18:02 NPT | 271.6 | -1.8 |
| Tre Cime di Lavaredo | noon | 13:02 CEST | 179.9 | 43.6 |
| Tre Cime di Lavaredo | golden | 18:28 CEST | 263.9 | 6.1 |
| Tre Cime di Lavaredo | dusk | 19:18 CEST | 272.9 | -1.8 |
Vienna, looking SW to Rax/Schneeberg
far range over a flat foreground. Eye 48.1930, 16.3534; window centre 214°; floor plane 30 m below the eye; vertical exaggeration 10.0x.
dawn06:55 CEST, sun az 91.3, el 2.0
morning09:30 CEST, sun az 122.5, el 26.1
noon12:46 CEST, sun az 179.9, el 42.1
golden18:11 CEST, sun az 263.5, el 6.1
dusk19:02 CEST, sun az 273.1, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)
seamthe wrap: centre line = 360/0°, noon relightMatterhorn from the Gornergrat (photo cell, 9.7 km)
lone horn, close, 27 deg of relief. Eye 45.9831, 7.7825; window centre 266°; floor plane 992 m below the eye; vertical exaggeration 1.0x.
dawn07:30 CEST, sun az 91.3, el 2.1
morning09:30 CEST, sun az 114.1, el 22.0
noon13:20 CEST, sun az 179.9, el 44.3
golden18:47 CEST, sun az 264.0, el 6.1
dusk19:36 CEST, sun az 272.8, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)
seamthe wrap: centre line = 360/0°, noon relightFuji from the Shiraito Falls side, 13.8 km WSW (photo cell)
lone cone, smooth. Eye 35.3125, 138.5872; window centre 67°; floor plane 139 m below the eye; vertical exaggeration 1.5x.
noon11:37 JST, sun az 179.9, el 55.1
golden17:09 JST, sun az 266.1, el 6.1
dusk17:51 JST, sun az 272.1, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)Half Dome from the Yosemite Valley floor (Sentinel Bridge photo cell)
granite wall across a valley. Eye 37.7458, -119.5926; window centre 92°; floor plane 6 m below the eye; vertical exaggeration 1.0x.
noon12:50 PDT, sun az 179.9, el 52.4
golden18:20 PDT, sun az 265.4, el 6.1
dusk19:03 PDT, sun az 272.0, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)Ama Dablam and the Everest massif, 4 km WSW of Tengboche near Khumjung (photo cell)
far high range behind a near spire. Eye 27.8220, 86.7227; window centre 72°; floor plane 830 m below the eye; vertical exaggeration 1.0x.
noon11:50 NPT, sun az 179.9, el 62.5
golden17:23 NPT, sun az 267.1, el 6.1
dusk18:02 NPT, sun az 271.6, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)Tre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell)
cirque wall, spires. Eye 46.6369, 12.3101; window centre 207°; floor plane 736 m below the eye; vertical exaggeration 1.8x.
noon13:02 CEST, sun az 179.9, el 43.6
golden18:28 CEST, sun az 263.9, el 6.1
dusk19:18 CEST, sun az 272.9, el -1.8
ringthe whole 360° ring at half size (0° = north at the left edge)
2. The spike, before and after (Vienna)
spiketop: round-1 behaviour re-created by patching the two causes back into a copy of the baker; bottom: round 2. Same sun, same view.
zoomzoom on the spike (columns 209-449 of the window, 3x)
- The offending chain(s) in the round-1 behaviour: cols 3494-4586, 12.8 km, top 0.412 deg at its start vs 1.383 deg at its end; cols 6072-261, 0.8 km, top 0.549 deg at its start vs -0.377 deg at its end; cols 5048-5654, 7.1 km, top 0.866 deg at its start vs 1.474 deg at its end.
- Envelope (highest drawn layer top per column, layers with weight 0 ignored) largest single-column step, window: before 0.968 deg, after 0.039 deg; whole ring: before 0.968, after 0.174.
- Columns with a layer-top step above 0.15 deg anywhere in the ring (chain-end walls included): before 19, after 7. The envelope's ring-wide maximum is 0.17 deg. The Soul pass found this is a two-column pop-in of a 4.7 km, 262 m hill at Laaer Berg whose prominence sits at the 25 m cut (threshold flicker, not a DEM step). A 0.39 deg step on the nearest layer remains 92 columns right of the Vienna window, and chain-boundary steps up to 1.2 deg (slot 1) remain inside it where one side is a taper end; the 0.15 deg count does not include those. No claim of "no discontinuities" is made.
- Fixtures (
tests/test_ridge.py, plain asserts, synthetic terrain with a known right answer; tests/mutate.py re-introduces each cause into a copy of the source and requires a fixture to fail):
PASS test_cast_shadow_east_west_and_longitude_scale
PASS test_cast_shadow_follows_the_sun_ray_over_the_dem
PASS test_plateau_has_no_spike_and_no_cliff_beyond_taper
PASS test_ridge_whose_two_ends_differ_does_not_borrow_the_far_end
PASS test_shadow_darkens_the_face_it_covers
PASS test_single_peak_has_one_maximum
PASS test_slot_union_only_lets_present_chains_compete
PASS test_step_cliff_is_one_step_and_levels_are_right
PASS test_vienna_skyline_has_no_invented_jump_and_seam_is_seamless
PASS test_wraparound_ridge_across_north_is_seamless_and_rotation_invariant
failures: 0
KILLED round-1 bug: both chain sides take the END value (near_end always x1) -> FAIL test_ridge_whose_two_ends_differ_does_not_borrow_the_far_end, FAIL test_shadow_darkens_the_face_it_covers, FAIL test_vienna_skyline_has_no_invented_jump_and_seam_is_seamless
KILLED linking does not wrap (look-back columns clipped at 0) -> FAIL test_shadow_darkens_the_face_it_covers, FAIL test_wraparound_ridge_across_north_is_seamless_and_rotation_invariant
KILLED a chain absent from a column still competes in the slot union (held valley value wins) -> FAIL test_shadow_darkens_the_face_it_covers, FAIL test_slot_union_only_lets_present_chains_compete
KILLED shadow march goes AWAY from the sun -> FAIL test_cast_shadow_east_west_and_longitude_scale, FAIL test_cast_shadow_follows_the_sun_ray_over_the_dem, FAIL test_shadow_darkens_the_face_it_covers
KILLED shadow ignores the sun elevation (ray stays at the sample height) -> FAIL test_cast_shadow_east_west_and_longitude_scale, FAIL test_cast_shadow_follows_the_sun_ray_over_the_dem, FAIL test_shadow_darkens_the_face_it_covers
KILLED taper length ignores the drop (always the 8-column minimum) -> FAIL test_plateau_has_no_spike_and_no_cliff_beyond_taper, FAIL test_shadow_darkens_the_face_it_covers, FAIL test_vienna_skyline_has_no_invented_jump_and_seam_is_seamless
KILLED shadow march mirrors east/west (longitude sign) -> FAIL test_cast_shadow_east_west_and_longitude_scale, FAIL test_shadow_darkens_the_face_it_covers
KILLED shadow longitude scale ignores cos(lat) -> FAIL test_cast_shadow_east_west_and_longitude_scale, FAIL test_shadow_darkens_the_face_it_covers
KILLED shadow lightens instead of darkens the face -> FAIL test_shadow_darkens_the_face_it_covers
KILLED taper cap lowered to 8 columns -> FAIL test_plateau_has_no_spike_and_no_cliff_beyond_taper
KILLED taper per degree lowered to 2 -> FAIL test_plateau_has_no_spike_and_no_cliff_beyond_taper
KILLED taper floor ignores the chain end (top held, no fall) -> FAIL test_plateau_has_no_spike_and_no_cliff_beyond_taper, FAIL test_vienna_skyline_has_no_invented_jump_and_seam_is_seamless
3. The nearest layer, base vs authored detail
Top: DEM only. Bottom: DEM + authored ridged detail on the nearest 4 km (same view, same sun).
detailVienna, looking SW to Rax/Schneeberg: base (top), with detail (bottom)
zoomzoom on the left third (4x): base (top), with detail (bottom)
detailMatterhorn from the Gornergrat (photo cell, 9.7 km): base (top), with detail (bottom)
zoomzoom on the left third (4x): base (top), with detail (bottom)
detailTre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell): base (top), with detail (bottom)
zoomzoom on the left third (4x): base (top), with detail (bottom)
| preset | nearest layer, base: top-line step (px/col) | with authored detail | stage 0 samples/col (base -> detail) | chains kept (base -> detail) |
|---|
| vienna | 0.96 | 1.16 | 828 -> 1138 | 49 -> 79 |
| matterhorn | 0.57 | 0.53 | 688 -> 998 | 51 -> 66 |
| trecime | 0.62 | 0.67 | 586 -> 896 | 77 -> 99 |
Top-line step = mean absolute column-to-column change of the nearest layer's top, in pixels. It is a roughness proxy, not a quality score.
4. Cast shadows
| preset | sun | elevation | mean shadow at valley / middle / crest samples (all layers) | mean pixel change (0-1 scale) | cost: relight noon without -> with shadows (timing2, median) | cast-shadow march alone |
|---|
| Vienna | golden | 6.1° | 0.33 / 0.20 / 0.12 | 0.0004 | 4.05 -> 5.55 s | 0.70 s |
| Matterhorn | morning | 22.0° | 0.24 / 0.15 / 0.05 | 0.0010 | 3.39 -> 4.72 s | 0.51 s |
| Matterhorn | golden | 6.1° | 0.45 / 0.35 / 0.16 | 0.0009 | 3.39 -> 4.72 s | 0.51 s |
| Fuji | golden | 6.1° | 0.57 / 0.43 / 0.29 | 0.0007 | 3.97 -> 5.24 s | 0.45 s |
| Half Dome | morning | 30.6° | 0.46 / 0.41 / 0.21 | 0.0024 | 2.32 -> 2.74 s | 0.14 s |
| Half Dome | golden | 6.1° | 0.76 / 0.68 / 0.47 | 0.0026 | 2.32 -> 2.74 s | 0.14 s |
| Ama Dablam | golden | 6.1° | 0.69 / 0.49 / 0.36 | 0.0021 | 3.99 -> 4.42 s | 0.34 s |
| Tre Cime di Lavaredo | morning | 24.5° | 0.38 / 0.23 / 0.09 | 0.0016 | 3.64 -> 4.66 s | 0.29 s |
| Tre Cime di Lavaredo | golden | 6.1° | 0.53 / 0.38 / 0.21 | 0.0008 | 3.64 -> 4.66 s | 0.29 s |
shadowVienna, looking SW to Rax/Schneeberg, golden (18:11 CEST, el 6.1°): without cast shadows (top) and with (bottom)
shadowMatterhorn from the Gornergrat (photo cell, 9.7 km), morning (09:30 CEST, el 22.0°): without cast shadows (top) and with (bottom)
shadowMatterhorn from the Gornergrat (photo cell, 9.7 km), golden (18:47 CEST, el 6.1°): without cast shadows (top) and with (bottom)
shadowFuji from the Shiraito Falls side, 13.8 km WSW (photo cell), golden (17:09 JST, el 6.1°): without cast shadows (top) and with (bottom)
shadowHalf Dome from the Yosemite Valley floor (Sentinel Bridge photo cell), morning (09:30 PDT, el 30.6°): without cast shadows (top) and with (bottom)
shadowHalf Dome from the Yosemite Valley floor (Sentinel Bridge photo cell), golden (18:20 PDT, el 6.1°): without cast shadows (top) and with (bottom)
shadowAma Dablam and the Everest massif, 4 km WSW of Tengboche near Khumjung (photo cell), golden (17:23 NPT, el 6.1°): without cast shadows (top) and with (bottom)
shadowTre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell), morning (09:30 CEST, el 24.5°): without cast shadows (top) and with (bottom)
shadowTre Cime di Lavaredo from the Dreizinnenhuette area, 2.4 km N (photo cell), golden (18:28 CEST, el 6.1°): without cast shadows (top) and with (bottom)
What it is: a darkening of the direct-sun term, interpolated down each ridge face from three DEM samples, softened. What it is not: there is no shadow shape inside a face (the bake keeps per-column spans, not a raster), no shadow on the ground plane, and no shadow from one layer onto the layers in front of it unless the DEM march sees it. Sun below 0.3° casts none. Fixture: a wall of known height and position against a flat DEM (shadowed behind it at 5°, clear at 30°, none toward the sun, none at 0.2°); two mutants (march direction reversed, sun elevation ignored) are killed.
5. Y mapping (floor at the bottom)
Authored, linear in elevation angle, per view: the highest ridge top sits at 4% of the frame height and the lowest crest of the nearest layer at 66%; everything below is that layer's body, its foot mist and the ground-plane band. Exaggeration is derived from those two anchors and clamped to 1x-10x (printed in the presets table). Below the horizon every layer's foot merges into the ground plane within 40 px, which removed most of the per-slot colour streaks that ran down the floor in the first round-2 render (not all: see section 6).
6. What is still weak
- Chain ends are still walls for tall ridges. The Matterhorn and Fuji views have vertical-ish edges where a far chain ends (the 24-column cap); they are ramps now, not cliffs, but a human painter would not stop a ridge there.
- Vertical streaks where adjacent chains fall in different distance slots (different foot mist, base colour): Matterhorn, Fuji, Ama Dablam, Vienna (a bright stripe at the right edge of the window, dark bands mid-ridge), and across the whole right half of the Half Dome ring, faintly into the floor band. In the 1280-px windows they are mostly gone below the horizon; in the ring renders they are not. They are the layer quantiser showing.
- Ink below the horizon: where a ridge is entirely below the eye (Tre Cime, right edge) its contour and hachure lines are drawn over the floor-coloured foot; there is no geometric split between terrain seen from above and the notional ground plane.
- Light vertical streaks in the haze at Ama Dablam (right half): columns where a layer is absent show the unlit mist between chains.
- Fragments of the nearest layer (short chains near the eye, kept because foreground chains skip the width filter) show as little walled stubs, e.g. bottom-left of Matterhorn.
- Ground plane is a flat painted floor. At Half Dome and Matterhorn it is a quarter of the frame of uniform green. A real valley floor (river, meadow, forest edge) is not modelled.
- Half Dome contours and hachure read as a grid on large faces: the iso-height contours are a regular 30 m ramp, not following real terrain; at this scale it looks mechanical.
- Shadows are per-column, face-gradient only (section 4): no cast-shadow shapes, nothing on the floor; the effect is a darker lower/upper face rather than a shadow you can point at.
- The authored detail is noise. It makes the near line irregular like a ridge; it is not the terrain, and it also raises the chain count (and the cost) in the foreground.
- The Matterhorn does not dominate its frame (exaggeration clamps at 1x because the nearest crest sits far below the eye); the anchors are a heuristic, not a composition.
- Rotation invariance is exact in the mean, not per pixel: mean abs diff ~1e-4..1e-5, but a few columns differ (max abs up to 0.8) because the hachure stroke generator is seeded by column index; the seam itself is flat (adjacent-column difference at the wrap equals the median).
- Timings are one shared, loaded core; repeat runs vary by tens of percent. Sun positions are NOAA low-precision (~0.1°).