Water: export the small water bodies inside placed interiors #524

Manually merged
github merged 2 commits from github-bot/gh-524 into gh-pr/524/base 2026-11-28 03:08:52 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 02:53 UTC · original
holdmysocks:water-interiors → master · +78 −19 · 2 files · 2 commits · merged 2026-11-28 03:04 UTC

sixng water --pools now also exports the small water bodies that interiors hold. Each interior instance in a map file places its interior's entities, including those in entity sets. A water drawable found there goes to world space through the instance, using the same composition as the interior lights.

  • On the real install, this adds 83 placements, making 2,366 in all:
    • 74 other water, mostly water_bucket meshes in two labs and a construction interior
    • 6 pools
    • 2 hot tubs
    • 1 fountain
  • 33 of the 83 are held only by an entity set, an optional interior state.
  • Each of these rows has an interior entry. It gives the archetype, the instance's map file, its index, position and rotation, and whether only an entity set holds the drawable.
    • map_file is then the interior archetype file, and position and rotation_world are the entity's own, in interior space.
    • The geometry and bbox are in world space.
    • An interior placed more than once gives one row per instance.
  • The per-kind summary gains in_interiors.
  • named_but_not_placed_outside_interiors becomes named_but_not_placed, which counts drawables that neither a map file nor a placed interior places. It drops from 150 to 45: 39 other water, 4 fountains, 1 waterfall and 1 water effect.
  • Checked on the export:
    • Entity offset plus instance position gives the exported bbox.
    • The 36 placements in rotated instances (all turns about the vertical axis, such as 25°) stay flat. They use the instance rotation as stored, the convention the interior collision fit confirmed.

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

**@⁠holdmysocks** on GitHub · 2026-11-28 02:53 UTC · [original](https://github.com/holdmysocks/SixNG/pull/524) `holdmysocks:water-interiors` → `master` · +78 −19 · 2 files · 2 commits · merged 2026-11-28 03:04 UTC `sixng water --pools` now also exports the small water bodies that interiors hold. Each interior instance in a map file places its interior's entities, including those in entity sets. A water drawable found there goes to world space through the instance, using the same composition as the interior lights. - On the real install, this adds **83 placements**, making 2,366 in all: - 74 other water, mostly `water_bucket` meshes in two labs and a construction interior - 6 pools - 2 hot tubs - 1 fountain - 33 of the 83 are held only by an entity set, an optional interior state. - Each of these rows has an `interior` entry. It gives the archetype, the instance's map file, its index, position and rotation, and whether only an entity set holds the drawable. - `map_file` is then the interior archetype file, and `position` and `rotation_world` are the entity's own, in interior space. - The geometry and bbox are in world space. - An interior placed more than once gives one row per instance. - The per-kind summary gains `in_interiors`. - `named_but_not_placed_outside_interiors` becomes `named_but_not_placed`, which counts drawables that neither a map file nor a placed interior places. It drops from 150 to 45: 39 other water, 4 fountains, 1 waterfall and 1 water effect. - Checked on the export: - Entity offset plus instance position gives the exported bbox. - The 36 placements in rotated instances (all turns about the vertical axis, such as 25°) stay flat. They use the instance rotation as stored, the convention the interior collision fit confirmed. Tests: `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass. The `--pools` export was run on the real install.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:56:50 +00:00
github-bot changed target branch from master to gh-pr/524/base 2026-11-28 03:08:51 +00:00
github manually merged commit 7865b78c25 into gh-pr/524/base 2026-11-28 03:08:52 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.