Hair export: grown strands in model exports, as Blender hair curves #312
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!312
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/312/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 21:17 UTC · original
holdmysocks:issue-146→master· +636 −8 · 7 files · 2 commits · merged 2026-11-25 21:31 UTCFor #146: model exports now carry the full strand hair, not only the guide strands, in a form Blender turns into hair curves. The README also gains a section on how the game grows the strands.
Export
sixng outfit <character> --hairwrites<out>.hair.glbbeside the model, in the same space. Each piece (hair, brows, lashes and beard of the outfit--lookpicks) holds the strand set grown from the guides (Groom::coat, the generation and clumping from #304) as line strips, plus the guides as<piece>_guides.TEXCOORD_0), its width in metres (_WIDTH), its clump (_CLUMP, 0 = none) and its colour variant (_VARIANT). Mesh extras give points per strand, slot, placeholder, bones and groom offset.--hair-density,--hair-max(strands per piece) and--hair-points(resampled along the strand). Also--hair-slots(e.g.chesthairfull,all),--hair-style REGEXfor another style or beard of the character, and--hair-no-guides.sixng grooms --full, and with it the viewer's "Export shown grooms" button, writes the same attributes.Coatnow records each strand's clump. This is the only change to the generator code.Blender
scripts/blender_hair_curves.pymakes one hair curves object per piece, withradius,clump,variantandroot_uv.--model, each object is parented to the head bone and gets the head mesh as its surface.surface_uv_coordinatecomes from the head mesh under each root, because the groom's own root UVs do not follow the head's UV map.Checked
player_story000_01 --look 0): 11 pieces, 146,441 strands, a 23 MB file, about 15 s.Not in yet: curl and noise (in progress separately), pressing the hair under hats, and colour (the script uses a plain hair BSDF).