Normal Map Generator

Unity & Unreal Normal Map Guide

How OpenGL (+Y) and DirectX (-Y) green channels work across Blender, Unity, Godot, and Unreal Engine 5.

Why Your Normal Map Looks Inside-Out Between Engines

Every tangent-space normal map encodes surface direction in three RGB channels: Red (X, left/right), Green (Y, up/down), and Blue (Z, pointing out of the surface). While almost every 3D tool agrees on Red and Blue, the Green (Y) channel is split between two standards:

  • OpenGL (+Y Up): Used by Blender, Unity, Godot, Three.js, Babylon.js, Maya, and Roblox Studio. Bright green pixels point upward.
  • DirectX (-Y Down): Used by Unreal Engine, 3ds Max, CryEngine, and Substance Painter (default template). Bright green pixels point downward.

When you load a DirectX normal map into Unity (or an OpenGL map into Unreal) without flipping the green channel, raised bricks look like sunken pits and lighting appears to come from the opposite side of the scene.

Quick Conversion Checklist

Source to Target Action Needed Where to Toggle
Export for Unity / Blender / Godot Use OpenGL (+Y) Select OpenGL (+Y Unity/Blender) on the Normal Map Generator
Export for Unreal Engine 5 Use DirectX (-Y) Select DirectX (-Y Unreal) before clicking Download PNG
Fixing an existing map inside Unreal Open Texture asset and check Flip Green Channel Texture Editor -> Details -> Texture
Fixing an existing map inside Blender Insert Separate Color -> Invert Color on Green -> Combine Color Shader Editor before the Normal Map node
Import settings in Unity Set Texture Type to Normal map Inspector -> Texture Import Settings

Color Space Warning (sRGB vs Non-Color)

Never leave a normal map, roughness map, or ambient occlusion map in sRGB color space inside your 3D engine. Normal vectors are linear mathematical data—gamma decoding shifts the neutral flat value (128, 128, 255) off-center and skews specular highlights across the entire mesh. Always set Color Space to Non-Color in Blender, Linear / Mask in Unreal, or Normal map in Unity.