Fur: read an animal's fur grooms from the game instead of guessing them #278

Manually merged
github merged 5 commits from gh-pr/278/head into gh-pr/278/base 2026-11-26 20:23:55 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 14:08 UTC · original
holdmysocks:claude/people-fur-links → master · +120 −23 · 4 files · 5 commits · merged 2026-11-25 14:52 UTC

What

Animal fur used the same kind of guess hair did: archive order, piece counts and how close the strand roots sit to the skin. The link is stored, the same way as for hair, and this reads it.

  1. A fur variant's asset GUID is the name id of its placeholder drawable (<root>_fur_body_short_00, no _full).
  2. The piece table lists the variant's pieces by the name ids of their files.
  3. The archive's table of contents gives every file its name id.

570 fur variants are in the table. They list 3,149 pieces; 3,148 of them are groom files of the archive (one head variant of a costume character lists one piece that is not). 13 fur placeholders are not in the table (legendary and a few rare variants): they have no fur files.

Changes

  • furlink::link_exact builds an animal's link from the stored data when the table of contents can be read. Every variant gets exactly its listed pieces. The walk stays as the fallback, and its note now says it is a guess.
  • FurLink.read says which of the two was used. Links cached before this field existed read as inferred; the cache version is bumped, so links rebuild once.
  • Viewer: the fur panel says when the pieces are read from the game, and drops the agreement line then.
  • CLI: grooms --animal writes whether the link was read or inferred to <root>.fur.json; help text updated.
  • README: the groom row no longer says grooms are not linked.

Checked

Five animals, old guess against the stored link, pieces per variant:

Animal Variants Same pieces as the guess
Feral cat 16 all but one extra head piece
American black bear 2 all
Boxer 4 all
White-tailed deer 12 22 of 69
Coyote 6 0 of 29

Rendered all five on the RTX 4080. The coyote showed sparse, spotted fur from another animal; it now has its own coat and bushy tail. The cat looks the same, as expected. cargo test -p sixng-core: 273 passed (new test: an old cached link reads as inferred).

Not done

  • LOD chains of fur pieces are still attached by bones and strand counts, as for hair.
  • Fur variants other than the default (blood, dirt, corpse) were not rendered.
  • The walk's agreement score is no longer shown for read links, so a wrong read would not be flagged; none was seen.
**@⁠holdmysocks** on GitHub · 2026-11-25 14:08 UTC · [original](https://github.com/holdmysocks/SixNG/pull/278) `holdmysocks:claude/people-fur-links` → `master` · +120 −23 · 4 files · 5 commits · merged 2026-11-25 14:52 UTC ## What Animal fur used the same kind of guess hair did: archive order, piece counts and how close the strand roots sit to the skin. The link is stored, the same way as for hair, and this reads it. ## The stored link 1. A fur variant's asset GUID is the name id of its placeholder drawable (`<root>_fur_body_short_00`, no `_full`). 2. The piece table lists the variant's pieces by the name ids of their files. 3. The archive's table of contents gives every file its name id. 570 fur variants are in the table. They list 3,149 pieces; 3,148 of them are groom files of the archive (one head variant of a costume character lists one piece that is not). 13 fur placeholders are not in the table (legendary and a few rare variants): they have no fur files. ## Changes - `furlink::link_exact` builds an animal's link from the stored data when the table of contents can be read. Every variant gets exactly its listed pieces. The walk stays as the fallback, and its note now says it is a guess. - `FurLink.read` says which of the two was used. Links cached before this field existed read as inferred; the cache version is bumped, so links rebuild once. - Viewer: the fur panel says when the pieces are read from the game, and drops the agreement line then. - CLI: `grooms --animal` writes whether the link was read or inferred to `<root>.fur.json`; help text updated. - README: the groom row no longer says grooms are not linked. ## Checked Five animals, old guess against the stored link, pieces per variant: | Animal | Variants | Same pieces as the guess | |---|---|---| | Feral cat | 16 | all but one extra head piece | | American black bear | 2 | all | | Boxer | 4 | all | | White-tailed deer | 12 | 22 of 69 | | Coyote | 6 | 0 of 29 | Rendered all five on the RTX 4080. The coyote showed sparse, spotted fur from another animal; it now has its own coat and bushy tail. The cat looks the same, as expected. `cargo test -p sixng-core`: 273 passed (new test: an old cached link reads as inferred). ## Not done - LOD chains of fur pieces are still attached by bones and strand counts, as for hair. - Fur variants other than the default (blood, dirt, corpse) were not rendered. - The walk's agreement score is no longer shown for read links, so a wrong read would not be flagged; none was seen.
The link from a hair asset to its strand grooms is stored after all,
through name ids:

- an asset's GUID is the name id (first half of MurmurHash3 x64 128) of
  its placeholder drawable's name;
- the piece table lists the asset's pieces by the name ids of their
  files (placeholder name without _full, then a piece word);
- the archive's table of contents gives every file its name id (column
  73bcb72dce74f11f).

hairlink now builds the table from these when the table of contents can
be read: 878 hair, beard, brow, lash and body-hair assets, in seconds.
The inferred walk stays as the fallback and is marked as such. Against
the exact table the walk was often wrong, also at a high probability.

Viewer: an exact link is kept whole (no on-head filter, no percentage),
and linked body hair still starts hidden.

Grooms: a piece that stores only clump strands (first count 0 in every
root triangle) grew no strands; it now grows from its second count.
Fur uses the same stored link as people's hair: a fur variant's asset
GUID is the name id of its placeholder (<root>_fur_<slot>_<variant>),
the piece table lists its pieces by the name ids of their files, and the
archive's table of contents gives every file its id. 570 fur variants
list 3,149 pieces; 3,148 are groom files of the archive.

furlink::link_exact builds an animal's link from these when the table of
contents can be read; the walk over archive order and skin distance
stays as the fallback. The cache version is bumped.

Against the exact link the walk was right for the cat, bear and boxer,
but gave the coyote none of its own pieces and the white-tailed deer
mostly wrong ones.

Viewer and CLI: the fur panel and <root>.fur.json say whether the link
was read or inferred.
# Conflicts:
#	README.md
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:23:54 +00:00
github manually merged commit 85be6dc7c0 into gh-pr/278/base 2026-11-26 20:23:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.