Normal Map Generator
Convert height maps and textures into tangent-space normal maps — Sobel filter, strength slider, OpenGL/DirectX Y-flip.
Convert a height map or diffuse texture into a tangent-space normal map for game engines — Sobel filter, adjustable strength.
About Normal Map Generator
Normal maps fake surface relief by encoding direction into RGB — this generator computes them with a Sobel edge filter from any source image: dedicated height maps give the cleanest result, but diffuse textures work for quick detail.
Controls cover filter strength and X/Y channel inversion — flip Y for DirectX engines (Unity, Unreal) versus OpenGL conventions. Output is a standard tangent-space purple normal map PNG, generated entirely in your browser.
How to use Normal Map Generator
- Upload a height map (grayscale) or the diffuse texture.
- Adjust strength until the relief depth looks right.
- Set the Y convention for your engine — OpenGL = green-up, DirectX = green-down.
- Download the PNG and wire it into your material's normal slot.
Frequently asked questions
OpenGL or DirectX for my engine?
Unity and Unreal use DirectX-style (green channel down, Y−); Godot and most GL pipelines use OpenGL (Y+). Use the Invert-Y toggle if lighting looks inverted.
What input gives the best result?
A true grayscale height map — white = raised, black = recessed. Using a diffuse texture works but bakes shading artifacts into the normals.
Why is my normal map flat purple?
The source lacks height variation — raise the strength slider, or feed a contrast-stretched height map.