People: hair stays under a hat #144

Manually merged
github merged 3 commits from gh-pr/144/head into gh-pr/144/base 2026-11-26 20:13:09 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 12:38 UTC · original
holdmysocks:claude/people-hats → master · +212 −3 · 3 files · 3 commits · merged 2026-11-24 12:49 UTC

What changes

  • In the viewer, scalp hair no longer comes through a hat. Strand points that lie beyond the hat's lining are pulled to 3 mm under it.
  • An opening the hat encloses (the gap over a cap's strap) counts as closed; there the hair lies on the scalp.
  • Brows, beards and body hair are not touched.
  • The Parts notes say this is a stand-in, not the game's method.

Why a stand-in

  • Hair items have named states (hathairalt, maskhairalt, hairhidden), each with its own hair asset, but outfits with a hat do not ask for them: of the 6,886 outfits with a hat and hair, 6,840 ask for the plain hair state and none asks for the hat or hidden state.
  • No stored rule was found that says how the game keeps hair under a hat, so that happens at run time.

Checked

  • Workspace tests pass, with a new unit test for the pressing and the closed opening.
  • Rendered a cap, sun hat, fedora, cowboy hat and beanie on two characters; the cap again after merging newest master.

Not covered

  • Only the neutral viewer pose was rendered; hats with a posed or animated head were not.
  • Exports are unchanged: the rule applies to the viewer's strand hair only.
**@⁠holdmysocks** on GitHub · 2026-11-24 12:38 UTC · [original](https://github.com/holdmysocks/SixNG/pull/144) `holdmysocks:claude/people-hats` → `master` · +212 −3 · 3 files · 3 commits · merged 2026-11-24 12:49 UTC ## What changes - In the viewer, scalp hair no longer comes through a hat. Strand points that lie beyond the hat's lining are pulled to 3 mm under it. - An opening the hat encloses (the gap over a cap's strap) counts as closed; there the hair lies on the scalp. - Brows, beards and body hair are not touched. - The Parts notes say this is a stand-in, not the game's method. ## Why a stand-in - Hair items have named states (`hathairalt`, `maskhairalt`, `hairhidden`), each with its own hair asset, but outfits with a hat do not ask for them: of the 6,886 outfits with a hat and hair, 6,840 ask for the plain hair state and none asks for the hat or hidden state. - No stored rule was found that says how the game keeps hair under a hat, so that happens at run time. ## Checked - Workspace tests pass, with a new unit test for the pressing and the closed opening. - Rendered a cap, sun hat, fedora, cowboy hat and beanie on two characters; the cap again after merging newest master. ## Not covered - Only the neutral viewer pose was rendered; hats with a posed or animated head were not. - Exports are unchanged: the rule applies to the viewer's strand hair only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:13:07 +00:00
github manually merged commit f184275edc into gh-pr/144/base 2026-11-26 20:13:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.