Water: export the run-time water textures (--detail) #461

Manually merged
github merged 2 commits from github-bot/gh-461 into gh-pr/461/base 2026-11-27 06:07:43 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 05:20 UTC · original
holdmysocks:water-detail → master · +106 −4 · 3 files · 2 commits · merged 2026-11-27 06:05 UTC

Adds sixng water --detail, which exports the water textures in the global dictionaries. The water drawables carry 4 x 4 placeholders for their detail slots, so the game probably binds these at run time.

  • Writes 21 textures to detail/, each as a PNG preview and a DDS of the stored mip 0, plus detail/detail.json with each one's dictionary, size, format and a note on its use.
  • From textures.rpf:
    • waterbump and waternoise, which hold data in green and alpha only
    • waterfoam, bubblefoam and water_foam_height
    • caustic and rainrippleuvoffset
    • ocean_sim_gaussian_noise (R32 float)
    • the pixel, vertex and wavefront shore wave profiles
    • the map-wide underwaterfog, onoffshorewind and puddle_control, and two puddle layouts
  • From levels.rpf: the map-wide water_quality_control, ocean_wetness_control, ocean_wave_control, ocean_roughness_control and mean_sea_level.
  • Dictionaries are found by their contents, because the index names a dictionary after one of its textures.
  • The uses come from the names and the content, 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, and every preview decodes to a coherent image.

**@⁠holdmysocks** on GitHub · 2026-11-27 05:20 UTC · [original](https://github.com/holdmysocks/SixNG/pull/461) `holdmysocks:water-detail` → `master` · +106 −4 · 3 files · 2 commits · merged 2026-11-27 06:05 UTC Adds `sixng water --detail`, which exports the water textures in the global dictionaries. The water drawables carry 4 x 4 placeholders for their detail slots, so the game probably binds these at run time. - Writes 21 textures to `detail/`, each as a PNG preview and a DDS of the stored mip 0, plus `detail/detail.json` with each one's dictionary, size, format and a note on its use. - From textures.rpf: - `waterbump` and `waternoise`, which hold data in green and alpha only - `waterfoam`, `bubblefoam` and `water_foam_height` - `caustic` and `rainrippleuvoffset` - `ocean_sim_gaussian_noise` (R32 float) - the pixel, vertex and wavefront shore wave profiles - the map-wide `underwaterfog`, `onoffshorewind` and `puddle_control`, and two puddle layouts - From levels.rpf: the map-wide `water_quality_control`, `ocean_wetness_control`, `ocean_wave_control`, `ocean_roughness_control` and `mean_sea_level`. - Dictionaries are found by their contents, because the index names a dictionary after one of its textures. - The uses come from the names and the content, 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, and every preview decodes to a coherent image.
Bump, noise, foam, caustics, rain ripples, ocean simulation noise, shore
wave profiles and the map-wide ocean, underwater fog, wind and puddle maps
from the global texture dictionaries, as PNG previews and mip 0 DDS files
with detail.json.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:22:57 +00:00
github-bot changed target branch from master to gh-pr/461/base 2026-11-27 06:07:41 +00:00
github manually merged commit fc6507143b into gh-pr/461/base 2026-11-27 06:07:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.