Understanding Tangent-Space RGB Encoding
Every pixel in a standard purple-blue tangent-space normal map encodes a 3D unit vector (Nx, Ny, Nz) pointing away from the mesh surface:
- Red (
R) encodes horizontal slopeNxfrom-1.0(0) to+1.0(255). Flat =128. - Green (
G) encodes vertical slopeNyfrom-1.0to+1.0. Flat =128. - Blue (
B) encodes outward heightNzfrom0.0(128) to+1.0(255). Because tangent normals always point outward from the polygon, a completely flat surface reads(128, 128, 255)—the iconic lavender-blue neutral normal color.
Step 1: Remove Noise Before Taking Derivatives
Mathematical edge filters (Sobel and Scharr) measure pixel-to-pixel slope differences. Any sensor grain or JPEG compression macroblock inside your input photo gets multiplied directly by your Strength slider.
- For clean procedural heightfields or digital sculpts: keep Pre-Smooth Blur =
0 pxfor razor-sharp bevels. - For smartphone photos or compressed web textures: set Pre-Smooth Blur =
1 pxor2 pxso real structural grooves remain crisp while sensor grit vanishes.
Step 2: Match Kernel Geometry to Your Surface Class
- Hard-surface metal, rivets, hex armor, architectural tile: Choose 3×3 Scharr (
Strength 2.0–3.2) for mathematically isotropic diagonals without jagged aliasing. - Pixel art & retro stylized textures: Choose 3×3 Sobel (
Blur 0 px) for crisp, high-contrast micro-steps. - Organic plaster, terrain hills, soft fabric: Choose 5×5 Wide Smooth to capture broader undulating slopes cleanly.
Step 3: Always Set Normal Maps to "Non-Color / Linear" in Your Engine
The single most common beginner mistake in Blender and Unity is leaving an imported Normal Map PNG set to sRGB color space. Applying a 2.2 gamma curve shifts neutral (128, 128, 255) down to (55, 55, 255), bending every lighting normal violently sideways! Always set Color Space to Non-Color (Blender) or Texture Type to Normal Map (Unity/Unreal).
Return to the Normal Map Generator or explore Engine Use Cases.