Outfit export: the genitals stay under clothes #451

Manually merged
github merged 16 commits from github-bot/gh-451 into gh-pr/451/base 2026-11-27 05:54:59 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 04:12 UTC · original
holdmysocks:claude/people-export-inserts → master · +3108 −210 · 35 files · 16 commits · merged 2026-11-27 05:54 UTC

Outfit export: the genitals stay under clothes. In sixng outfit cs_jason --look 0, his genitals insert came through the tactical shorts. #433 fixed this in the viewer only.

Cause: the same as in the viewer.

  • The male genitals mesh carries no vertex regions (all 0), so the shorts' hide mask on the lower-body skin layer never reached it.
  • A loose garment (the towel) leaves the skin under it in its mask, so even regions wouldn't hide the insert there.

Change:

  • ExportOptions::part_layers: per drawable, its hide-mask layer, whether it's an insert (pedlook::is_skin_insert) or a garment, and the layers its masks name. sixng outfit fills it from the look's parts, next to part_hidden.
  • outfit::hide_inserts, run after all parts are loaded. These are the viewer's two rules from #433:
    • An insert vertex without a region takes the region of the nearest body-skin vertex of its layer. Then the hide masks of that layer apply to it.
    • An insert goes whole when a garment that hides its layer lies over half or more of its vertices. The surface test is the same as the viewer's: within 9 mm of the line along the normal, from 30 mm inside to 50 mm outside.
  • The part report gains insert (regions inherited, masked and covered triangles). hidden_triangles and triangles include them.
  • New test inserts_stay_under_clothes. Every ExportOptions literal gets part_layers: Default::default().

Verified:

  • cargo test --release --locked -p sixng-core -p sixng-gui -p sixng-cli --lib --bins passes.
  • sixng outfit cs_jason --look 0:
    • bodygenitalsgen_mr1_000_regular_ws00_full_alt_00: 246 vertices take a region, and all 352 triangles go under the shorts' mask.
    • Loaded back into the viewer, nothing shows through the shorts.
  • The watch in that export still stands on the floor; #448 fixes that separately.
**@⁠holdmysocks** on GitHub · 2026-11-27 04:12 UTC · [original](https://github.com/holdmysocks/SixNG/pull/451) `holdmysocks:claude/people-export-inserts` → `master` · +3108 −210 · 35 files · 16 commits · merged 2026-11-27 05:54 UTC Outfit export: the genitals stay under clothes. In `sixng outfit cs_jason --look 0`, his genitals insert came through the tactical shorts. #433 fixed this in the viewer only. **Cause:** the same as in the viewer. - The male genitals mesh carries no vertex regions (all 0), so the shorts' hide mask on the lower-body skin layer never reached it. - A loose garment (the towel) leaves the skin under it in its mask, so even regions wouldn't hide the insert there. **Change:** - `ExportOptions::part_layers`: per drawable, its hide-mask layer, whether it's an insert (`pedlook::is_skin_insert`) or a garment, and the layers its masks name. `sixng outfit` fills it from the look's parts, next to `part_hidden`. - `outfit::hide_inserts`, run after all parts are loaded. These are the viewer's two rules from #433: - An insert vertex without a region takes the region of the nearest body-skin vertex of its layer. Then the hide masks of that layer apply to it. - An insert goes whole when a garment that hides its layer lies over half or more of its vertices. The surface test is the same as the viewer's: within 9 mm of the line along the normal, from 30 mm inside to 50 mm outside. - The part report gains `insert` (regions inherited, masked and covered triangles). `hidden_triangles` and `triangles` include them. - New test `inserts_stay_under_clothes`. Every `ExportOptions` literal gets `part_layers: Default::default()`. **Verified:** - `cargo test --release --locked -p sixng-core -p sixng-gui -p sixng-cli --lib --bins` passes. - `sixng outfit cs_jason --look 0`: - `bodygenitalsgen_mr1_000_regular_ws00_full_alt_00`: 246 vertices take a region, and all 352 triangles go under the shorts' mask. - Loaded back into the viewer, nothing shows through the shorts. - The watch in that export still stands on the floor; #448 fixes that separately.
An insert without regions takes the region of the nearest body skin vertex of its layer, so the worn items' hide masks reach it, and it goes whole when a garment that hides its layer lies over most of it (the viewer's rules from #433). sixng outfit passes each part's layer facts in ExportOptions::part_layers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:15:27 +00:00
# Conflicts:
#	crates/sixng-core/src/outfit.rs
# Conflicts:
#	crates/sixng-cli/src/main.rs
#	crates/sixng-core/src/export.rs
#	crates/sixng-core/src/headdelta.rs
#	crates/sixng-core/src/outfit.rs
#	crates/sixng-gui/src/livery_ui.rs
#	crates/sixng-gui/src/main.rs
#	crates/sixng-gui/src/map3d.rs
github-bot changed target branch from master to gh-pr/451/base 2026-11-27 05:54:58 +00:00
github manually merged commit b3b1b96610 into gh-pr/451/base 2026-11-27 05:54:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.