Water: place the ocean maps on the water grid #495
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!495
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-495"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCsixng water --detailnow also writesocean/: 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.jsongives 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_levelis written as a 16-bit PNG, the others as RGBA.mean_sea_levelis 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_controlis nearly constant.Tests:
cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass. The export was run on the real install with--detail --inland.