Skin detail: read the region as the high nibble, and test the merge #514

Manually merged
github merged 1 commit from github-bot/gh-514 into gh-pr/514/base 2026-11-27 22:25:29 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 22:11 UTC · original
holdmysocks:people/lead-hair-check → master · +82 −3 · 3 files · 1 commits · merged 2026-11-27 22:22 UTC

Follows the Lucia and Jason check. Refs #385.

Region decode. The skin region in speculartex2 G is the high nibble of the byte. The maps store each region about six steps into its nibble (5, 23, 54 ... 214, 245), so rounding G x 16 put the decode edge one or two steps above the stored value. On Lucia's body map, region 13 sits at 214 with the edge at 215. Block compression noise flipped whole 4 x 4 blocks to the next region along the neck. The shader now takes the nibble (skin_region), and the export's layout note says so.

Merge test. #508 fixed glb::merge leaving the skin detail maps and vehicle masks at the first part's image indices: that is what drew the pale stripes over Lucia's chest. This adds a test that a merged part's base, packed, wear, primer, dust, speculartex2 and both detail sheet indices all move.

Checked in the viewer on Lucia's chest and neck (stripes gone, pores show) and on Jason. Tests: core 401, gui 62.

**@⁠holdmysocks** on GitHub · 2026-11-27 22:11 UTC · [original](https://github.com/holdmysocks/SixNG/pull/514) `holdmysocks:people/lead-hair-check` → `master` · +82 −3 · 3 files · 1 commits · merged 2026-11-27 22:22 UTC Follows the Lucia and Jason check. Refs #385. **Region decode.** The skin region in speculartex2 G is the high nibble of the byte. The maps store each region about six steps into its nibble (5, 23, 54 ... 214, 245), so rounding G x 16 put the decode edge one or two steps above the stored value. On Lucia's body map, region 13 sits at 214 with the edge at 215. Block compression noise flipped whole 4 x 4 blocks to the next region along the neck. The shader now takes the nibble (`skin_region`), and the export's layout note says so. **Merge test.** #508 fixed glb::merge leaving the skin detail maps and vehicle masks at the first part's image indices: that is what drew the pale stripes over Lucia's chest. This adds a test that a merged part's base, packed, wear, primer, dust, speculartex2 and both detail sheet indices all move. Checked in the viewer on Lucia's chest and neck (stripes gone, pores show) and on Jason. Tests: core 401, gui 62.
The skin region in speculartex2 G is the high nibble of the byte. The
maps store each region about six steps into its nibble (5, 23, 54 ...
214, 245), so rounding G x 16 put the decode edge one or two steps
above the stored value, and block compression noise could flip a 4 x 4
block to the next region. The shader now takes the nibble, and the
export's layout note says so.

Adds a test that glb::merge shifts every image index of a merged part,
the skin detail maps and vehicle masks included (the fix in #508).

Refs #385
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:12:52 +00:00
github-bot changed target branch from master to gh-pr/514/base 2026-11-27 22:25:22 +00:00
github manually merged commit f16a9e3e03 into gh-pr/514/base 2026-11-27 22:25:29 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.