BC7 BCPack: alpha of 37 endpoint presets fitted on mip consistency #230

Manually merged
github merged 1 commit from gh-pr/230/head into gh-pr/230/base 2026-11-26 20:19:54 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 00:40 UTC · original
holdmysocks:claude/bcpack-bc7-alpha → master · +37 −37 · 1 files · 1 commits · merged 2026-11-25 02:17 UTC

BC7 BCPack: alpha of 37 endpoint presets fitted on mip consistency

The earlier preset fits scored colour only, so 91 of the 256 endpoint
preset slots carried alpha 0. Blocks whose endpoint chain reaches such a
slot through alpha modes alone decoded their alpha about 224 to 240 too
low, which made whole textures transparent. Chains that pass a
three-channel block were unaffected, since those reset the alpha state.

The alpha entries are now fitted per slot against the next mip of the
same texture (three rounds, each against the table of the round before).
Colour entries are untouched.

Mip check over the whole install (1,433 BCPack BC7 textures), run with
exactly this table:

  • colour: identical for every texture
  • alpha: 48 textures better by more than 1 dB, 3 worse
    (68.1 -> 48.7 dB, 43.4 -> 36.9 dB and 20.8 -> 19.5 dB)
  • alpha under 20 dB: 76 -> 49 textures; under 25 dB: 93 -> 66
  • alpha median 49.9 -> 51.4 dB

Left alone: slots where the fit wants alpha lowered to 0 against
references that are preset-rooted themselves, and slot 246, whose
fitted value made opaque textures worse.

**@⁠holdmysocks** on GitHub · 2026-11-25 00:40 UTC · [original](https://github.com/holdmysocks/SixNG/pull/230) `holdmysocks:claude/bcpack-bc7-alpha` → `master` · +37 −37 · 1 files · 1 commits · merged 2026-11-25 02:17 UTC BC7 BCPack: alpha of 37 endpoint presets fitted on mip consistency The earlier preset fits scored colour only, so 91 of the 256 endpoint preset slots carried alpha 0. Blocks whose endpoint chain reaches such a slot through alpha modes alone decoded their alpha about 224 to 240 too low, which made whole textures transparent. Chains that pass a three-channel block were unaffected, since those reset the alpha state. The alpha entries are now fitted per slot against the next mip of the same texture (three rounds, each against the table of the round before). Colour entries are untouched. Mip check over the whole install (1,433 BCPack BC7 textures), run with exactly this table: - colour: identical for every texture - alpha: 48 textures better by more than 1 dB, 3 worse (68.1 -> 48.7 dB, 43.4 -> 36.9 dB and 20.8 -> 19.5 dB) - alpha under 20 dB: 76 -> 49 textures; under 25 dB: 93 -> 66 - alpha median 49.9 -> 51.4 dB Left alone: slots where the fit wants alpha lowered to 0 against references that are preset-rooted themselves, and slot 246, whose fitted value made opaque textures worse.
The earlier preset fits scored colour only, so 91 of the 256 endpoint
preset slots carried alpha 0. Blocks whose endpoint chain reaches such a
slot through alpha modes alone decoded their alpha about 224 to 240 too
low, which made whole textures transparent. Chains that pass a
three-channel block were unaffected, since those reset the alpha state.

The alpha entries are now fitted per slot against the next mip of the
same texture (three rounds, each against the table of the round before).
Colour entries are untouched.

Mip check over the whole install (1,433 BCPack BC7 textures), measured
with 36 of the 37 slots:
- colour: identical for every texture
- alpha: 46 textures better by more than 1 dB, 2 worse
  (43.4 -> 36.9 dB and 20.8 -> 19.5 dB)
- alpha under 20 dB: 76 -> 51 textures; under 25 dB: 93 -> 66
- alpha median 49.9 -> 51.4 dB

Slot 212 is the 37th; an earlier round measured it: two textures better
by 1.4 and 3.6 dB, one near-perfect texture 68 -> 49 dB.

Left alone: slots where the fit wants alpha lowered to 0 against
references that are preset-rooted themselves, and slot 246, whose
fitted value made opaque textures worse.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:53 +00:00
github manually merged commit c490d2aa71 into gh-pr/230/base 2026-11-26 20:19:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.