Hair export: head UV set in grooms --full and the viewer's groom export #342

Manually merged
github merged 2 commits from gh-pr/342/head into gh-pr/342/base 2026-11-26 20:28:58 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 02:33 UTC · original
holdmysocks:hair-head-uv → master · +81 −33 · 6 files · 2 commits · merged 2026-11-26 03:03 UTC

Follow-up to #326 for #146: the other hair export paths now also name the head UV set each groom's root UVs are in, so the Blender script attaches their hair through the game's own UVs as well.

Changes

  • sixng grooms --full --head <model.glb>: each grown groom names its head UV set (head_uv_set), matched against that head. The head can be a model outfit wrote, or a head drawable exported on its own.
  • The viewer's "Export shown grooms" button does the same, matched against the shown character's head as the viewer exported it. Its hover text no longer says clumping, curl and noise are missing.
  • Grown grooms carry their bones, so the script can parent them to the head bone.
  • scripts/blender_hair_curves.py takes several hair files (one per groom).

Why it has to be matched
The set can't be told from the kind of piece. On five characters, most scalp pieces are in set 3 and face pieces in set 2, but some scalp pieces (ponytails, long hair) are in set 0, and a few match no set of the head they are shown on. The README says so.

Checked

  • grooms --full --head on five of Jason's grooms gives the same sets and the same placement in Blender 5.3 as outfit --hair: the head point at each strand's UV is a median 0.1 to 4.2 mm from its root.
  • The viewer's --export-hair on Jason names a set for all 11 grooms.
**@⁠holdmysocks** on GitHub · 2026-11-26 02:33 UTC · [original](https://github.com/holdmysocks/SixNG/pull/342) `holdmysocks:hair-head-uv` → `master` · +81 −33 · 6 files · 2 commits · merged 2026-11-26 03:03 UTC Follow-up to #326 for #146: the other hair export paths now also name the head UV set each groom's root UVs are in, so the Blender script attaches their hair through the game's own UVs as well. **Changes** - `sixng grooms --full --head <model.glb>`: each grown groom names its head UV set (`head_uv_set`), matched against that head. The head can be a model `outfit` wrote, or a head drawable exported on its own. - The viewer's "Export shown grooms" button does the same, matched against the shown character's head as the viewer exported it. Its hover text no longer says clumping, curl and noise are missing. - Grown grooms carry their bones, so the script can parent them to the head bone. - `scripts/blender_hair_curves.py` takes several hair files (one per groom). **Why it has to be matched** The set can't be told from the kind of piece. On five characters, most scalp pieces are in set 3 and face pieces in set 2, but some scalp pieces (ponytails, long hair) are in set 0, and a few match no set of the head they are shown on. The README says so. **Checked** - `grooms --full --head` on five of Jason's grooms gives the same sets and the same placement in Blender 5.3 as `outfit --hair`: the head point at each strand's UV is a median 0.1 to 4.2 mm from its root. - The viewer's `--export-hair` on Jason names a set for all 11 grooms.
- grooms --full --head <model.glb> names each grown groom's head UV set,
  matched against that head (a model outfit wrote, or a head drawable
  exported on its own)
- The viewer's Export shown grooms button matches against the shown
  character's head as the viewer exported it
- Grown grooms carry their bones, so the Blender script can parent them
- The Blender script takes several hair files (one per groom)
- README: the set cannot be told from the kind of piece
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:28:57 +00:00
github manually merged commit cb63c0a06a into gh-pr/342/base 2026-11-26 20:28:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.