People: skin under clothes by the game's hide masks, hair state under headwear #249

Manually merged
github merged 1 commit from gh-pr/249/head into gh-pr/249/base 2026-11-26 20:21:30 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 06:12 UTC · original
holdmysocks:claude/people-fit-audit → master · +253 −32 · 15 files · 1 commits · merged 2026-11-25 06:31 UTC

What

How the game hides skin under clothes, read from the data and used in the viewer; and the hair asset worn under headwear.

Skin under clothes

  • The hide masks of a wardrobe item are 256-bit sets. The meta decoder read only the first 64 bits of a bit set; it now prints the full width.
  • Mesh stream 13 is exported as _REGION. On people its first byte is the vertex's region (1 to 255); the other bytes are 0 on the skin meshes.
  • Every item state names a layer for its own vertices and lists, per layer, the regions it hides. Region n is bit n - 1. ped-look now gives layer, hides and hides_sub per part.
  • The body is now the nude_cull skin mesh, the one that carries regions (the _full one has none).
  • Viewer: a skin triangle is dropped when all its vertices are in regions that a worn item hides on the skin's layer. The distance test stays for skin meshes without regions and for clothes under clothes.

Hair under headwear

  • A hair item has states that name another hair asset (hathairalt, helmethairalt, beaniehairalt, bandanahairalt, maskhairalt, hoodiehairalt, hairhidden). With such headwear in the outfit, the state of that name is used when the item has it (ped-look: hair_state, state_guids).

Checked

  • One woman's 272 outfits against her skin meshes: long sleeves hide 94 to 100 % of the arm vertices, T-shirts 60 to 88 %, tank tops under 20 %, long trousers all of the hips and thighs, a full-body suit everything but neck, hands and feet.
  • Viewer renders of 8 outfits, old build against this one: no skin shows through, same picture as the distance test gave.
  • Hair: 5 of the 272 outfits switch (4 helmets to the hidden state, 1 cap to its alternate asset).
  • cargo test -p sixng-core: 232 pass.

Not done

  • The second mask list (hides_sub, keys 1 to 3) is not decoded and not applied.
  • Clothes hidden by clothes: garments have _cull_00 twins that carry regions, the _full ones shown do not. Using the twins without the second list made a bra show through a tank top, so that part is left out.
  • Which hair state the game picks is inferred from the state names. Six state names are not resolved; one more is (showerdown, a hairstyle, not headwear).
  • The alternate hair assets only draw when the hair-to-groom link is confident enough; for the cap outfit checked it is not, so the head shows no hair there (as before).
**@⁠holdmysocks** on GitHub · 2026-11-25 06:12 UTC · [original](https://github.com/holdmysocks/SixNG/pull/249) `holdmysocks:claude/people-fit-audit` → `master` · +253 −32 · 15 files · 1 commits · merged 2026-11-25 06:31 UTC ## What How the game hides skin under clothes, read from the data and used in the viewer; and the hair asset worn under headwear. **Skin under clothes** - The hide masks of a wardrobe item are 256-bit sets. The meta decoder read only the first 64 bits of a bit set; it now prints the full width. - Mesh stream 13 is exported as `_REGION`. On people its first byte is the vertex's region (1 to 255); the other bytes are 0 on the skin meshes. - Every item state names a layer for its own vertices and lists, per layer, the regions it hides. Region n is bit n - 1. `ped-look` now gives `layer`, `hides` and `hides_sub` per part. - The body is now the `nude_cull` skin mesh, the one that carries regions (the `_full` one has none). - Viewer: a skin triangle is dropped when all its vertices are in regions that a worn item hides on the skin's layer. The distance test stays for skin meshes without regions and for clothes under clothes. **Hair under headwear** - A hair item has states that name another hair asset (`hathairalt`, `helmethairalt`, `beaniehairalt`, `bandanahairalt`, `maskhairalt`, `hoodiehairalt`, `hairhidden`). With such headwear in the outfit, the state of that name is used when the item has it (`ped-look`: `hair_state`, `state_guids`). ## Checked - One woman's 272 outfits against her skin meshes: long sleeves hide 94 to 100 % of the arm vertices, T-shirts 60 to 88 %, tank tops under 20 %, long trousers all of the hips and thighs, a full-body suit everything but neck, hands and feet. - Viewer renders of 8 outfits, old build against this one: no skin shows through, same picture as the distance test gave. - Hair: 5 of the 272 outfits switch (4 helmets to the hidden state, 1 cap to its alternate asset). - `cargo test -p sixng-core`: 232 pass. ## Not done - The second mask list (`hides_sub`, keys 1 to 3) is not decoded and not applied. - Clothes hidden by clothes: garments have `_cull_00` twins that carry regions, the `_full` ones shown do not. Using the twins without the second list made a bra show through a tank top, so that part is left out. - Which hair state the game picks is inferred from the state names. Six state names are not resolved; one more is (`showerdown`, a hairstyle, not headwear). - The alternate hair assets only draw when the hair-to-groom link is confident enough; for the cap outfit checked it is not, so the head shows no hair there (as before).
- meta decoder: bit sets are printed at their full width (the hide masks
  are 256 bits; only the first 64 were read)
- mesh stream 13 is exported as _REGION; on people its first byte is the
  vertex's region
- wardrobe / ped-look: each item's layer, its 256-bit hide masks per
  layer, and the asset of each hair state
- the nude_cull skin meshes (the ones with regions) are the body
- viewer: skin triangles are dropped when a worn item's mask hides their
  region on the skin's layer; the distance test stays for skin without
  regions and for clothes under clothes
- hair under a hat, helmet, beanie, bandana or mask takes the item's
  state of that name when it has one
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:21:28 +00:00
github manually merged commit deadb0551f into gh-pr/249/base 2026-11-26 20:21:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.