garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

cartopolis-agent · 2026-11-30T18:38:21Z

docs(attempts): what s563 tried

Scattered cloud keeping the sun and a 20 km default haze, measured and shown on 2 November, never landed; the code is kept at refs/attempts/s563.
...11-02-s563-warm-low-sun-light-and-clear-haze.md | 58 ++++++++++++++++++++++
 docs/attempts/README.md                            |  5 ++
 2 files changed, 63 insertions(+)

diff --git a/docs/attempts/2026-11-02-s563-warm-low-sun-light-and-clear-haze.md b/docs/attempts/2026-11-02-s563-warm-low-sun-light-and-clear-haze.md
new file mode 100644
index 00000000..9af0f334
--- /dev/null
+++ b/docs/attempts/2026-11-02-s563-warm-low-sun-light-and-clear-haze.md
@@ -0,0 +1,58 @@
+---
+session: s563
+code: refs/attempts/s563 (b1790ce26c91d7ced771dcfba46e41a114430bb9)
+started: 2026-11-02
+filed: 2026-11-30
+triggers: crates/cartopolis/src/systems/map/sky.rs, crates/cartopolis/src/systems/player/free_camera.rs, systems::sky, overcast, distance_fog, fog_visibility_m, cloud_cover, fog_density
+---
+# Warm low-sun light: scattered cloud keeps the sun, and a clear default haze
+
+## Asked
+The session was reviewing the about-cartopolis talk slide by slide. For the
+title slide's background the person found the city render's light poor, then
+said of four captures at different times and dates: "Dit is geen avondlicht.
+De kleur blijft blauw", and asked to find out why the screenshots hardly
+change colour. Told the choice, they chose to fix the light here rather than in
+a separate session, then chose "nevel bij lage zon" and "Ja, herverdelen" for
+the haze scale.
+
+## Tried
+Two changes, each measured on mac-2 (real GPU, `CARTO_QUALITY=desktop`) from
+450 m south-west of Groningen's centre, noon and a June sun at 2–10°:
+
+- **`sky::overcast`** took `cloud_cover` as it was, so a fair-weather 0.3
+  cut 28 % of the sun's beam, raised the sky fill and greyed the sun's colour.
+  It now rises by smoothstep from 0 at cover 0.4 (`SCATTERED_COVER`) to 1 at
+  0.95 (`CLOSED_COVER`); a test pins it. Nothing draws cloud shadows on the
+  ground, so scattered cloud now leaves the light alone.
+- **`free_camera::fog_visibility_m`** replaces `15 km × 0.006^density`
+  (default 0.15 = 7 km, clearest 15 km) with `40 km · exp(-6.1 · d^1.146)`:
+  ~36 km at 0.03, 20 km at the default, the same ~90 m at 1.0; a test pins the
+  points and that it is monotone. Comments in `sky.rs` and
+  `cloud-lighting.md` that said 7 km were updated.
+
+A warmer or dimmer haze colour at a low sun (`S563_GOLD`/`S563_DIM` sweep
+knobs, never committed) was tried and not kept: thinning the haze did more.
+
+## How far it got
+Both commits passed `cargo test -p cartopolis --lib` for `sky::` and
+`free_camera::` (50 passed) and `cargo fmt --check` on mac-2. Before/after
+captures were shown and the person picked the 6° June capture made with them
+as the talk's title background; the talk's slides 1, 7 and 19 use renders made
+with this code. Not run: the full landing gate, and no other views (the
+`cloud-shots.toml` noon-to-night sweep the cloud notes ask for was not run).
+Clouds at 0.7 cover under a low sun still lit the city fairly bright.
+
+## Why it did not land
+Simply left. The session then went on with the talk for days; when asked
+(2026-11-06) whether to land these two fixes and finish, the session ended
+before the answer was recorded. The person never said not yet.
+
+## Worth keeping
+Both changes are small and independent; a later session can cherry-pick
+`3a1f9475` (overcast) and `b1790ce2` (haze) from the attempts ref, rebase
+(main has moved a month, `sky.rs` likely too), run the gate, and before
+landing show the cloud-shots sweep beside Dutch references, as
+`judge-lighting-against-dutch-references` asks. Live weather keeps its
+densities, so its clear-day floor 0.05 becomes ~33 km and full humid haze
+(0.25) ~11 km: worth a look that this still reads as weather.
diff --git a/docs/attempts/README.md b/docs/attempts/README.md
new file mode 100644
index 00000000..91491ee2
--- /dev/null
+++ b/docs/attempts/README.md
@@ -0,0 +1,5 @@
+# Attempts
+
+What sessions tried and did not land, and why; each note names where its code is kept.
+
+- [Warm low-sun light: scattered cloud keeps the sun, and a clear default haze](2026-11-02-s563-warm-low-sun-light-and-clear-haze.md) — s563, 2026-11-02: left unlanded while the talk went on; never refused