Hair under a hat: fills a strap opening, hangs on below the edge #428

Manually merged
github merged 1 commit from github-bot/gh-428 into gh-pr/428/base 2026-11-27 03:02:58 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 00:37 UTC · original
holdmysocks:claude/people-hat-hair → master · +69 −4 · 1 files · 1 commits · merged 2026-11-27 02:56 UTC

Hair under a hat: hair in a cap's strap opening fills it instead of showing as a thin net with scalp through it. A strand that leaves the hat below its edge keeps hanging instead of being pulled back under. The user noticed cs_jason's hair under his (backwards) cap looked cut off and patchy.

Cause:

  • An opening the hat encloses counts as closed, so hair there was pressed to just under the cap's surface. Through the opening it read as a sparse net.
  • When a segment of a strand from under the hat to a point below its edge crossed the hat, that point was pulled back under. Each later point then followed it, so the rest of the strand collapsed at the edge.

Change (Shell in groom.rs; used by the viewer and by the CLI hair export):

  • Hair in an enclosed opening may stand up to 1 cm out of it (OPENING_BULGE). The opening is still closed for the hat's pressing.
  • A point below the hat's edge (no hat behind it) is now tucked in toward the head, just far enough that the way to it doesn't cross the hat, and never closer than 3 mm over the head. The rest of the strand keeps hanging. The head's outermost point per direction is kept in the shell for this.

Verified:

  • cargo test --release --locked -p sixng-core --lib groom:: passes. The new test hair_below_the_hat_edge_keeps_hanging fails without the tuck (its tail is pulled under the hat) and passes with it.
  • cs_jason, front and side renders: the strap opening shows dark hair standing a little proud of the cap, with no scalp through it.
  • The tuck changes little on Jason (about 100 of 58,800 sampled pixels in the side view): his side hair already hung below the cap. The visible gain there is the opening.

Not done:

  • How the game keeps hair under hats is still not known. The outfit asks for the plain hair, so this stays a stand-in.
  • Only cs_jason was rendered.
**@⁠holdmysocks** on GitHub · 2026-11-27 00:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/428) `holdmysocks:claude/people-hat-hair` → `master` · +69 −4 · 1 files · 1 commits · merged 2026-11-27 02:56 UTC Hair under a hat: hair in a cap's strap opening fills it instead of showing as a thin net with scalp through it. A strand that leaves the hat below its edge keeps hanging instead of being pulled back under. The user noticed cs_jason's hair under his (backwards) cap looked cut off and patchy. **Cause:** - An opening the hat encloses counts as closed, so hair there was pressed to just under the cap's surface. Through the opening it read as a sparse net. - When a segment of a strand from under the hat to a point below its edge crossed the hat, that point was pulled back under. Each later point then followed it, so the rest of the strand collapsed at the edge. **Change** (`Shell` in groom.rs; used by the viewer and by the CLI hair export): - Hair in an enclosed opening may stand up to 1 cm out of it (`OPENING_BULGE`). The opening is still closed for the hat's pressing. - A point below the hat's edge (no hat behind it) is now tucked in toward the head, just far enough that the way to it doesn't cross the hat, and never closer than 3 mm over the head. The rest of the strand keeps hanging. The head's outermost point per direction is kept in the shell for this. **Verified:** - `cargo test --release --locked -p sixng-core --lib groom::` passes. The new test `hair_below_the_hat_edge_keeps_hanging` fails without the tuck (its tail is pulled under the hat) and passes with it. - cs_jason, front and side renders: the strap opening shows dark hair standing a little proud of the cap, with no scalp through it. - The tuck changes little on Jason (about 100 of 58,800 sampled pixels in the side view): his side hair already hung below the cap. The visible gain there is the opening. **Not done:** - How the game keeps hair under hats is still not known. The outfit asks for the plain hair, so this stays a stand-in. - Only cs_jason was rendered.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:39:51 +00:00
github-bot changed target branch from master to gh-pr/428/base 2026-11-27 03:02:56 +00:00
github manually merged commit 8c6b866630 into gh-pr/428/base 2026-11-27 03:02:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.