Heads: export the wrinkle region masks and the face region mask (#133) #141
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!141
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/141/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-24 12:26 UTC · original
holdmysocks:claude/head-extra-maps→master· +162 −18 · 5 files · 1 commits · merged 2026-11-24 12:36 UTCPart of #133 (the first half: extra head maps). The readable material file is a separate change.
What was found
TemplateName; the male and female base heads for nearly all). The template's asset has a keyed texture list (b70a22c1) with three entries:e12585d1: wrinkle region masks, one BC1 array of 3 slices (512 x 512) shared by every head. Each colour channel of each slice marks one face region (9 regions).85858f5e: a face region mask (BC1, 1024 x 512, shared): red on brows, eyelids, nose bridge and chin, green on cheeks and neck, blue around the mouth.2633887d: one more map per sex, and one each for about 60 named characters. None of them is in any texture store of the install. Probably the wrinkle normal map that the masks blend in (a guess).What changed
head_skins.json, version 3) keeps the keyed textures per face, a preset's own entries before its template chain's. 1,291 of 1,300 faces have them.model.json: in the material'stextures(the key asparam_hash, with a description asslot_role) and inhead_skin.extra_textures(within_game_files). Every slice of the wrinkle mask array is written (<hash>_s0.png...).ped_standard_head(379efcef) andped_standard_eye(89a1cf72) were swapped.Checked
cs_andrea_head_fr1_lat_000_m_fullandhead_fr1_cau_017_m_fullfrom the game data: both textures written, three slices, the third listed as "not in any ttpf store"; GLB images unchanged.cargo test -p sixng-core: 152 passed (one new test for the template chain).Not decoded
speculartex,speculartex2,materialctexture,diffusetexanimatedblend, three unnamed).Materialreference (set on the templates) is in no store either.