How to make a normal map for a sprite
- Drop a sprite or a whole sprite sheet. A transparent background gives the best edges.
- Set Edge bevel for how far the rounded edge reaches into the sprite. Set Detail from brightness for how much the sprite's own shading becomes bumps.
- Raise Strength for a more pronounced relief. Move the mouse over the lighting preview to check the result.
- Pick the Y direction for your engine and download
yourfile_n.png.
Settings that work well
- Pixel art characters: bevel 2–3, brightness 30–50%, strength 2–4, smoothing 0.
- Tiles and walls: bevel 0–1 so tiles connect without seams, brightness 60–80%, strength 3–6.
- Hand-painted or HD sprites: bevel 6–12, smoothing 1–2, strength 2–3.
- If dark details such as cracks and seams should look carved in, keep invert off. If dark areas are meant to be raised, turn invert on.
How it works
The tool first builds a height map. Starting from the sprite's transparent edges, the height rises over the bevel width. Pixel brightness is then mixed in for surface detail.
A Sobel filter measures the slope of that height map in x and y. Each pixel's surface direction (the normal) is stored as a color: red is the left/right tilt, green is the up/down tilt and blue faces the viewer. A perfectly flat area becomes the typical light purple, RGB (128, 128, 255).