Hair: damp the strand style pass near the head, body and garments #311
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!311
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/311/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-25 20:36 UTC · original
holdmysocks:claude/people-style-damping→master· +104 −11 · 2 files · 78 commits · merged 2026-11-25 20:52 UTCFollow-up to #304: the strand style pass now damps its offsets near the character, the way the game's style pass does.
Style::applytakes a per-point weight instead of one strength. The offset length is 0.8 mm + k(|o| - 0.8 mm), with k = min(1 - round(3d)/3, strength) and d = sat(1 - dist/falloff) to the nearest collider.groom::Colliders: the game builds capsules, spheres and boxes on the CPU around the head, shoulders and hats. Those aren't stored with the groom, so the character's own surface points stand in for them: head, body and garments, not hats (they press the hair themselves) and not hair. They sit in a 3 cm grid, and the falloff is 3 cm (not read).Groom::coat_with(share, colliders).coat(share)is unchanged.The pass stays off by default, behind
SIXNG_STYLE=<strength>. Renders against the game frames show that the damping holds strands down near the scalp. Even so, at full strength the pass throws strands across the face. With the axes swapped they fan out sideways, and at 0.3 a few strays remain. So the records' frame, or what they are added to, is not settled yet.Tests: sixng-core 296, sixng-gui 45, sixng-cli 1 pass. The style test now also covers the damping.