Hair export: keep settled hair just outside the body and garments #525

Manually merged
github merged 1 commit from github-bot/gh-525 into gh-pr/525/base 2026-11-28 03:19:58 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 03:06 UTC · original
holdmysocks:people/mandy-crown → master · +153 −6 · 2 files · 1 commits · merged 2026-11-28 03:17 UTC

Follows up the Mandy check. Her crown strays are gone on master; the hair settle in #494 most likely fixed them. The back render showed a different problem: hair tips cut off by her tank top.

Cause. The game's colliders (body and garment bounds) lie a few millimetres inside the cloth and skin. The settle puts guides on the collider surface, so the hair ends up just under the garment it rests on. On Mandy, 7 to 13 % of hair points near the top were inside it: typically 3 to 6 mm, at most 2 cm. Bare skin shows the same.

Fix (export only). The export now also takes the character's own body and garment meshes, leaving out the head, hair, eyes, teeth and hats. After the settle, and again after the strands are grown, any point up to 2.5 cm under a mesh moves 2 mm out along that mesh's normal. Each mesh is tested on its own nearest vertex, so a garment over skin still counts. Roots stay where they are. This is a display rule, not the game's.

  • Mandy: 1 to 2 % of points left inside. The back render shows the tips lying on the top instead of cut off. Her face and fringe are unchanged.
  • Jason: unchanged. His grooms carry no simulation data, so they aren't settled.
  • The export summary counts the moved points per piece (lifted_out_of_body), and the colliders note names the meshes.

The viewer settles with its own colliders and doesn't get this pass. Tests: core 406 (a new Surface test), gui 68.

**@⁠holdmysocks** on GitHub · 2026-11-28 03:06 UTC · [original](https://github.com/holdmysocks/SixNG/pull/525) `holdmysocks:people/mandy-crown` → `master` · +153 −6 · 2 files · 1 commits · merged 2026-11-28 03:17 UTC Follows up the Mandy check. Her crown strays are gone on master; the hair settle in #494 most likely fixed them. The back render showed a different problem: hair tips cut off by her tank top. **Cause.** The game's colliders (body and garment bounds) lie a few millimetres inside the cloth and skin. The settle puts guides on the collider surface, so the hair ends up just under the garment it rests on. On Mandy, 7 to 13 % of hair points near the top were inside it: typically 3 to 6 mm, at most 2 cm. Bare skin shows the same. **Fix (export only).** The export now also takes the character's own body and garment meshes, leaving out the head, hair, eyes, teeth and hats. After the settle, and again after the strands are grown, any point up to 2.5 cm under a mesh moves 2 mm out along that mesh's normal. Each mesh is tested on its own nearest vertex, so a garment over skin still counts. Roots stay where they are. This is a display rule, not the game's. - Mandy: 1 to 2 % of points left inside. The back render shows the tips lying on the top instead of cut off. Her face and fringe are unchanged. - Jason: unchanged. His grooms carry no simulation data, so they aren't settled. - The export summary counts the moved points per piece (`lifted_out_of_body`), and the colliders note names the meshes. The viewer settles with its own colliders and doesn't get this pass. Tests: core 406 (a new `Surface` test), gui 68.
The game's colliders (body and garment bounds) lie a few millimetres
inside the cloth and skin. Hair settled onto them ended under the
garment it rests on: on Mandy, 7 to 13 % of the hair points near her
tank top were inside it (3 to 6 mm, up to 2 cm), and the back render
showed the tips cut off by the top.

The export now also takes the character's own body and garment meshes
(not the head, hair, eyes, teeth or hats) as a surface. After the
settle, and again after the strands are grown, a point up to 2.5 cm
under a mesh is moved 2 mm out along that mesh's normal, each mesh
tested on its own nearest vertex, so a garment over skin counts. Roots
stay. A display rule, not the game's. Mandy: 1 to 2 % left inside.
The summary counts the moved points (lifted_out_of_body), and the
colliders note names the meshes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 03:08:50 +00:00
github-bot changed target branch from master to gh-pr/525/base 2026-11-28 03:19:57 +00:00
github manually merged commit 027d95b127 into gh-pr/525/base 2026-11-28 03:19:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.