NORMAFORGE SHADER MANUAL

Technical Artist Guide: Baking Artifact-Free Normal Maps

Step-by-step technical artist guide to generating artifact-free normal maps from photos and heightfields: pre-smoothing, kernel choice, and specular balance.

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:

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.

Step 2: Match Kernel Geometry to Your Surface Class

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.

Frequently Asked Questions

Can I generate a clean normal map directly from a colored photograph?

Yes, provided the photo has fairly even lighting without harsh cast shadows. Severe dark shadows on one side of a stone will be interpreted by luminance-to-height algorithms as a deep trench unless equalized first.

Why does my normal map look overly faceted or stepped in glossy areas?

Low-contrast 8-bit gradients produce stair-stepping when multiplied by extreme Strength values (>5.0). Use 1–2 px Pre-Smooth Blur, switch to the 5x5 Wide Smooth kernel, and keep Strength moderate (1.5–3.0).

Turn Real-World Photos Directly Into Full 3D Meshes

Generate navigable 3D Gaussian Splats and textured geometry on TripoSplat.com.

Turn Photos into Full 3D Gaussian Splats & Meshes on TripoSplat.com