Fur: grow the full coat from the stored per-triangle strand counts #30
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!30
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/30/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 03:46 UTC · original
holdmysocks:claude/full-coat→master· +264 −15 · 2 files · 1 commits · merged 2026-11-23 03:52 UTCA groom's guide strands are a few per cent of what the game draws. The
count is in the groom: section B6 holds four bytes per root triangle,
c0 = strands to grow in the triangle and c1 = strands in clumps
(inferred). A cat's short body coat stores about 365,000 strands for
6,757 guides.
groom.rs: reads B6 (tri_counts), the strand width at system +0xF0 and
its 16-step taper at +0x110. Groom::coat grows, in every root triangle,
a share of its stored count at random points, each strand blended from
the triangle's three guides (fixed seed). coat_glb writes one flat
ribbon per strand in the skin's plane. The game's placement rule,
clumping, curl and noise are not decoded, so this coat is smoother and
more even than the game's.
Viewer: "full coat" (on by default) with a density slider in the hair
panel. At most 90,000 strands are drawn per model and drawn wider to
keep the cover. Automatic fur is coloured from the skin under each
root; hand-picked grooms take the picked colour.
Tint-mask coats (grey: only the mask's shading is known) take the mean
colour of the same animal's painted parts, so a deer's body matches its
head. A stand-in: the game's tint palette is not decoded.
Checked in the viewer on a cat, chimpanzee, boar, bear, boxer and deer.
Not checked on people: a hand-picked scalp groom did not line up with
the head it was tried on, and no automatic hair link exists for people.