EvonX

Free tool · Runs in your browser

Normal map generator: depth from a flat picture.

Drop a texture, a photo or a height map and this normal map generator reads its brightness as height and turns the slopes into a normal map. A light circles over the result in 3D, so you judge the depth the way a game will show it. Nothing is uploaded, and height, ambient occlusion and roughness maps come from the same picture.

  • Strength and blur controls
  • OpenGL or DirectX green
  • Lit 3D preview
  • Height, AO and roughness too

By the EvonX team · Updated · 4 min read

Generate a normal map from a picture

A cobblestone tile is loaded. Drop your own picture, then watch the light move over it while you set the strength and the blur. The Normal, Height, AO and Roughness views show each map flat.

Loading the tool…

How do I make a normal map from an image?

Drop the image into the generator below. It treats bright pixels as high and dark pixels as low, then turns every slope into a colour. Raise the strength for deeper relief and add blur to hide noise and JPG blocks. Tick Invert Y for Unreal and other DirectX-style engines, leave it off for Unity, Godot and three.js, and download the PNG.

How to get a clean normal map

  1. Start from the right picture

    A height map, where white is high and black is low, gives the truest result. A flat-lit texture works well too. A photo with strong shadows does not: the shadows are read as holes.

  2. Set the strength

    Strength multiplies the slope. Around 2 to 4 suits most stone, wood and fabric. Above 8 the surface looks like carved plastic, which is rarely what you want.

  3. Blur away the noise

    Every pixel of grain becomes a tiny bump. One or two pixels of blur remove it and keep the larger shapes. Use more for a soft, worn surface.

  4. Pick the green direction

    Leave Invert Y off for OpenGL-style engines (Unity, Godot, three.js, Blender). Tick it for DirectX-style engines (Unreal). If lit bumps look like dents in your engine, this is the switch.

  5. Check it under the light, then download

    In the lit preview, bumps should catch light on the side facing the lamp. If your texture tiles, keep Tileable on so the map tiles too. Download the normal map, and the other maps if you need them.

OpenGL or DirectX: which normal map does your engine want?

The two formats differ only in the green channel, which points up in one and down in the other.

Normal map green channel direction by engine
Engine or toolFormatInvert Y here
UnityOpenGL (green up)Off
GodotOpenGL (green up)Off
three.js, Babylon.js, glTF filesOpenGL (green up)Off
BlenderOpenGL (green up)Off
Unreal EngineDirectX (green down)On
CryEngine, SourceDirectX (green down)On

The file name says which one you saved: it ends in -opengl or -directx.

The four maps this tool makes

Maps generated from one picture and what each one does
MapWhat it storesHow it is made here
NormalThe direction each point of the surface faces, as red, green and blueA Sobel filter on the blurred height
HeightHow high each point is, white for highThe picture's brightness, after the blur
Ambient occlusion (AO)How much each point is shaded by what stands around itHow far the ring around a point rises above it
RoughnessHow matte or shiny each point isAn estimate: low areas rough, high areas a little smoother

A photo does not record roughness, so that map is a starting point to adjust in your engine, not a measurement.

What a normal map is, and how one is made from an image

A normal map is a picture that stores directions instead of colours. Each pixel says which way the surface faces at that point: red for left and right, green for up and down, blue for straight out. A flat surface is the familiar pale violet, 128, 128, 255. When a light moves, the engine uses those directions to shade each pixel, and a flat wall appears to have grooves and bumps without a single extra triangle.

To make one from an ordinary image, something has to stand in for depth. This tool uses brightness: light pixels are treated as high, dark ones as low. It blurs that height field a little, then runs a Sobel filter over it, which measures at every pixel how fast the height changes to the sides and up and down. The steeper the slope, the further the normal leans, and the strength slider multiplies that lean.

This is image processing, not an AI model: it is instant, gives the same map every time and never sends your picture anywhere. The limit is the assumption itself. Brightness is not really height, so a dark painted stripe becomes a groove. For the cleanest map, start from a height map, or from a texture painted without shadows.

Normal map mistakes to avoid

  • Import the normal map as linear data (Unity: Texture Type Normal map; three.js: no sRGB colour space), or the lighting will be wrong.
  • Do not resize a normal map with a paint tool afterwards; make it again at the size you need.
  • Do not save it as a low-quality JPG: compression blocks become visible ridges.
  • If bumps look like dents in your engine, flip the green channel with Invert Y.
  • Keep Tileable on for a seamless texture, and off for a picture that does not repeat, such as a sprite.
  • For a 2D sprite, light it with a normal map only if your engine has 2D lights; otherwise the map does nothing.

Frequently asked questions

Is this normal map generator free?

Yes. It is free, needs no account and adds no watermark. The picture is processed in your browser and is never uploaded.

Can I convert a height map to a normal map?

Yes, and it is the best input. Drop the height map, leave Invert height off if white is high, set the strength and download. The result is a tangent-space normal map.

Should I use the OpenGL or the DirectX format?

Unity, Godot, Blender, three.js and glTF use OpenGL, where green points up: leave Invert Y off. Unreal Engine uses DirectX, where green points down: tick Invert Y.

Why does my normal map look noisy?

Grain and compression blocks in the picture are being read as bumps. Add one to three pixels of blur and lower the strength. Starting from a PNG instead of a JPG helps too.

What is the difference between a bump map and a normal map?

A bump map, or height map, is grey and stores only height. A normal map is coloured and stores the direction of the surface, which engines light faster and more accurately. This tool turns the first into the second.

What size can the picture be?

Any size. A picture larger than 2,048 pixels on its long side is scaled down to 2,048 in your browser first, and the maps are saved at that size.

EvonX AI game maker

Got the asset? Now make the game.

Describe your game in one sentence and EvonX builds it: code, art, sound and a link you can share. Free to start, no download, plays on any phone.

Free to start · Earn money from your games
Try one