Water: export each inland tile's BC7 texture (slot e0548ad3) #484

Manually merged
github merged 2 commits from github-bot/gh-484 into gh-pr/484/base 2026-11-27 18:18:47 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 18:09 UTC · original
holdmysocks:water-tile-tex → master · +14 −6 · 2 files · 2 commits · merged 2026-11-27 18:17 UTC

sixng water --inland now also writes each tile's BC7 texture from the unnamed shader slot e0548ad3. The PNGs go to inland/textures/, and each tile lists its texture under shading.tile_texture_e0548ad3.

  • There are 951 distinct textures. 935 tiles have one at 256 x 256 and 17 at 512 to 2048; 6 tiles carry a 4 x 4 placeholder.
  • Each covers the tile's 64 m square, the same as the flow texture. What the channels mean was worked out from the export on the real install:
    • Alpha is the mesh footprint: its median overlap with the rasterised mesh is 0.99, and 888 of 952 tiles are above 0.9.
    • Green is where the surface lies above the ground, so it shows the visible water: 90 % of green texels have the surface above the water height map, against 5 % of the other texels inside the footprint. Green never extends outside alpha.
    • Red and blue rise with flow speed (correlation 0.65 and 0.60), so they probably hold foam or turbulence.
  • The slot name is still unknown.
  • The summary now counts the distinct tile textures.

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: all 958 tiles have the texture.

**@⁠holdmysocks** on GitHub · 2026-11-27 18:09 UTC · [original](https://github.com/holdmysocks/SixNG/pull/484) `holdmysocks:water-tile-tex` → `master` · +14 −6 · 2 files · 2 commits · merged 2026-11-27 18:17 UTC `sixng water --inland` now also writes each tile's BC7 texture from the unnamed shader slot `e0548ad3`. The PNGs go to `inland/textures/`, and each tile lists its texture under `shading.tile_texture_e0548ad3`. - There are 951 distinct textures. 935 tiles have one at 256 x 256 and 17 at 512 to 2048; 6 tiles carry a 4 x 4 placeholder. - Each covers the tile's 64 m square, the same as the flow texture. What the channels mean was worked out from the export on the real install: - **Alpha** is the mesh footprint: its median overlap with the rasterised mesh is 0.99, and 888 of 952 tiles are above 0.9. - **Green** is where the surface lies above the ground, so it shows the visible water: 90 % of green texels have the surface above the water height map, against 5 % of the other texels inside the footprint. Green never extends outside alpha. - **Red and blue** rise with flow speed (correlation 0.65 and 0.60), so they probably hold foam or turbulence. - The slot name is still unknown. - The summary now counts the distinct tile textures. 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: all 958 tiles have the texture.
Alpha is the mesh footprint, green the visible water above the ground,
red and blue rise with flow speed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:13:13 +00:00
github-bot changed target branch from master to gh-pr/484/base 2026-11-27 18:18:46 +00:00
github manually merged commit e0a06d1834 into gh-pr/484/base 2026-11-27 18:18:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.