Normal Map KitEngine guide

Normal map generator

Choose or drop a texture to generate a normal PNG at the original size.

Use a height map or an evenly lit texture. Bright areas appear raised.

Free · No signup · Images never leave your browser

PNG, JPG, WebP up to 32 MiB. Over 4,096 px per side? We'll offer a smaller copy.

Source textureNormal map / Y+
Overlapping fans carved into warm gray stoneMatching grooves in the OpenGL normal map
fan-stone.webp960 × 640 px

Which engine are you using?

Which format should Unity use?

Export OpenGL Y+ and select Normal map as the imported texture type.

Unity import settings

Which format should Unreal use?

Export DirectX Y− for a normal texture with the green channel flipped.

Unreal material settings

Can I use a photograph?

Yes. Start with even lighting and little glare. A painted stripe or a cast shadow can look like a ridge because brightness is only a height estimate.

Which strength should I start with?

Start with the suggested strength. It ranges from 10 for high-contrast images to 24 for flat ones. The stone sample opens at 24. Switch to Lit preview and turn the light to judge the grooves. Lower the strength for softer relief.

What is the difference between OpenGL and DirectX?

Only the green channel changes. DirectX uses 255 minus the OpenGL green byte. The image keeps the same position, dimensions, red and blue.

Will wrapping make my image tile seamlessly?

Wrap samples across the opposite edge when filtering. A source whose edges already match benefits most. A visible color or height step in the source can still leave a seam.

What do blur and sharpen change?

Positive values average a square neighborhood before taking slopes. Radius 1 averages nine pixels. Negative values subtract that average from twice the original height and keep heights between zero and one.

What is in the material ZIP?

Height is the filtered grayscale map, including any height inversion. The AO mask darkens local depressions using max(0, 1 − 2 × max(0, mean − height)), with a 5 × 5 mean. The specular mask uses height squared. Both are starting points for art direction. Neither measures real occlusion or reflectance.

How does a height map become a normal map?

Each pixel encodes the direction of the surface estimated from its neighbors. Height is (0.2126R + 0.7152G + 0.0722B) / 255, multiplied by opacity. Transparent pixels have zero height.

A 3 × 3 Sobel filter compares right to left and bottom to top. Each side uses weights 1, 2, 1. Divide the difference by 8 to get the slopes dx and dy. The OpenGL normal is (−strength × dx, strength × dy, 1), divided by its length. Each component becomes a byte by rounding 127.5 × (component + 1).

Center pixel of a three-column height strip at strength 2
Heights, left to rightSlope dxOpenGL RGB
0.5, 0.5, 0.50128, 128, 255
0, 0.5, 10.537, 128, 218

For the rising strip, the unit vector is (−1, 0, 1) / √2. DirectX changes its green byte from 128 to 127.