Hair export: strand colours (COLOR_0) and a coloured Blender material #344
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!344
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/344/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-26 03:03 UTC · original
holdmysocks:hair-colour→master· +147 −33 · 6 files · 4 commits · merged 2026-11-26 04:09 UTCHair export, part of #146: strand colours.
Builds on #342 (its commit is in this branch until #342 merges; the diff here adds one commit).
outfit --hair: each grown piece carries the colour the viewer gives its slot. That is the outfit's colour set for the slot, else the one the item names, looked up in the game's strand tables. Without a set there, the item's own colour presets are used (unless flagged as not a hair colour).COLOR_0(linear RGB) per point, along the strand's colour variant ramp from root to tip. Guides carry no colour. The mesh extras and the summary name the set (colour_set, its name hash) andcolour_source(strand tables or item presets).scripts/blender_hair_curves.py: readsCOLOR_0into acolourpoint attribute. Coloured pieces get a Principled Hair BSDF in colour parametrization, fed through a Gamma node (2). The BSDF reads its colour as the hair's overall colour, so the game's colours unsquared render near white. Pieces without colours keep the plain brown material.Checked on Jason (
player_story000_01 --look 0): all 11 pieces take their set from the strand tables (hair, brows, lashes and beard sets). Hair is brown, darker at the root (linear 0.07, 0.045, 0.027 at the root, 0.21, 0.12, 0.075 at the tip), and the brows are darker. Blender 5.3 headless: 22 objects, 146,441 strands, each grown piece with acolourattribute and the coloured material. A Cycles render on the GPU shows brown hair and beard with lighter tips.