Normal Map Workbench

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.

or try
Loading…

Drag on the preview to move the light. three.js reads the normal map as OpenGL (Y+), like Unity, Godot and Blender.

Making maps…

Shown as OpenGL (Y+, green up), the way the Unity (URP, Built-in) export writes it.

Export for

Normal bits
Height bits
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.

EngineExpectsWhat its docs say
UnityOpenGL, Y+“Unity uses Y+ normal maps, sometimes known as OpenGL format.” source
Godot 4OpenGL, Y+“Godot requires the normal map to use the X+, Y+ and Z+ coordinates.” source
BlenderOpenGL, 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 BumpGreen = 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.

  1. 1Click Dome test above. It has one dome in the upper left and a bar along the bottom, both raised.
  2. 2Pick your engine under Export for and download the normal map.
  3. 3Put it on a flat plane in your engine with the light coming from above.
  4. 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.

Questions

Is my image uploaded anywhere?
No. The image is decoded and processed by a worker in your browser tab, and the PNGs and ZIP are built there too. There is no upload step and no server that receives your image.
OpenGL or DirectX: which normal map do I need?
Unity, Godot and Blender read OpenGL style (Y+, green up). Unreal Engine assets are DirectX style (Y−, green down): Epic's Fab asks for DirectX normal maps unless the file is marked otherwise, and 3ds Max's Normal Bump map treats larger green values as down by default. The two differ only in the green channel, so the export presets pick the right one and you can switch at any time.
My normal map looks inverted or washed out in the engine. What's wrong?
Two usual causes. If bumps look like dents when the light comes from above, the green channel is the wrong way round for that engine: export with the other convention or flip green on import. If the lighting looks weak and tilted, the texture is being read as sRGB color: set it to Normal map (Unity), Normalmap compression with sRGB off (Unreal) or Non-Color (Blender).
Should I export 8-bit or 16-bit?
8-bit is fine for most normal maps, since engines compress them anyway. Use 16-bit for height maps you will displace with, and for normal maps of very smooth surfaces (car paint, polished stone), where 8-bit steps can show as banding in reflections. A 16-bit height map you open here keeps its 16 bits.
Can a normal map made from a photo be accurate?
Only roughly. A photo records brightness, not height, so the generator assumes darker means lower. That works for stone, bark, plaster, fabric and similar surfaces lit from the front, and fails where color changes without the surface changing (painted lines, stains). Flatten lighting removes broad shading; for exact results, start from a real height map or a sculpt.
Can I use the maps in a commercial game?
Yes. The maps you make from your own images are yours, with no watermark and nothing to credit. The tool is free and needs no account.