Fur: LOD chains per variant piece, read from the files' names #288

Manually merged
github merged 4 commits from gh-pr/288/head into gh-pr/288/base 2026-11-26 20:24:50 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 15:24 UTC · original
holdmysocks:claude/people-fur-lods → master · +48 −28 · 3 files · 4 commits · merged 2026-11-25 16:26 UTC

This PR gives fur variants their LOD chains, read from the files' names. It is stacked on PR 285; until 285 merges, the diff also shows that PR's commit.

What changed

  • furlink::Variant gains chains: the LOD chain of each piece, densest first, in the same order as grooms. sixng grooms --animal writes it to <root>.fur.json.
  • Exact link: pieces are named with hairlink::piece_names over the animal's fur placeholder names. Their LODs <piece>_lod1 … are then read by name id. An unnamed piece takes the exact hair table's chain (bones and strand counts). Failing that, it is the groom alone.
  • Inferred link: each piece takes its chain from pieces.
  • 38 new fur piece words join PIECE_WORDS, for example leg_front, earsflyaways, paws, whiskers and head_neck. I found them with a hash search over two-word compounds of known piece words and anatomy words.
  • Cache versions: hair links 3 → 4 (the word list changed), fur links 2 → 3.

Measured

  • With the larger list, 1,688 of the 2,369 distinct fur piece ids of the named fur variants are named; before, 1,481 were.
  • Of the ~680 still unnamed, 565 are groom files. Some animals are mostly unnamed: the raccoon has 88 of its 97 pieces unnamed, the squirrel all 24.
  • Cat, deer and raccoon exports run. Every chain whose piece is named matches its _lodN files; I checked this by hashing, including the cat's paws and whiskers.
  • The human hair results and the groom catalog are unchanged: still 5,732 chains.

Verified

  • cargo test --release --locked passes.
  • I exported the cat, deer and raccoon with grooms --animal against the game and checked the chains as above.

Not verified

  • I did not open the fur panel in the viewer window. The rendered grooms (the densest of each piece) are the same as before, so fur should look unchanged.
  • The unnamed fur pieces use a word scheme I have not found yet.
**@⁠holdmysocks** on GitHub · 2026-11-25 15:24 UTC · [original](https://github.com/holdmysocks/SixNG/pull/288) `holdmysocks:claude/people-fur-lods` → `master` · +48 −28 · 3 files · 4 commits · merged 2026-11-25 16:26 UTC This PR gives fur variants their LOD chains, read from the files' names. It is stacked on PR 285; until 285 merges, the diff also shows that PR's commit. ## What changed - `furlink::Variant` gains `chains`: the LOD chain of each piece, densest first, in the same order as `grooms`. `sixng grooms --animal` writes it to `<root>.fur.json`. - **Exact link:** pieces are named with `hairlink::piece_names` over the animal's fur placeholder names. Their LODs `<piece>_lod1` … are then read by name id. An unnamed piece takes the exact hair table's chain (bones and strand counts). Failing that, it is the groom alone. - **Inferred link:** each piece takes its chain from `pieces`. - **38 new fur piece words** join `PIECE_WORDS`, for example `leg_front`, `earsflyaways`, `paws`, `whiskers` and `head_neck`. I found them with a hash search over two-word compounds of known piece words and anatomy words. - Cache versions: hair links 3 → 4 (the word list changed), fur links 2 → 3. ## Measured - With the larger list, 1,688 of the 2,369 distinct fur piece ids of the named fur variants are named; before, 1,481 were. - Of the ~680 still unnamed, 565 are groom files. Some animals are mostly unnamed: the raccoon has 88 of its 97 pieces unnamed, the squirrel all 24. - Cat, deer and raccoon exports run. Every chain whose piece is named matches its `_lodN` files; I checked this by hashing, including the cat's paws and whiskers. - The human hair results and the groom catalog are unchanged: still 5,732 chains. ## Verified - `cargo test --release --locked` passes. - I exported the cat, deer and raccoon with `grooms --animal` against the game and checked the chains as above. ## Not verified - I did not open the fur panel in the viewer window. The rendered grooms (the densest of each piece) are the same as before, so fur should look unchanged. - The unnamed fur pieces use a word scheme I have not found yet.
A piece's LOD files are named <piece>_lod1 ..., so once the piece is
named (placeholder base plus a known piece word whose name id is the
table's id) its LODs are read by name id from the table of contents.
2,766 of 4,095 human pieces are named; the rest keep the inferred chain,
which no longer takes the named pieces' LODs. The exact table stores every
groom's chain, and the viewer's groom list and grooms --list use it:
5,732 chains instead of 5,915, with no piece hidden as a LOD and no LOD
listed as a piece.
# Conflicts:
#	README.md
Fur variants now carry each piece's LOD chain (Variant::chains, written to
<root>.fur.json). The exact link names pieces with hairlink's piece words
and reads <piece>_lodN by name id; unnamed pieces take the exact hair
table's chain. 38 fur piece words found by a hash search over two-word
compounds (leg_front, earsflyaways, paws, whiskers ...) join the list,
naming 1,688 of 2,369 fur pieces instead of 1,481. Cache versions: hair
links 4, fur links 3.
# Conflicts:
#	README.md
#	crates/sixng-core/src/hairlink.rs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:24:49 +00:00
github manually merged commit 903394a5b3 into gh-pr/288/base 2026-11-26 20:24:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.