diff --git a/docs/DEVLOG.md b/docs/DEVLOG.md index 0a530f5..6e17019 100644 --- a/docs/DEVLOG.md +++ b/docs/DEVLOG.md @@ -998,3 +998,34 @@ high-priority issues, and A3, A7, A12 and A13 deferred. - The wing-sail is still the launch fiction in the code; #72 (sky barge or packet ship) is Eric's call and only changes the sail and barge models. **Known gaps:** no foot planting or IK, so feet can slide a little at odd speeds and the left hand only roughly meets a long gun's fore-end. Nobody has seen it move in real time on real hardware (R6); software captures show poses, not motion quality. + +## 2026-11-13 (evening, same run): A6 done + +**Done:** +- **A6 (#46), closed: sea, sky and weather.** + - `Weather.at(tide, tick)` derives the weather from the tide's schedule alone, so every client sees the same sky with nothing new on the wire. `storm` builds from calm at the first tide to a gale at sudden death. `day` runs from mid-afternoon to dusk at the time limit. + - `WeatherView` applies it on every sync: the sky's colours, the sun's height, colour and strength, fog, ambient light, the sea's roughness, and rain (`CPUParticles3D` around the camera, so both renderers can draw it). + - Under water, the fog turns to `SEA_MURK` and closes in, the rain stops, and the surface seen from below is a rippled ceiling of murk. + - The sea shader darkens open water and adds chop and whitecaps as the storm builds. It keeps a breathing foam band at the waterline, with a fainter line beyond it. + - The sea's colours now come from new `Palette` `SEA_` entries. + - The rain and wind beds in `SoundDirector` follow the weather. + - **Compatibility renderer:** the sea came out almost all foam there, because the shader can't read the depth texture. It now reads water depth from a texture of the terrain's heights (`WaterView.set_ground`) in that renderer. Forward+ keeps using the depth buffer, which also sees pieces and props. + - New palette colours: `STORM_SKY`, `STORM_HAZE`, `DUSK_HAZE`, `DUSK_SUN`, `RAIN` and the `SEA_` set. They are documented in STYLE.md, which has a new "Weather and light" section. + +**Tests:** +- New: `test_weather` (7): clear before the tide; the storm never eases and reaches a gale at sudden death; dusk; the same tick gives the same weather; the match view shows it; under water; the sea's palette and heightmap. +- `make check` passes: parse (227 scripts), 611 tests, self-check and smoke. +- Captures `make sea-captures`: `sea_tide_0` to `sea_tide_7` from out at sea, framed on each tide's waterline; `sea_shore_calm`; `sea_shore_gale`; `sea_underwater`; plus three in the Compatibility renderer. All opened and looked at. + - The waterline climbs visibly through phases 0 to 5, with the foam ring at the shore and the storm and dusk building. + - On seed 2, the sixth rise (58 m) covers the highest summit (56 m), so `tide_6` and `tide_7` show only sea. That's the design's sudden death, not a drawing fault. +- Fixed before committing: + - The first shore and underwater cameras were inside the land, because the coast was searched at the wrong tide's level. + - The gale's fog hid the island at 300 m. It's now capped at 0.0011, so players can still see across. + - The rain streaks were too thick. + +**Decisions:** the storm and light are cosmetic and derived, not simulated, so they can't desync and cost nothing on the wire. The haze is kept light deliberately: a battle royale shouldn't hide players in fog. + +**Known gaps:** +- The sea surface is flat: swell is in the normals and foam only, because the mesh is too coarse to displace. +- No caustics or lightning. +- Real GPU cost of the rain and shader is unmeasured (H1 and R6).