PL-STD-2.11 — Why Packed ORM Textures Lose 16.9 dB of Roughness Fidelity Under UE5 TC_Masks (BC1 5:6:5) vs. BC7 Modes 1/3/6

Proofloom Authority Standards · Article #2

Evidence scope: CPU_BC7_MODE_MODEL; deterministic CPU fixtures; native UE5 GPU cook: NOT_RUN.

A packed ORM texture can have the correct channel mapping and sRGB=False, yet lose roughness fidelity where metallic changes abruptly. In Proofloom’s 1024×1024 galvanised-steel fixture, the supplied BC1 comparator labelled TC_Masks reconstructs roughness at 38.02 dB PSNR. CPU_BC7_MODE_MODEL, selecting among Modes 1, 3, and 6, reaches 54.96 dB: a +16.94 dB whole-image advantage, increasing to +18.23 dB in seam blocks. Both paths receive the same procedural reference. (1, 2)

The title names the UE5 settings used in the benchmark labels. These measurements come from the supplied CPU implementations. They establish a reproducible compression failure on this fixture; they do not establish the output of a native UE5 cook, a particular production encoder, or every texture carrying the same setting.

1. Why six green endpoint bits do not isolate roughness

The channel contract is R = ambient occlusion, G = roughness, B = metallic. Throughout this article, the subscript in PSNR_R and RMSE_R means roughness, measured in G, rather than the red channel.

In the supplied BC1 implementation, each 4×4 block receives two RGB endpoints quantised to 5:6:5. Four palette entries lie between those endpoints, and each texel selects one shared RGB palette index. Green has six endpoint bits, but it does not receive an independently selectable roughness palette. AO, roughness, and metallic participate in the same RGB error minimisation. (2)

At a B: 0 → 1 boundary, the large metallic separation influences the fitted endpoint direction and palette selection. Roughness variation within either material must fit that same representation. Preserving the metallic step can therefore leave substantial roughness error. The extra green endpoint bit does not remove this coupling.

This experiment combines endpoint fitting, quantisation, and shared-index limitations. The 16.94 dB difference is their measured aggregate on the chosen fixture, not a universal penalty attributable to endpoint precision alone. The BC1 comparator uses normalised 5:6:5 endpoints and floating-point interpolation at thirds; the BC7 integer-decoder accuracy claim below does not extend to that comparator. (2)

2. What CPU_BC7_MODE_MODEL actually reconstructs

CPU_BC7_MODE_MODEL implements the Microsoft D3D11 / Khronos bit-accurate integer endpoint expansion and interpolation rules for Modes 1, 3, and 6 across all three ORM channels. Its supported representations differ in subset count and interpolation resolution. (1, 2)

Mode Subsets per 4×4 block RGB endpoint representation Index bits
1 2 Six bits plus a shared p-bit per subset 3
3 2 Seven bits plus a p-bit per endpoint 2
6 1 Seven bits plus a p-bit per endpoint 4

Mode 1 expands each endpoint component as (c6 << 2) | (p << 1) | (c6 >> 5). Modes 3 and 6 use (c7 << 1) | p. With integer endpoints and the selected mode’s integer weight table, reconstruction is:

q = ((64 - weight) * e0 + weight * e1 + 32) >> 6
out = q / 255.0

The decoder consumes integer block descriptors and has no access to the floating-point source texels. Zero uncompressed R/B passthrough means AO and metallic also pass through that decoder. Zero off-uint8/255 outputs means every reconstructed component lies on the 8-bit normalised lattice. Neither statement means zero compression error. (2)

The encoder ranks all 64 two-subset partitions by within-subset RGB variance, fits Modes 1 and 3 on the best-ranked partition, and compares those candidates with Mode 6 using RGB squared error. This is a specific search strategy, not exhaustive optimisation over every partition and mode. The primary fixture selects 8,915 Mode 1 blocks, 29,910 Mode 3 blocks, and 26,711 Mode 6 blocks. (2)

The model reconstructs from descriptor arrays. It does not demonstrate serialisation and round-trip decoding of packed BC7 files, alpha handling, or native UE5 GPU-cook behaviour. Decoder arithmetic and production-pipeline equivalence are separate evidence requirements.

3. Measure the atlas, then isolate its seams

The primary reference is a procedural float64 atlas with roughness spanning 0.02–0.25, AO spanning 0.68–0.94, and metallic alternating between zero and one every eight pixels. Metallic transitions are offset by two pixels relative to the 4×4 compression grid. The reference is evaluated directly; it is not first quantised into an 8-bit PNG. (2)

A seam block satisfies max(B) - min(B) > 0.5. The seam region includes all 16 texels of each qualifying block. Exactly 32,768 blocks / 524,288 texels belong to this region; the interior is the complementary half of the 65,536-block / 1,048,576-texel atlas. “Seam PSNR” therefore does not mean an unspecified narrow crop around the boundary. (2)

For reference roughness $r_i$, reconstruction $\hat r_i$, and a specified region containing $N$ texels:

$$ \operatorname{RMSE}_R = \sqrt{\frac{1}{N}\sum_i(\hat r_i-r_i)^2}, \qquad \operatorname{PSNR}R = 20\log{10}!\left(\frac{1}{\operatorname{RMSE}R}\right), \qquad \Delta{\max}=\max_i|\hat r_i-r_i|. $$

The PSNR peak is 1.0, not the fixture’s observed roughness range. Metrics are computed before display rounding. The full-atlas results are: (1, 2)

Fixture Codec model PSNR_R RMSE_R Delta_max Gate
ORM-2.11-PASS-01 CPU_BC7_MODE_MODEL, Modes 1/3/6 54.96 dB 0.001787 0.006467 PASS
ORM-2.11-FAIL-01 TC_Masks, CPU BC1 5:6:5 38.02 dB 0.012561 0.035161 FAIL_ERROR
ORM-2.11-PASS-02 Matte concrete, CPU_BC7_MODE_MODEL 56.09 dB 0.001569 0.007803 PASS

ORM-2.11-PASS-01 simultaneously reconstructs AO at 53.97 dB and metallic at 62.80 dB. Roughness quality was not obtained by leaving the other two channels uncompressed. (1, 2)

Primary fixture region BC1 roughness PSNR BC7 Modes 1/3/6 roughness PSNR
Whole atlas 38.02 dB 54.96 dB
Metallic seam blocks 35.29 dB 53.52 dB
Uniform-metallic interior blocks 47.05 dB 57.12 dB

Using the CSV’s additional precision, the differences are 54.9560 − 38.0196 = 16.9364 dB and 53.5174 − 35.2896 = 18.2278 dB. These round to +16.94 dB overall and +18.23 dB at seams. The whole-atlas gain corresponds to approximately 7.03× lower RMSE, or 49.4× lower mean squared error. It is not a percentage improvement in visual quality. (2)

The low-roughness branch applies when reference minimum roughness is below 0.30. It requires BC7 and all three conditions: PSNR ≥ 48.0 dB, RMSE ≤ 0.004, and maximum error ≤ 0.012. These are Proofloom acceptance thresholds. The report’s comparisons against 42 dB and 0.030 illustrate BC1’s failure severity; they are not the low-roughness acceptance rule. (2)

Two diagnostic failures explain the boundary

Diagnostic fixture Change PSNR_R Gate
ORM-2.11-DIAG-MODE6-ONLY Same primary fixture; only one-subset Mode 6 38.53 dB FAIL_ERROR
ORM-2.11-DIAG-3CLUSTER-CREVICE One-pixel AO=0.62 crevice alongside metallic transitions; Modes 1/3/6 41.45 dB FAIL_ERROR

Mode 6’s finer interpolation alone does not rescue this fixture. Allowing two-subset Modes 1 and 3 lets the fit separate the material groups and recover roughness variation within them. The ablation isolates the importance of partitioning in this model. (1, 2)

The crevice variant creates three AO/metallic groups within seam blocks, with roughness variation inside those groups. That structure exceeds what the selected two-subset fit can preserve within the acceptance budget. It demonstrates a failure of this fixture and search, not a theorem that every three-cluster arrangement defeats BC7.

The report proposes wider AO bevels or three-subset Modes 0/2 as remedies. Neither repair is benchmarked in the supplied implementation. Treat both as candidates requiring a fresh measurement, not demonstrated passes. (1, 2)

4. A roughness gate with an explicit input contract

The following gate checks the three numerical thresholds and the all-channel output lattice. Inputs are normalised, finite 1024×1024×3 arrays; convert decoded integer bytes directly to float64 / 255.0. An optional Boolean mask selects a nonempty region. sRGB=False must be supplied explicitly.

import numpy as np

def bc7_roughness_gate(reference, decoded, *, srgb, region=None):
    ref, dec = (np.asarray(a, dtype=np.float64)
                for a in (reference, decoded))
    if srgb is not False:
        raise ValueError("ORM requires explicit sRGB=False")
    for a in (ref, dec):
        if a.shape != (1024, 1024, 3):
            raise ValueError("Expected a 1024x1024 RGB atlas")
        if not np.isfinite(a).all() or (a < 0).any() or (a > 1).any():
            raise ValueError("Expected finite values in [0, 1]")
    if not np.array_equal(dec * 255.0, np.rint(dec * 255.0)):
        raise ValueError("Decoded RGB is off the uint8/255 lattice")
    if region is None:
        region = np.ones(ref.shape[:2], dtype=bool)
    region = np.asarray(region)
    if region.dtype != np.bool_ or region.shape != ref.shape[:2]:
        raise ValueError("Expected a Boolean atlas-sized region")
    if not region.any():
        raise ValueError("Region must contain measured texels")
    error = dec[region] - ref[region]
    rmse = np.sqrt(np.mean(error * error, axis=0))
    psnr = [120.0 if x == 0 else -20.0 * np.log10(x) for x in rmse]
    delta = np.max(np.abs(error), axis=0)
    passed = psnr[1] >= 48.0 and rmse[1] <= 0.004 and delta[1] <= 0.012
    return {"gate": "PASS" if passed else "FAIL_ERROR",
            "PSNR_AO": float(psnr[0]), "PSNR_R": float(psnr[1]),
            "PSNR_Metal": float(psnr[2]), "RMSE_R": float(rmse[1]),
            "Delta_max": float(delta[1]), "texels": int(region.sum())}

As in the source suite, 120.0 is a finite sentinel for zero error. It is not a measured finite PSNR. The function evaluates unrounded values and reports every channel’s PSNR; its pass decision concerns roughness. (2)

Call it on the primary BC7 reconstruction with region=None, the fixture’s seam mask, and its complement. It rejects malformed inputs instead of converting missing evidence into a pass. It does not authenticate the encoder, verify the seam mask’s derivation, or reproduce the complete compression-setting policy. Those remain caller obligations. The lattice check alone cannot prove zero channel passthrough; that claim also depends on the inspected decoder path.

5. Make the compression contract observable

Keep ORM as linear data throughout the comparison. The separate ORM-2.11-FAIL-02 transfer-function diagnostic falls to 18.14 dB when the model applies an unintended sRGB decode. That is a different defect from the 38.02 dB BC1 result, whose sRGB setting is already correct. (2)

Route low-roughness seam-heavy fixtures through the tested BC7 model, then measure the actual target texture. Do not substitute a setting name for decoded-output evidence. Retain AO and metallic measurements alongside roughness, and preserve failures such as the one-pixel crevice as regression fixtures.

The matte control also limits the headline. Its BC1 result is 50.42 dB, with maximum error 0.013211, and receives PASS_WITH_WARN under the separate matte policy: minimum roughness at least 0.45 and PSNR at least 42 dB. Its BC7 result is 56.09 dB and clears the stricter numerical conjunction. The benefit depends on the data and its acceptance contract. (2)

For native UE5 validation, record the engine build, target platform, compression settings, actual resulting format, mip level, and decoded output used for measurement. Recompute the metrics against the corresponding reference. A model pass does not supply that receipt, and the present experiment measures neither rendered appearance nor runtime performance.

6. Reproducibility checklist

From the extracted PROOFLOOM_WAVE3_5_MATH_PROOFS_v2 directory:

sha256sum -c SHA256SUMS.txt
python3 compute_wave3_5_math_proofs.py --out-dir ../reproduced
cmp pl_std_2_11_bc1_bc7_orm_crosstalk.csv ../reproduced/pl_std_2_11_bc1_bc7_orm_crosstalk.csv

The CLI runs all four packaged proof suites and their invariant checks. For this article, the unmodified suite was replayed with Python 3.12.14, NumPy 2.3.5, and SciPy 1.17.0. All manifest entries verified; the PL_STD_2_11 JSON object matched exactly, and the 11-row ORM CSV was byte-identical. These are the replay environment’s versions, not inferred versions of the original export.

Useful SHA-256 pins:

002c5e9a4f963a73c2720f5206358b15868f5960d9ad52db090df36f1690aadb  compute_wave3_5_math_proofs.py
8d4268ee005cf1a2302b8da7838caa4ddb7f740318669e21ef86a1267b882fbc  pl_std_2_11_bc1_bc7_orm_crosstalk.csv

The supported conclusion is specific: this two-material atlas gains 16.94 dB of roughness PSNR when the supplied BC1 path is replaced by CPU_BC7_MODE_MODEL with Modes 1/3/6. Its two diagnostic failures identify limits of that result. Carry the fixture, decoder, region masks, and acceptance thresholds together into any subsequent native validation.

Sources

  1. WAVE3_5_MATH_PROOFS_AUDIT_REPORT_v2.md, §3, “PL-STD-2.11 — 1024×1024 BC1 (5:6:5) vs. CPU_BC7_MODE_MODEL (Modes 1/3/6) ORM Cross-Talk Proof.”
  2. PROOFLOOM_WAVE3_5_MATH_PROOFS_v2_EXPORT.zip. Evidence used: compute_wave3_5_math_proofs.py (fixture builder, BC1 comparator, BC7 fitting/decoder, metrics and gate logic); wave3_5_math_proofs.json → PL_STD_2_11; pl_std_2_11_bc1_bc7_orm_crosstalk.csv; and SHA256SUMS.txt. The archive’s audit report is byte-identical to source 1. No external benchmark or unverified native-cook claim is used.