Grooms: export the full strand set, and document how it is grown #173

Manually merged
github merged 4 commits from gh-pr/173/head into gh-pr/173/base 2026-11-26 20:15:19 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 15:52 UTC · original
holdmysocks:claude/people-full-hair → master · +169 −11 · 4 files · 4 commits · merged 2026-11-24 16:16 UTC

For #146 (full hair support).

What changes

  • sixng grooms --full writes the full strand set instead of the guide strands alone: the strands each groom stores per root triangle, grown between its three guides. --density 0..1 writes a share of them.
  • Beside each GLB it writes <offset>.growth.json: the root triangles, the four stored counts per triangle, the strand width and the 16-step taper. That is what a rebuild in Blender or elsewhere needs.
  • sixng grooms --animal <root> writes the fur of one animal: the grooms of its default body and head fur, in the animal's model space, with <root>.fur.json (variants, grooms, agreement score of the link).
  • index.jsonl gains stored_strands, written_strands and strand_width_m.
  • The README documents the method step by step, and what is not the game's.
  • Grooms that store no counts keep their guides.

Covered for people

  • Full strands for every hair, beard, brow and body-hair groom (--full).
  • No per-character option: which grooms belong to a character is the viewer's inferred hair link. Export the grooms the viewer's Hair panel lists for the character with --only.
  • sixng outfit still leaves strand hair out of the character GLB.

Covered for animals

  • Full strands for fur grooms: it is the same groom format and the same code path.
  • Fur by animal (--animal), using the existing inferred fur link (archive order, piece counts, distance to the skin; no resource stores it). The fur is separate GLBs in the animal's model space, not merged into the outfit GLB, and it is not skinned to the skeleton.
  • sixng outfit <animal> still drops the 3-vertex fur placeholders.

Numbers

  • One hair piece: 154 guides -> 29,347 strands. A face groom: 279 -> 3,905. An animal coat piece: 3,517 -> 34,390.
  • One cat with --animal --full --density 0.3: 12 grooms, 110,914 strands, link agreement 1.0; strand roots lie a median 5 mm from the vertices of the mesh that outfit exports for it.

Checked

  • Workspace tests pass, with a new test of the grown set (counts, strands inside their triangle, width taper, root UV).
  • Exported four grooms with --full (two hair pieces, a face groom, an animal coat piece); written counts equal stored counts.
  • Blender 5.3 imports the face groom as 19,525 vertices and 15,620 edges with the _WIDTH attribute, and renders it and the hair pieces as curves.

Not covered

  • Where in a root triangle each strand sits is random here (fixed seed). The game's own placement, clumping, curl and noise are not decoded, so the result is smoother and more even than in game. Two of the four stored counts concern clumps and are written out but not used.
  • --animal was run on one animal only.
  • Files get large: 28 MB for the 29,347-strand hair piece.
**@⁠holdmysocks** on GitHub · 2026-11-24 15:52 UTC · [original](https://github.com/holdmysocks/SixNG/pull/173) `holdmysocks:claude/people-full-hair` → `master` · +169 −11 · 4 files · 4 commits · merged 2026-11-24 16:16 UTC For #146 (full hair support). ## What changes - `sixng grooms --full` writes the full strand set instead of the guide strands alone: the strands each groom stores per root triangle, grown between its three guides. `--density 0..1` writes a share of them. - Beside each GLB it writes `<offset>.growth.json`: the root triangles, the four stored counts per triangle, the strand width and the 16-step taper. That is what a rebuild in Blender or elsewhere needs. - `sixng grooms --animal <root>` writes the fur of one animal: the grooms of its default body and head fur, in the animal's model space, with `<root>.fur.json` (variants, grooms, agreement score of the link). - `index.jsonl` gains `stored_strands`, `written_strands` and `strand_width_m`. - The README documents the method step by step, and what is not the game's. - Grooms that store no counts keep their guides. ## Covered for people - Full strands for every hair, beard, brow and body-hair groom (`--full`). - No per-character option: which grooms belong to a character is the viewer's inferred hair link. Export the grooms the viewer's Hair panel lists for the character with `--only`. - `sixng outfit` still leaves strand hair out of the character GLB. ## Covered for animals - Full strands for fur grooms: it is the same groom format and the same code path. - Fur by animal (`--animal`), using the existing inferred fur link (archive order, piece counts, distance to the skin; no resource stores it). The fur is separate GLBs in the animal's model space, not merged into the `outfit` GLB, and it is not skinned to the skeleton. - `sixng outfit <animal>` still drops the 3-vertex fur placeholders. ## Numbers - One hair piece: 154 guides -> 29,347 strands. A face groom: 279 -> 3,905. An animal coat piece: 3,517 -> 34,390. - One cat with `--animal --full --density 0.3`: 12 grooms, 110,914 strands, link agreement 1.0; strand roots lie a median 5 mm from the vertices of the mesh that `outfit` exports for it. ## Checked - Workspace tests pass, with a new test of the grown set (counts, strands inside their triangle, width taper, root UV). - Exported four grooms with `--full` (two hair pieces, a face groom, an animal coat piece); written counts equal stored counts. - Blender 5.3 imports the face groom as 19,525 vertices and 15,620 edges with the `_WIDTH` attribute, and renders it and the hair pieces as curves. ## Not covered - Where in a root triangle each strand sits is random here (fixed seed). The game's own placement, clumping, curl and noise are not decoded, so the result is smoother and more even than in game. Two of the four stored counts concern clumps and are written out but not used. - `--animal` was run on one animal only. - Files get large: 28 MB for the 29,347-strand hair piece.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:15:17 +00:00
github manually merged commit d4b44b3822 into gh-pr/173/base 2026-11-26 20:15:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.