Tattoos: upper-body decorations on one arm at a time (fourth UV set) #489

Manually merged
github merged 2 commits from github-bot/gh-489 into gh-pr/489/base 2026-11-27 18:52:17 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 18:36 UTC · original
holdmysocks:claude/tattoo-vicki-andy-385 → master · +280 −22 · 9 files · 2 commits · merged 2026-11-27 18:46 UTC

Part of #385: upper-body tattoos land on the right arm.

The upper body's UV0 is mirrored: both arms share one UV island, so a tattoo baked in UV0 shows on both arms. Its fourth UV set (TEXCOORD_3) is the same layout at half width, one side at u0 / 2 and the other at 0.5 + u0 / 2. Body-upper decoration records are placed in that set with u doubled:

  • cs_andy's sleeve record has the same decal twice, mirrored, at u 0.37..0.60 and 1.41..1.64.
  • Over the whole catalogue, 80 % of a body-upper layer's decal square lands on skin in this space, against 60 % in UV0.

A whole sheet (no layer or record transform, like cs_viper's own sheet) is the part's texture as laid out, so on the upper body it spans both sides of the fourth UV set. Its edges meet across the mesh's seams there, and they don't when the sheet is read through UV0 or placed on one side.

What changes:

  • The upper body with decorations is baked into a texture laid out in its fourth UV set (twice the base width; each texel reads the base at its UV0).
  • The material reads that texture through texCoord 3, in both the GLB and the viewer.
  • Body-lower records stay in the leg part's UV0, as before.
  • The bake rule version is bumped so cached textures are made again.

Tests: upper-body placement, the whole-sheet rule, split-layout detection and the UV3 relayout.

Still open on #385: the per-texel region mask, layers with no ink, Lucia's script-applied set, the tone override and decal width.

**@⁠holdmysocks** on GitHub · 2026-11-27 18:36 UTC · [original](https://github.com/holdmysocks/SixNG/pull/489) `holdmysocks:claude/tattoo-vicki-andy-385` → `master` · +280 −22 · 9 files · 2 commits · merged 2026-11-27 18:46 UTC Part of #385: upper-body tattoos land on the right arm. The upper body's UV0 is mirrored: both arms share one UV island, so a tattoo baked in UV0 shows on both arms. Its fourth UV set (TEXCOORD_3) is the same layout at half width, one side at `u0 / 2` and the other at `0.5 + u0 / 2`. Body-upper decoration records are placed in that set with `u` doubled: - cs_andy's sleeve record has the same decal twice, mirrored, at `u` 0.37..0.60 and 1.41..1.64. - Over the whole catalogue, 80 % of a body-upper layer's decal square lands on skin in this space, against 60 % in UV0. A whole sheet (no layer or record transform, like cs_viper's own sheet) is the part's texture as laid out, so on the upper body it spans both sides of the fourth UV set. Its edges meet across the mesh's seams there, and they don't when the sheet is read through UV0 or placed on one side. What changes: - The upper body with decorations is baked into a texture laid out in its fourth UV set (twice the base width; each texel reads the base at its UV0). - The material reads that texture through `texCoord` 3, in both the GLB and the viewer. - Body-lower records stay in the leg part's UV0, as before. - The bake rule version is bumped so cached textures are made again. Tests: upper-body placement, the whole-sheet rule, split-layout detection and the UV3 relayout. Still open on #385: the per-texel region mask, layers with no ink, Lucia's script-applied set, the tone override and decal width.
The upper body's UV0 is mirrored (both arms share one island), so a tattoo
baked there shows on both arms. Body-upper records are placed in its fourth
UV set with u doubled; that texture is baked in the UV3 layout and the
material reads it through texCoord 3 (GLB and viewer). A whole sheet (no
transform) spans both sides of that set.
# Conflicts:
#	crates/sixng-gui/src/shader.wgsl
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:40:17 +00:00
github-bot changed target branch from master to gh-pr/489/base 2026-11-27 18:52:16 +00:00
github manually merged commit 4f3e511026 into gh-pr/489/base 2026-11-27 18:52:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.