Viewer: the genitals stay under clothes #433

Manually merged
github merged 20 commits from github-bot/gh-433 into gh-pr/433/base 2026-11-27 03:03:16 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 01:48 UTC · original
holdmysocks:claude/people-genitals → master · +5520 −241 · 34 files · 20 commits · merged 2026-11-27 03:02 UTC

Viewer: the genitals no longer come through a character's clothes. The user saw it on cs_jason in his default tactical shorts; it also happened under his shower towel.

Cause:

  • The genitals are a separate skin mesh drawn over the body: an anatomical insert, added to the viewer in #384. The male one carries no vertex regions (all 0), so the shorts' hide mask on the lower-body skin layer couldn't reach it.
  • The fallback only hides skin lying just under a garment, and the insert stands out through the cloth.
  • A loose garment (the towel) leaves the skin under it in its mask, so even regions wouldn't hide the insert there.

Change (model_view.rs):

  • An insert without regions takes, per vertex, the region of the nearest body skin vertex of its layer. The hide masks then treat it like the skin around it.
  • An insert is hidden whole when a shown garment whose hide masks name the insert's layer lies over half or more of its vertices. This uses the same surface test as the skin-under-clothes pass, measured from 3 cm inside.
  • That garment-surface test moves into CoverGrid, shared by both passes. hide_covered_skin behaves as before.
  • Both passes add a viewer note.
  • PartFx gets insert (slot genitals or nipples).

Verified:

  • cargo test --release --locked -p sixng-gui passes.
  • cs_jason renders:
    • look 0 (tank top, tactical shorts): nothing shows through. Before, the genitals came through the front of the shorts.
    • look 7 (boxers): covered.
    • look 9 (shower towel): covered. Before, they came through the towel, on the neutral body as well.
  • cs_raina's nude look 1: the same 134 skin triangles hidden as before, and neither new note appears, so an uncovered insert is still drawn.

Not done:

  • How the game keeps the inserts under clothes isn't decoded. It may pick another _alt_ variant of the mesh, or use the second mask list (hides_sub). Both rules here are stand-ins based on distance.
  • Only these looks were rendered. The nipple inserts weren't checked under clothes.
**@⁠holdmysocks** on GitHub · 2026-11-27 01:48 UTC · [original](https://github.com/holdmysocks/SixNG/pull/433) `holdmysocks:claude/people-genitals` → `master` · +5520 −241 · 34 files · 20 commits · merged 2026-11-27 03:02 UTC Viewer: the genitals no longer come through a character's clothes. The user saw it on cs_jason in his default tactical shorts; it also happened under his shower towel. **Cause:** - The genitals are a separate skin mesh drawn over the body: an anatomical insert, added to the viewer in #384. The male one carries no vertex regions (all 0), so the shorts' hide mask on the lower-body skin layer couldn't reach it. - The fallback only hides skin lying just under a garment, and the insert stands out through the cloth. - A loose garment (the towel) leaves the skin under it in its mask, so even regions wouldn't hide the insert there. **Change** (model_view.rs): - An insert without regions takes, per vertex, the region of the nearest body skin vertex of its layer. The hide masks then treat it like the skin around it. - An insert is hidden whole when a shown garment whose hide masks name the insert's layer lies over half or more of its vertices. This uses the same surface test as the skin-under-clothes pass, measured from 3 cm inside. - That garment-surface test moves into `CoverGrid`, shared by both passes. `hide_covered_skin` behaves as before. - Both passes add a viewer note. - `PartFx` gets `insert` (slot genitals or nipples). **Verified:** - `cargo test --release --locked -p sixng-gui` passes. - cs_jason renders: - look 0 (tank top, tactical shorts): nothing shows through. Before, the genitals came through the front of the shorts. - look 7 (boxers): covered. - look 9 (shower towel): covered. Before, they came through the towel, on the neutral body as well. - cs_raina's nude look 1: the same 134 skin triangles hidden as before, and neither new note appears, so an uncovered insert is still drawn. **Not done:** - How the game keeps the inserts under clothes isn't decoded. It may pick another `_alt_` variant of the mesh, or use the second mask list (`hides_sub`). Both rules here are stand-ins based on distance. - Only these looks were rendered. The nipple inserts weren't checked under clothes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:09:52 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-27 02:37 UTC · original

Checked since: the nipple insert under Lucia's tops (looks 0, 2, 4, 6) doesn't come through, on the neutral body and at --body 1,1. No change needed for it.

**@⁠holdmysocks** on GitHub · 2026-11-27 02:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/433#issuecomment-7208290024) Checked since: the nipple insert under Lucia's tops (looks 0, 2, 4, 6) doesn't come through, on the neutral body and at `--body 1,1`. No change needed for it.
# Conflicts:
#	crates/sixng-gui/src/model_view.rs
github-bot changed target branch from master to gh-pr/433/base 2026-11-27 03:03:15 +00:00
github manually merged commit 67031d8e56 into gh-pr/433/base 2026-11-27 03:03:16 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.