Animals: colour textures from material presets; variants without parts #25
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!25
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/25/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 01:59 UTC · original
holdmysocks:claude/animal-materials→master· +397 −7 · 13 files · 1 commits · merged 2026-11-23 02:20 UTCWhat was wrong
crm_cat_feral_m_00). The eye drawable binds a colour texture that is in no store.crm_cattle_holstein_f_00,_m_00). The coat'sdiffusetexis a tint mask in a linear format: R and B are patch masks, G is the shading. The game colours it at runtime.crm_chimpanzee_western_m_01). A variant root with no parts of its own, so only its placeholder plane was shown.What the data says
Each animal has one packs.rpf meta resource of material presets (struct
f795e8ba, the one head skins already read). A preset has a name hash, a slot (fullbody,head,eyes,teeth, fur …), albedo and normal hashes, three tint bytes and a tint palette hash. The first preset of a part is named after its drawable; the others are its variations (coats, eye colours).What changed
partskinmodule: the preset table per animal, cached as<work>/index/part_skins.json(260 animals, 2,636 presets).model.jsonrecords the choice aspart_skin.classification.tint_mask; the viewer shows the mask's green channel as grey instead of the raw mask.presetsandtexhash.Checked
cargo test -p sixng-core: all pass, with two newpartskintests.crm_chimpanzee_western_m_01(assembles from them_00parts).Not done
fur_*drawables are 3-vertex placeholders and their presets do not name a groom; the link from an animal to its strand grooms is still unknown.a9d57751in the same resources lists one preset per slot (whole-animal looks). Not used yet.m_01chimpanzee uses them_00meshes is an assumption; nothing stored confirms it.tint_mask.