Hair export: settle the guides against the body, as the viewer does #494

Manually merged
github merged 1 commit from github-bot/gh-494 into gh-pr/494/base 2026-11-27 19:15:17 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 19:04 UTC · original
holdmysocks:people/hair-export-settle → master · +179 −39 · 6 files · 1 commits · merged 2026-11-27 19:14 UTC

The character hair export (outfit --hair) grew its strands straight from the stored guides. The viewer settles the guides first: gravity, rest lengths, the pull back to the stored shape, and out of the body's colliders. As a result, exported long hair stood off the head and had frizzy, stray ends.

The export now builds the same colliders as the viewer, from the model it has just written. These are the round pieces and boxes of the rig's body bound and of each worn garment's bound, placed on the model's bind pose. Without a body bound, it falls back to the model's non-hair vertices. It then:

  • settles each groom's guides against those colliders,
  • keeps scalp hair under a hat inside the hat's crown,
  • and damps the style pass near the colliders (coat_with).

--hair-no-settle keeps the stored guides.

  • hairexport gains body_bound (moved from the viewer's body_tapers, which now calls it), glb_joints and character_colliders. It also gains Options::settle and a colliders argument on piece_with. Each piece's summary now says whether it settled and whether it had colliders.
  • The export's hat now includes its crown (with_crown), as in the viewer.
  • sixng-core now depends on glam (0.29, already used by the viewer).
  • The single-groom export (groom.rs) keeps its old behaviour.

I checked this on one character (look 0). The export found 76 round pieces and 4 boxes, from the body bound and 4 garment bounds. Three of her four scalp pieces settled. Her fourth scalp piece, her brows and her lashes store no simulation data and stay as stored, as in the viewer. In the Blender render the hair now hangs onto the shoulders and sits close to the head, and no strands come through the face. All tests pass.

**@⁠holdmysocks** on GitHub · 2026-11-27 19:04 UTC · [original](https://github.com/holdmysocks/SixNG/pull/494) `holdmysocks:people/hair-export-settle` → `master` · +179 −39 · 6 files · 1 commits · merged 2026-11-27 19:14 UTC The character hair export (`outfit --hair`) grew its strands straight from the stored guides. The viewer settles the guides first: gravity, rest lengths, the pull back to the stored shape, and out of the body's colliders. As a result, exported long hair stood off the head and had frizzy, stray ends. The export now builds the same colliders as the viewer, from the model it has just written. These are the round pieces and boxes of the rig's body bound and of each worn garment's bound, placed on the model's bind pose. Without a body bound, it falls back to the model's non-hair vertices. It then: - settles each groom's guides against those colliders, - keeps scalp hair under a hat inside the hat's crown, - and damps the style pass near the colliders (`coat_with`). `--hair-no-settle` keeps the stored guides. - `hairexport` gains `body_bound` (moved from the viewer's `body_tapers`, which now calls it), `glb_joints` and `character_colliders`. It also gains `Options::settle` and a `colliders` argument on `piece_with`. Each piece's summary now says whether it settled and whether it had colliders. - The export's hat now includes its crown (`with_crown`), as in the viewer. - `sixng-core` now depends on `glam` (0.29, already used by the viewer). - The single-groom export (`groom.rs`) keeps its old behaviour. I checked this on one character (look 0). The export found 76 round pieces and 4 boxes, from the body bound and 4 garment bounds. Three of her four scalp pieces settled. Her fourth scalp piece, her brows and her lashes store no simulation data and stay as stored, as in the viewer. In the Blender render the hair now hangs onto the shoulders and sits close to the head, and no strands come through the face. All tests pass.
The character hair export grew its strands from the stored guides, while
the viewer first settles them (gravity, rest lengths, the pull back to the
stored shape, out of the body's colliders). Exported long hair stood off
the head with frizzy, stray ends.

The export now builds the same colliders from the model it wrote: the
round pieces and boxes of the rig's body bound and of each worn garment's
bound, on the model's bind pose (else the model's non-hair vertices). It
settles each groom's guides against them, keeping scalp hair under a hat
inside its crown, and damps the style pass near them. --hair-no-settle
keeps the stored guides. Placing a body bound on the joints moves from
the viewer to hairexport (body_bound), so both share it; the export's hat
now has its crown, as in the viewer.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:09:36 +00:00
github-bot changed target branch from master to gh-pr/494/base 2026-11-27 19:15:13 +00:00
github manually merged commit 5af766011d into gh-pr/494/base 2026-11-27 19:15:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.