Animals: fur from the strand grooms, linked by archive order #26
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!26
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/26/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-23 02:59 UTC · original
holdmysocks:claude/animal-fur→master· +879 −12 · 7 files · 1 commits · merged 2026-11-23 03:00 UTCWhat was wrong
Animals showed no fur. Nothing readable says which strand grooms belong to which animal (the archive's name table is encrypted).
How the grooms are placed
<root>_fur_<slot>_<variant>) carries the GUID of a fur asset (41acf8eb;partskinnow keeps it).{u64 GUID, 16 zero bytes, pointer}leading to{u32 byte length, u64 ids}. The ids occur nowhere else, but give each variant's piece count and which pieces variants of one animal share.The walk (
furlink::align) allows for placeholders without a preset (66 of 495, no count), counts off by one, and variants whose files are not in the archive. It settles them by how close each piece's roots are to the skin and to the right part (body or head). Animals that share a skin are walked together. Results are cached in<work>/index/fur_links.json.Groom pieces: LODs are grouped by bone set rather than bone order, and a groom may join one of the last three pieces, because LOD names sort apart (
x,x_fluff,x_fluff_lod1,x_lod1). 20,010 grooms give 5,599 pieces.Viewer
Checked
cargo test -p sixng-core: 96 pass, 4 of them new (furlink).Not known, not done
Research examples
groomrootsandpartskins;SIXNG_DEBUG_FUR=1prints the run and the expected variants.Animals showed no fur: nothing readable says which grooms belong to which animal. New module furlink places them from four facts: - a fur preset (named after the 3-vertex placeholder drawable <root>_fur_<slot>_<variant>) carries the GUID of a fur asset (field 41acf8eb; partskin now keeps it); - an unnamed resource after the groom block maps each GUID to its groom piece ids (256 groups of 16 control bytes and 16 slots {u64 GUID, 16 zero bytes, pointer} -> {u32 byte length, u64 ids}). The ids occur nowhere else, but give each variant's piece count and which pieces the variants of one animal share; - packs.rpf stores resources in name order (24,418 of 24,422 adjacent named drawables ascend), and grooms follow their fur asset's name: an animal's grooms are one run, variants in name order, a shared piece stored once with the first variant that lists it; - strand roots lie on the skin, which finds the run. The walk allows for placeholders without a preset (no count), counts off by one and variants whose files are not in the archive, and settles them by how close each piece's roots are to the skin and to the right part (body or head). Animals that share a skin are walked together. Results are cached in <work>/index/fur_links.json. Groom pieces: LODs are now grouped by bone set rather than bone order, and a groom may join one of the last three pieces (LOD names sort apart: x, x_fluff, x_fluff_lod1, x_lod1). Viewer: an animal opens with its medium (else short) body and head fur; the hair panel lists the variants. Automatic fur is drawn 3 mm wide and each strand takes the colour of the skin texture under its root (both display choices). Checked on 11 animals: every piece the walk placed lies near the skin on its own part for the two cats (229 of 229), the boar (97 of 97), the chimpanzee (49 of 49) and the boxer (53 of 53); 83 to 97 % for the bull, the coyote, the bear and the Yorkshire terrier. Not known: whether the ids in the table are in file order (assumed when variants share only some pieces); human hair (not tried); fur colour and density as the game draws them (only guide strands are decoded). Research examples: groomroots, partskins. SIXNG_DEBUG_FUR=1 prints the run and the expected variants.