normalmap.dev

About NormalMap.dev

NormalMap.dev is a free normal map generator for game artists, modders and anyone texturing 3D models. It turns one image into a normal map, a height map, an ambient occlusion map, a roughness estimate and a curvature map, and shows the result on a lit 3D sphere so you can judge it before you download.

How it works

Everything runs in your browser. When you open an image, JavaScript on the page reads its pixels, and the maps are computed on your own computer:

  1. The image is converted to brightness and treated as height, after optional flattening of large-scale lighting and a small blur against noise.
  2. Slopes are measured with a Sobel or Scharr filter at the sample radius you choose, and turned into surface directions.
  3. Height, AO and curvature are derived from the same data; roughness is estimated from brightness and occlusion.
  4. Downloads are written as PNG files in the browser, without an sRGB tag, because normal maps are data rather than color.

Your image is never uploaded. The page works the same if you disconnect from the internet after it has loaded.

Why the defaults are what they are

Each setting on the normal map generator is explained next to it, including why its default value was chosen. The comparison images on that page were made with the same code as the tool, so what you see there is what the tool does.

Sample textures

The Brick and Fabric samples and the brick height map are from ambientCG (Bricks076C and Fabric048), released under the CC0 public-domain license. The pixel-art crate sprite was drawn for this site.