Turning Flat Diffuse Photos into Physically Accurate 3D Materials
You do not always need an expensive photometric scanning rig to build believable 3D product materials. If you photograph fabric, leather, wood, or stone under soft, even, shadowless lighting, you can derive usable Normal, Roughness, and Ambient Occlusion maps directly from surface luminance gradients.
Passing clean diffuse textures through Sobel gradient and frequency-separation shaders lets a browser generate full PBR map sets that respond naturally to rotating HDRI studio lighting.
The Science of Physically Based Rendering (PBR)
Unlike legacy game rendering (which used fake specular highlights and baked ambient lighting), modern PBR engines adhere strictly to real-world physics and the Law of Conservation of Energy: a surface cannot reflect more light energy than it receives.
Create Normal & Roughness Maps from Any Image
Generate normal maps, roughness maps, height maps, and ambient occlusion entirely in your browser using GPU shaders.
The Core PBR Texture Channels Explained
- Base Color / Albedo: Pure color values free of any shadows or directional highlights. Baked shadows cause visual errors when virtual lighting changes.
- Normal Map (RGB Vector Data): Encodes microscopic surface bumps using RGB values to represent X, Y, and Z surface vectors without adding actual polygon geometry.
- Roughness Map (Greyscale 0–255): Dictates microfacet scattering. Pure Black (0) produces mirror-like sharp reflections (chrome, polished glass), while Pure White (255) diffuses light into a soft matte sheen (chalk, rubber, dry stone).
- Metallic Map (Binary 0 or 1): In physical nature, materials are either non-metals (dielectric = 0) or pure conductors (metal = 1). Gray values should only be used for oxidized rust or dust layers.
What is ORM Channel Packing?
To optimize mobile WebGL memory, modern 3D pipelines pack three greyscale maps into a single 3-channel RGB image:
- Red Channel: Ambient Occlusion (AO)
- Green Channel: Roughness
- Blue Channel: Metallic
This cuts texture sampler memory overhead by 66%, allowing WebGL engines to bind one texture instead of three separate image files.
