Tattoos: decoration catalogue, placement and full-colour bake (#385, part 1) #429
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!429
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-429"
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-27 00:58 UTC · original
holdmysocks:claude/tattoos-385→master· +700 −22 · 13 files · 2 commits · merged 2026-11-27 02:57 UTCPart of #385. Ped decorations (tattoos and other skin decals) are now baked into skin colour textures. This covers the parts that are decoded: the catalogue, the outfit link, placement and coverage, and full-colour decals. Ink-coloured tattoos are left out, because the ink encoding is not decoded yet; see "Not decoded" below.
What changes
peddecomodule:40e79f52, with layers of struct77f0121d, read by the member offsets in the file's own schema.index/ped_decorations.json.d9f1087blists decoration names.3817131dbody upper,44925bfdbody lower,378ad10chead). If no part has that category, it goes on the part in that slot.ExportOptions::part_decorations. The base colour of the part is baked into a new texture that sits next to the plain one, so a skin mesh shared by many characters keeps one file per decoration list.decorationsin model.json.outfit --lookand the viewer's outfit view both pass the lists, so the 3D view and the GLB export match.How the bake works
From the game's bake shader (
PS_BakeDecorations), checked on a full-body decal:Not decoded (left out, and recorded in model.json
decorations.ink_rule)ff00ff00are not decoded. Makeup layers all set an ink, so they are left out too.p3parameters are not decoded.Follow-up PRs will cover the CPU packer, the ink encoding and the makeup codes.
Checked
outfit g_m_m_guardia_00 --look 5: the chest and back colour tattoos land on the upper-body skin texture.ped-look g_m_m_koltandassoc_00: decorations are assigned to the head, body upper and body lower parts of every outfit.Tests