Ped decorations: the game's Lab white point for makeup #460

Manually merged
github merged 10 commits from github-bot/gh-460 into gh-pr/460/base 2026-11-27 06:07:39 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 04:59 UTC · original
holdmysocks:claude/tattoo-tone-385 → master · +929 −125 · 19 files · 10 commits · merged 2026-11-27 06:05 UTC

Part of #385; stacked on #458. The makeup bake now uses the game's own Lab white point.

White point

The exe's sRGB→Lab conversion divides XYZ by a reference white that is filled at start-up. It is copied from the D65 entry of the game's illuminant table (the table also holds A, D50, D55 and others): (0.95047, 1.0, 1.08883). #458 used the row sums of the sRGB matrix, which differ from it only in the last float digits. This replaces them with the exe's constant. Confidence: high (the start-up copy and the table entry are both read from the exe).

The bake-rule version goes up, so earlier makeup bakes are not reused.

Tests

  • The existing makeup and bake tests (white → L 100, a 0, b 0; Lab round trip; makeup toward the skin tone).
**@⁠holdmysocks** on GitHub · 2026-11-27 04:59 UTC · [original](https://github.com/holdmysocks/SixNG/pull/460) `holdmysocks:claude/tattoo-tone-385` → `master` · +929 −125 · 19 files · 10 commits · merged 2026-11-27 06:05 UTC Part of #385; stacked on #458. The makeup bake now uses the game's own Lab white point. ## White point The exe's sRGB→Lab conversion divides XYZ by a reference white that is filled at start-up. It is copied from the D65 entry of the game's illuminant table (the table also holds A, D50, D55 and others): `(0.95047, 1.0, 1.08883)`. #458 used the row sums of the sRGB matrix, which differ from it only in the last float digits. This replaces them with the exe's constant. Confidence: high (the start-up copy and the table entry are both read from the exe). The bake-rule version goes up, so earlier makeup bakes are not reused. ## Tests - The existing makeup and bake tests (white → L 100, a 0, b 0; Lab round trip; makeup toward the skin tone).
The exe's Lab conversion divides by a start-up copy of the D65 entry of
its illuminant table (0.95047, 1.0, 1.08883), not the matrix row sums.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:01:18 +00:00
github-bot changed target branch from claude/tattoo-makeup-385 to master 2026-11-27 05:17:38 +00:00
github-bot changed target branch from master to gh-pr/460/base 2026-11-27 06:07:38 +00:00
github manually merged commit d661bdf1bf into gh-pr/460/base 2026-11-27 06:07:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.