---
title: "How to Generate a Normal Map from a Sprite, with AI or Emboss"
description: "Create a normal map from a 2D sprite automatically in SpriteIlluminator. Generate uses AI for characters and objects, Emboss adds relief to surface textures like stone or wood."
canonical: "https://www.codeandweb.com/spriteilluminator/knowledgebase/auto-generate-normal-map"
product: "spriteilluminator"
source: "html"
---

# How to automatically generate a normal map from a sprite?

SpriteIlluminator, a [2D normal map generator](https://www.codeandweb.com/spriteilluminator.md) and editor, can create the normal map for you. Two effects do the work, and each one is good at a different job:

|     | [Generate](#generate) | [Emboss](#emboss) |
| --- | --- | --- |
| **Looks at** | What the sprite shows: a face, an arm, the folds of a shirt | Brightness differences between pixels |
| **Creates** | A complete normal map with realistic volume | Fine relief that follows the texture |
| **Best for** | Characters, objects, whole sprites | Surface 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**](https://www.codeandweb.com/spriteilluminator/documentation/effects.md#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](https://www.codeandweb.com/static/a074105abf3f4be4171bb8711bf88d4e/958a3/generate-lucifer-sprite%402x.png)

![Normal map of the character sprite, generated with SpriteIlluminator's AI-based Generate effect](https://www.codeandweb.com/static/e70af2f09e6f7397e61176c15a9ed724/958a3/generate-lucifer-normalmap%402x.png)

![The character sprite lit with the normal map from SpriteIlluminator's Generate effect](https://www.codeandweb.com/static/e5cf43a1b7852cce82eab5458546189e/958a3/generate-lucifer-lit%402x.png)

The sprite.

Normal map.

Lit sprite.

## Emboss

1.  Select the sprite in your project.
2.  Click [**Emboss**](https://www.codeandweb.com/spriteilluminator/documentation/effects.md#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](https://www.codeandweb.com/static/7328999e29ca728bb30b58aa93b2d442/185a5/emboss-crate-sprite.png)

![Normal map of the crate sprite, created with SpriteIlluminator's Emboss effect](https://www.codeandweb.com/static/728d39b2ccf892fcde0f34a046b2eaa7/185a5/emboss-crate-normalmap.png)

![The crate sprite lit with the normal map from SpriteIlluminator's Emboss effect](https://www.codeandweb.com/static/965810ce37aa8ca3107790fd0281156c/185a5/emboss-crate-lit.png)

The sprite.

Normal map.

Lit sprite.

## Refine the result

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

*   Use the [Selection tools](https://www.codeandweb.com/spriteilluminator/documentation/selection-tools.md) 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](https://www.codeandweb.com/spriteilluminator/documentation/draw-tools.md) to fix details by hand.

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "How to automatically generate a normal map from a sprite?"
}
```
