Skip to content

How to automatically generate a normal map from a sprite?

SpriteIlluminator, a 2D normal map generator and editor, can create the normal map for you. Two effects do the work, and each one is good at a different job:

GenerateEmboss
Looks atWhat the sprite shows: a face, an arm, the folds of a shirtBrightness differences between pixels
CreatesA complete normal map with realistic volumeFine relief that follows the texture
Best forCharacters, objects, whole spritesSurface textures: bricks, rocks, wood, fabric

Start with Generate if you want a normal map for a whole sprite. Use Emboss if you want a surface texture to look more 3D.

Generate

  1. Select the sprite in your project.
  2. Click Generate and choose a model.
  3. Click Generate, then Apply to keep the normal map.

Generate uses an AI model that recognizes the content of the sprite and gives each part the volume it would have in 3D.

A sprite of a walking character
Normal map of the character sprite, generated with SpriteIlluminator's AI-based Generate effect
The character sprite lit with the normal map from SpriteIlluminator's Generate effect
The sprite.
Normal map.
Lit sprite.

Emboss

  1. Select the sprite in your project.
  2. Click Emboss.

Emboss analyzes brightness differences in the sprite's texture: brighter areas are treated as raised, darker areas as recessed. This makes a surface texture look more 3D.

A sprite of a wooden crate
Normal map of the crate sprite, created with SpriteIlluminator's Emboss effect
The crate sprite lit with the normal map from SpriteIlluminator's Emboss effect
The sprite.
Normal map.
Lit sprite.

Refine the result

Both effects give you a starting point that you can improve:

  • Use the Selection tools to restrict an effect to a part of the sprite.
  • Use both effects on the same sprite. Run Generate first, because it replaces the existing normal map. Emboss then adds the fine structure of the surface on top.
  • Use the Draw tools to fix details by hand.