Export inland water surfaces (rivers, canals, creeks, reservoirs) with sixng water --inland #383

Manually merged
github merged 1 commit from gh-pr/383/head into gh-pr/383/base 2026-11-26 20:32:18 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 17:20 UTC · original
holdmysocks:six-inland-water → master · +249 −4 · 3 files · 1 commits · merged 2026-11-26 17:29 UTC

Adds sixng water --inland, which exports the surfaces of rivers, canals, creeks, reservoirs and ponds as inland/inland.json and inland/inland.glb, placed in world space.

  • Inland water surfaces are ordinary map drawables named <area>_water_<region>_<kind>_<n>. Kind codes are rvr, cnl, crk, rsr, glf, stm, dtc, mill, drn and nuc.
  • Each tile is placed through its map-meta entity (position, rotation, XY and Z scale). Only the LOD 0 mesh is used.
  • The export has 958 tiles, each at most 64 m across and each placed once: 623 river, 126 canal, 81 creek, 46 reservoir, 33 golf pond, 22 power plant, 10 ditch, 8 mill pond, 7 stream and 2 drain.
  • Each tile is checked against the water height map. 877 of 958 surfaces lie between the bed and the banks. Rivers sit a median 1.5 m above the bed and reservoirs 3.6 m. The 2 drains sit about 2.5 m below ground, which suggests culverts.
  • Pools, fountains, standing water and scum decals are left out. A unit test covers the name filter.

Tests: cargo check --workspace --all-targets and cargo test -p sixng-core -p sixng-gui --release pass.

Closes SIX-204.

**@⁠holdmysocks** on GitHub · 2026-11-26 17:20 UTC · [original](https://github.com/holdmysocks/SixNG/pull/383) `holdmysocks:six-inland-water` → `master` · +249 −4 · 3 files · 1 commits · merged 2026-11-26 17:29 UTC Adds `sixng water --inland`, which exports the surfaces of rivers, canals, creeks, reservoirs and ponds as `inland/inland.json` and `inland/inland.glb`, placed in world space. - Inland water surfaces are ordinary map drawables named `<area>_water_<region>_<kind>_<n>`. Kind codes are `rvr`, `cnl`, `crk`, `rsr`, `glf`, `stm`, `dtc`, `mill`, `drn` and `nuc`. - Each tile is placed through its map-meta entity (position, rotation, XY and Z scale). Only the LOD 0 mesh is used. - The export has 958 tiles, each at most 64 m across and each placed once: 623 river, 126 canal, 81 creek, 46 reservoir, 33 golf pond, 22 power plant, 10 ditch, 8 mill pond, 7 stream and 2 drain. - Each tile is checked against the water height map. 877 of 958 surfaces lie between the bed and the banks. Rivers sit a median 1.5 m above the bed and reservoirs 3.6 m. The 2 drains sit about 2.5 m below ground, which suggests culverts. - Pools, fountains, standing water and scum decals are left out. A unit test covers the name filter. Tests: `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass. Closes SIX-204.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:32:17 +00:00
github manually merged commit b429d25607 into gh-pr/383/base 2026-11-26 20:32:18 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.