One Code per Material: Neural Representation and Generation of Measured BTFs
Fazilet Gokbudak, Canberk Baykal, Chenliang Zhou, Rafal Mantiuk, Cengiz Oztireli
cs.GR
2026-11-16
Each measured BTF (~10^10 values) becomes one 256-float code that beats per-texel latent maps by 1.2 dB PSNR, and a flow over the codes samples new, relightable materials.
Much of what makes a real material look real sits below the surface: carpet loops, leather cracks, fabric weave. Move the light or the camera and these structures shadow each other, occlude, and shift with parallax. Bidirectional texture functions (BTFs) measure all of it directly, one HDR photograph per light-view combination, 151×151 of them in the UBO2014 reference dataset. Fidelity costs size: about 10^10 values per material, and a new material requires a new capture. Current neural BTF representations (Rainer et al., NeuMIP, Xia et al.) store a feature vector per texel, so a material remains a feature image of millions of values, never a point in a shared space you could sample from. Generative material models learn from synthetic libraries or photographs and output analytic SVBRDFs, which cannot express the self-shadowing and parallax a BTF records. This paper joins the two halves: a measured-BTF representation that is accurate, tiny, and sampleable.
Three stages, each shrinking what one material costs:
The bottleneck is data: twelve measured materials per class invites memorization. The fix is colourways: fit a 3×3 colour-transfer matrix between two same-class materials and apply it to every measured value of one of them. Structure, relief and shadowing stay; only the colours change, the same logic as dyeing one fabric in different colours. 84 measured materials become 886 training materials.
Reconstruction on nine UBO2014 materials (all seven classes covered), evaluated at eight light-view pairs:
| Method | Stored/material | PSNR↑ | LPIPS↓ | ΔE↓ |
| Per-texel anisotropic GGX | 1.76M | 22.10 | 0.234 | 24.80 |
| NeuMIP | 2.62M | 28.34 | 0.192 | 11.19 |
| Xia et al. | 3.32M | 33.24 | 0.084 | 6.53 |
| Ours, per-material | 3.42M | 36.44 | 0.060 | 4.54 |
| Rainer et al. (d=32) | 5.44M | 31.37 | 0.132 | 8.67 |
| Ours, compact | 256 | 32.56 | 0.183 | 6.77 |
At matched size the per-material network beats Xia et al. by 3.2 dB, with better SSIM, LPIPS and colour error on all nine materials. A per-texel anisotropic GGX fit, the ceiling of what metallic-roughness PBR generators can express, sits 14 dB below. The compact model beats Rainer's 32-dim per-texel latents by 1.2 dB with better colour accuracy, using 256 numbers instead of millions; amortizing the shared decoder over 84 materials still lands at 385k values per material, 14× fewer. The cost is perceptual: LPIPS 0.183 against 0.132, visibly blurrier than per-texel maps.
For generation, 672 samples were compared against the 886 training flash photographs in DINOv2 features. The flow reaches KID 466, ahead of Henzler et al. (698), PhotoMat (863) and two Gaussian baselines over the same codes (1,160 / 1,222), with the lowest MMD (0.215). Coverage is 22.1%, just under Henzler's 23.0%. Encoding and decoding the training materials themselves gives KID 372, effectively the capacity ceiling of this code space. The colourway ablation moves KID from 656 to 466 and doubles coverage from 10.8% to 22.1%.
A material is, for the first time, one point in a shared space rather than a feature image. The reconstruction gains are incremental, and compact versus per-texel is a trade-off. The new part is generation from measured BTFs, which no prior material generator attempted; they all learn from synthetic data or photographs, and their SVBRDF output lacks exactly the self-shadowing and parallax that measurements capture. A kilobyte per material, one decoder for everything, samples that relight, plus a released 886-material augmented dataset: the distance to a production render pipeline is short.
Stated by the authors: with twelve measured materials per class, the generator only knows the structures it has seen; samples stay close to the training materials and their colourways, with structural novelty limited to a few blends of two materials. Rendering a material first requires decoding it into a light-view table, 3.7 minutes on one A100, after which it costs the same as a tabulated BTF.
A few more caveats from a close read. The protocol (inherited from Rainer et al.) keeps all nine evaluated materials inside every method's training set, so these numbers measure reconstruction, not generalization. Colourways vary colour but not structure, so structural diversity is still what 84 captures provide. The decoder covers only the captured 5cm patch; tiling to larger extents is unsolved, with the paper pointing to Xia et al. as complementary. And the LPIPS gap means per-texel representations keep their place where perceptual sharpness matters.