Looks: tint a colour slot that binds the jewellery tint data map #542

Manually merged
github merged 1 commit from github-bot/gh-542 into gh-pr/542/base 2026-11-28 05:43:43 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 05:30 UTC · original
holdmysocks:claude/people-jewellery-tint-map → master · +37 −2 · 1 files · 1 commits · merged 2026-11-28 05:39 UTC

Raul's hoop earring was bright orange-red. Its item is tagged gold.

Cause

The earring (piercingshoop_mr1_002_ear_c) binds the shared jewellery map d01c36ca7ea7eef4 as its diffusetex. That texture is not a colour. It is a tint data map in the layout of the clothing shade map (pedtint):

  • R and B are each 0 or 255 (orange 255,110,0; blue 0,110,255; green 0,110,0);
  • G is the shade (about 110).

The item gives no material preset, but it has a tint: ped_tint_vstation_special, rows 59/59/59. Row 59 is gold.

The viewer applied the tint only to materials with no colour texture (ped_shade), so it drew the data map's raw orange. Lucia's hoop is different: it has a preset and its own colour map, which is why it was already gold.

Fix

colour_part now also applies the item's tint ramp, sampled at G, to a material whose colour texture is such a data map.

New packed_tint_map tells the two apart from the texels. It needs both of these:

  • 95% of the texels have R and B at 0 or 255 (98% on the jewellery map, where block compression blends the region edges);
  • at least half have R or B full, so a black colour map does not count.

Not traced

  • Which of the three tint rows each region (orange, blue, green) takes is not decoded. The map is coloured with tint 0, as for the clothing shade map. Here all three rows are 59.
  • The game's shader path for this map is not read. The layout match and the gold tag are the evidence.

Checks

  • Raul, ear close-up: before orange-red, after gold.
  • Lucia's face render is pixel-identical to the one before.
  • New test a_tint_data_map_is_told_from_a_colour_map.
  • cargo test --release -p sixng-gui --bins passes (69).
**@⁠holdmysocks** on GitHub · 2026-11-28 05:30 UTC · [original](https://github.com/holdmysocks/SixNG/pull/542) `holdmysocks:claude/people-jewellery-tint-map` → `master` · +37 −2 · 1 files · 1 commits · merged 2026-11-28 05:39 UTC Raul's hoop earring was bright orange-red. Its item is tagged gold. ## Cause The earring (`piercingshoop_mr1_002_ear_c`) binds the shared jewellery map d01c36ca7ea7eef4 as its `diffusetex`. That texture is not a colour. It is a tint data map in the layout of the clothing shade map (`pedtint`): - R and B are each 0 or 255 (orange 255,110,0; blue 0,110,255; green 0,110,0); - G is the shade (about 110). The item gives no material preset, but it has a tint: `ped_tint_vstation_special`, rows 59/59/59. Row 59 is gold. The viewer applied the tint only to materials with no colour texture (`ped_shade`), so it drew the data map's raw orange. Lucia's hoop is different: it has a preset and its own colour map, which is why it was already gold. ## Fix `colour_part` now also applies the item's tint ramp, sampled at G, to a material whose colour texture is such a data map. New `packed_tint_map` tells the two apart from the texels. It needs both of these: - 95% of the texels have R and B at 0 or 255 (98% on the jewellery map, where block compression blends the region edges); - at least half have R or B full, so a black colour map does not count. ## Not traced - Which of the three tint rows each region (orange, blue, green) takes is not decoded. The map is coloured with tint 0, as for the clothing shade map. Here all three rows are 59. - The game's shader path for this map is not read. The layout match and the gold tag are the evidence. ## Checks - Raul, ear close-up: before orange-red, after gold. - Lucia's face render is pixel-identical to the one before. - New test `a_tint_data_map_is_told_from_a_colour_map`. - `cargo test --release -p sixng-gui --bins` passes (69).
Raul's hoop binds the shared jewellery map (R/B region, G shade) as diffusetex with a tint and no preset; it was drawn raw orange-red instead of its gold tint row.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 05:34:10 +00:00
github-bot changed target branch from master to gh-pr/542/base 2026-11-28 05:43:40 +00:00
github manually merged commit 2c27874614 into gh-pr/542/base 2026-11-28 05:43:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.