Water: place the ocean maps on the water grid #495

Manually merged
github merged 2 commits from github-bot/gh-495 into gh-pr/495/base 2026-11-27 19:20:41 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 19:05 UTC · original
holdmysocks:water-ocean-maps → master · +164 −1 · 2 files · 2 commits · merged 2026-11-27 19:15 UTC

sixng water --detail now also writes ocean/: the five map-wide ocean maps of levels.rpf, placed on the water grid's world box (row 0 north). The maps are 512 x 1056 at 32 m per texel or 1024 x 2112 at 16 m, the same shape as the 32 x 66 cell grid.

  • ocean.json gives the world box, each map's size and format, and its channel means on land, on inland water and in four bands of distance from land: under 200 m, 200 m to 1 km, 1 to 5 km, and over 5 km.
  • mean_sea_level is written as a 16-bit PNG, the others as RGBA.
  • What the maps hold, checked on the real install:
    • mean_sea_level is a water surface height on the water height map's scale. It is 0 on land, which agrees with the height map on 95.5 % of texels, and 0.28 m on the sea. Inland water carries its own heights: on the 141 inland tiles over a water texel it is a median 0.02 m from the surface, and 104 are within 1 m. As stored, the map fits better than it does flipped, which agrees on only 83–88 %.
    • water_quality_control: red is 255 on the sea and about 0 on land and inland water. Green is about 40 only on inland water.
    • ocean_wave_control: red and green rise from about 16 and 96 near the coast to 247 and 253 beyond 5 km, so waves are calmed near the shore.
    • ocean_roughness_control: red and green are spread around 128, and alpha is above 0, within about 5 km of land. It is 128, 128, 0, 0 in the open sea.
    • ocean_wetness_control is nearly constant.
  • The uses come from these checks and the names, not from shader code.

Tests: cargo check --workspace --all-targets and cargo test -p sixng-core -p sixng-gui --release pass. The export was run on the real install with --detail --inland.

**@⁠holdmysocks** on GitHub · 2026-11-27 19:05 UTC · [original](https://github.com/holdmysocks/SixNG/pull/495) `holdmysocks:water-ocean-maps` → `master` · +164 −1 · 2 files · 2 commits · merged 2026-11-27 19:15 UTC `sixng water --detail` now also writes `ocean/`: the five map-wide ocean maps of levels.rpf, placed on the water grid's world box (row 0 north). The maps are 512 x 1056 at 32 m per texel or 1024 x 2112 at 16 m, the same shape as the 32 x 66 cell grid. - `ocean.json` gives the world box, each map's size and format, and its channel means on land, on inland water and in four bands of distance from land: under 200 m, 200 m to 1 km, 1 to 5 km, and over 5 km. - `mean_sea_level` is written as a 16-bit PNG, the others as RGBA. - What the maps hold, checked on the real install: - **`mean_sea_level`** is a water surface height on the water height map's scale. It is 0 on land, which agrees with the height map on 95.5 % of texels, and 0.28 m on the sea. Inland water carries its own heights: on the 141 inland tiles over a water texel it is a median 0.02 m from the surface, and 104 are within 1 m. As stored, the map fits better than it does flipped, which agrees on only 83–88 %. - **`water_quality_control`**: red is 255 on the sea and about 0 on land and inland water. Green is about 40 only on inland water. - **`ocean_wave_control`**: red and green rise from about 16 and 96 near the coast to 247 and 253 beyond 5 km, so waves are calmed near the shore. - **`ocean_roughness_control`**: red and green are spread around 128, and alpha is above 0, within about 5 km of land. It is 128, 128, 0, 0 in the open sea. - **`ocean_wetness_control`** is nearly constant. - The uses come from these checks and the names, not from shader code. Tests: `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass. The export was run on the real install with `--detail --inland`.
mean_sea_level, water quality, wave, roughness and wetness maps with the
grid's world box, channel means by distance from land, and checks against
the water height map and the inland surfaces.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:09:38 +00:00
github-bot changed target branch from master to gh-pr/495/base 2026-11-27 19:20:40 +00:00
github manually merged commit 6cc07e84a0 into gh-pr/495/base 2026-11-27 19:20:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.