Normal map generator
Turn a photo or height map into normal, height, AO, roughness and curvature maps, light them in 3D, and export for Unity, Unreal, Godot or Blender with the right green channel. It all runs in your browser; your image never leaves this device.
Drag on the preview to move the light. three.js reads the normal map as OpenGL (Y+), like Unity, Godot and Blender.
Shown as OpenGL (Y+, green up), the way the Unity (URP, Built-in) export writes it.
Export for
How to import the Unity (URP, Built-in) files
- Normal: set Texture Type to Normal map. Unity treats it as linear data.
- MetallicSmoothness, AO and Height: untick sRGB (Color Texture).
- In the Lit material, put MetallicSmoothness in Metallic Map and keep Smoothness Source on Metallic Alpha.
From the docs: Unity Manual: Introduction to normal maps · Unity Scripting API: TextureImporter.sRGBTexture · Unity Manual: Configure reflections in prebuilt shaders (metallic map)
Which way the green channel points
A tangent-space normal map stores a direction per pixel: red for left–right, green for up–down, blue for out of the surface. Engines agree on red and blue but not on green. Feed an engine the wrong one and every bump lights as if the light came from below.
| Engine | Expects | What its docs say |
|---|---|---|
| Unity | OpenGL, Y+ | “Unity uses Y+ normal maps, sometimes known as OpenGL format.” source |
| Godot 4 | OpenGL, Y+ | “Godot requires the normal map to use the X+, Y+ and Z+ coordinates.” source |
| Blender | OpenGL, Y+ | “Uses the OpenGL convention by default for rendering and baking.” source |
| Unreal Engine (Fab) | DirectX, Y− | Fab: normal maps “in the DirectX convention by default.” source |
| 3ds Max Normal Bump | Green = down | “Green indicates down (larger values) versus up (smaller values).” source |
Converting between them is one operation: green becomes 1 − green. The OpenGL vs DirectX guide explains how to tell which one a file is, and the green channel flipper converts maps you already have.
Check the direction in your engine first
Before you texture a whole level, prove the export with a shape you can't misread.
- 1Click Dome test above. It has one dome in the upper left and a bar along the bottom, both raised.
- 2Pick your engine under Export for and download the normal map.
- 3Put it on a flat plane in your engine with the light coming from above.
- 4The dome and the bar should be lit on top and shaded underneath. If they look pressed in, the green channel is the wrong way for that material: re-export with the other convention instead of fixing it by eye.
Starting from a grayscale height map instead of a photo? The height map to normal map converter keeps 16-bit input at 16 bits and shows the exact slope math. Need a seamless material to test with? Download the oak planks PBR set.
What each map is made from
- Normal
- Slopes of the height field, measured with a Sobel, Scharr or Prewitt kernel and scaled so a straight ramp gives its exact slope. Strength is the height of the full black-to-white range as a percentage of the texture width, so the preview and a full-size export have the same depth; the export adds detail finer than a preview pixel.
- Height
- Brightness of the photo (after optional flattening, blur and detail), or the channel you choose from a height map. White is high. 16-bit PNG input is read at 16 bits, not the 8 bits a browser would give you.
- Ambient occlusion
- An estimate from the height field: how far each point sits below its surroundings at four scales. It darkens grooves and pits. It is not a ray-traced bake from a mesh, so check it on deep shapes.
- Roughness
- An estimate from brightness: darker reads rougher by default, with a base value and contrast you set. Smoothness in the Unity maps is 1 − roughness.
- Curvature
- Convex edges light, creases dark, flat areas mid-gray. Handy as a mask for edge wear and dirt in a material.
- Packed maps
- ORM (R ambient occlusion, G roughness, B metallic) for Unreal and Godot, the HDRP mask map (R metallic, G AO, B detail mask, A smoothness) and Unity's metallic map with smoothness in alpha.
Every PNG is written by our own encoder with no gamma, sRGB or ICC chunk, so nothing in the file asks a viewer to treat the data as color. Packed maps keep full RGB under low alpha, which a canvas-based exporter can't do.