People: clothing colours from the garment presets #109
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!109
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/109/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 03:19 UTC · original
holdmysocks:claude/people-preset-colours→master· +116 −8 · 4 files · 1 commits · merged 2026-11-24 03:24 UTCFollow-up to #100 and #107. Applies the garment preset colours that #107 decodes to characters in the viewer.
What this does
pedlook: an outfit part carriespreset_colours, the base colour (sRGB) per sub-material of its item's garment preset, frommatlib(ped-lookprints them).matlib::Index::load_or_build: builds<work>/index/material_presets.jsonfrom the data.rpf index when it is missing, so the viewer does not depend on asixng materialsrun.materialidtexture (red x 63, as the clothing shader reads it), shaded by the fabric shade as before. A garment withoutmaterialidtakes the colour of sub-material 0. Preset colours come before the stored state colour, the tint row and the colour tag.Verified
matlib.cargo test --workspace: 148 core and 12 viewer tests pass.Not verified / known limits
player_story000_00's top and shoes change (black top, dark shoes; a tint row gave red shoes before). Those items have both a preset and a tint row, and what the tint rows do on preset items is not known; which is right was not established.materialidtexture is one colour.matlib::stops; the fabric texture is not located), entries 2 and 3.outfit --lookexports are unchanged (the colouring is in the viewer).Files
crates/sixng-core/src/pedlook.rs,matlib.rs(one added function),crates/sixng-gui/src/model_view.rs(character colouring),README.md.