Outfit export: clothes under clothes as their _cull_00 twins, skin and clothes cut by the hide masks #358

Manually merged
github merged 7 commits from gh-pr/358/head into gh-pr/358/base 2026-11-26 20:30:12 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 05:27 UTC · original
holdmysocks:claude/people-export-cull → master · +105 −17 · 9 files · 7 commits · merged 2026-11-26 06:00 UTC

Stacked on #354 (it includes #354's commits; merge #354 first). sixng outfit --look N now hides what's worn under something, the same way the viewer does since #354. Until now the export hid nothing at all, so a t-shirt under an open shirt showed through in large patches, and so did the skin.

Change:

  • pedlook::cull_twins: the rule for which garments to draw as their _cull_00 twin. These are the garments another part of the outfit hides regions of. The viewer now calls it too.
  • pedlook::hidden_masks: the hide masks over one part of an outfit.
  • ExportOptions::part_hidden: export_outfit drops triangles whose vertices all lie in hidden regions, read from the part's _REGION stream. The report gives hidden_triangles per part.
  • Masks for the second "waist" layer are applied to the body-skin halves only. A garment's second region byte isn't that layer: on cs_tal_bu it removed a whole shoe. #354 had the same bug in the viewer; it's fixed there too (93196ab).
  • Test: cull_twins_and_masks_follow_the_hide_masks.

Verified:

  • cargo test --release --locked passes.
  • Exported cs_tal_bu and Kent Paul and rendered the GLBs. cs_tal_bu goes from large black t-shirt patches to clean. Kent Paul's t-shirt shows at the open collar. Both shoes are there.
  • Hidden triangles on cs_tal_bu: 2,854 of the t-shirt, 642 of the jeans (the waistband under the t-shirt, as the t-shirt's mask says), plus the skin under the clothes.

Not done:

  • The second mask list (hides_sub) isn't applied.
  • Exports with --parts (no --look) have no outfit data, so nothing is hidden there.
  • No in-game comparison.
**@⁠holdmysocks** on GitHub · 2026-11-26 05:27 UTC · [original](https://github.com/holdmysocks/SixNG/pull/358) `holdmysocks:claude/people-export-cull` → `master` · +105 −17 · 9 files · 7 commits · merged 2026-11-26 06:00 UTC Stacked on #354 (it includes #354's commits; merge #354 first). `sixng outfit --look N` now hides what's worn under something, the same way the viewer does since #354. Until now the export hid nothing at all, so a t-shirt under an open shirt showed through in large patches, and so did the skin. **Change:** - `pedlook::cull_twins`: the rule for which garments to draw as their `_cull_00` twin. These are the garments another part of the outfit hides regions of. The viewer now calls it too. - `pedlook::hidden_masks`: the hide masks over one part of an outfit. - `ExportOptions::part_hidden`: `export_outfit` drops triangles whose vertices all lie in hidden regions, read from the part's `_REGION` stream. The report gives `hidden_triangles` per part. - Masks for the second "waist" layer are applied to the body-skin halves only. A garment's second region byte isn't that layer: on `cs_tal_bu` it removed a whole shoe. #354 had the same bug in the viewer; it's fixed there too (`93196ab`). - Test: `cull_twins_and_masks_follow_the_hide_masks`. **Verified:** - `cargo test --release --locked` passes. - Exported `cs_tal_bu` and Kent Paul and rendered the GLBs. `cs_tal_bu` goes from large black t-shirt patches to clean. Kent Paul's t-shirt shows at the open collar. Both shoes are there. - Hidden triangles on `cs_tal_bu`: 2,854 of the t-shirt, 642 of the jeans (the waistband under the t-shirt, as the t-shirt's mask says), plus the skin under the clothes. **Not done:** - The second mask list (`hides_sub`) isn't applied. - Exports with `--parts` (no `--look`) have no outfit data, so nothing is hidden there. - No in-game comparison.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:30:11 +00:00
github manually merged commit 00c873e0fd into gh-pr/358/base 2026-11-26 20:30:12 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.