Viewer: clothes under clothes drawn as their _cull_00 twins and cut by the hide masks #354
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!354
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/354/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 04:47 UTC · original
holdmysocks:claude/people-armpit-slivers→master· +41 −11 · 1 files · 2 commits · merged 2026-11-26 05:18 UTCThis replaces the distance guess for clothes worn under other clothes with the game's own data. It fixes the slivers #327 left on
cs_tal_bu: the t-shirt at the armpits, the dot at the collar and the notch above the hem.How the game layers clothes. It doesn't use physics. Each garment ships as two drawables:
_full, which the viewer loaded. It is split into pieces, and its vertices carry no regions._cull_00, one mesh cut 1 to 3 cm closer to the body, whose vertices each carry a region number.Each worn item lists, per layer, the regions it hides. Kent Paul's shirt, for example, names regions of the t-shirt's layer.
Change (model_view.rs):
_cull_00twin, when one exists._fulland the distance test (jackets over a top still work as before).SIXNG_NO_CULL=1turns it off, for comparison.Verified:
cargo test --release --lockedpasses.cs_tal_buis clean. Kent Paul now shows his black t-shirt at the open collar as it should, where the distance test hid it. Shanese andcs_tal_co(t-shirt under an open jacket) are unchanged or clean.Not done:
hides_sub, whose key isn't decoded) isn't applied.outfitGLB export still uses_fullmeshes.