DirectX vs OpenGL Normal Map Converter V2.0 PRO

Texture Maps

Texture Maps

Choose File
Choose File
1.00

Your map: OpenGL. Saves a DirectX copy (green channel flipped, PNG).

Choose File
1.00
Choose File
0.00
Choose File
0.10
Choose File
1.00
Choose File
0.00

Controls

Viewer Controls

3D Model

64 segments

Lighting

1.0
1.0

Texture Tiling

1.00

UV Controls

3.0
1.5
0.00
0.00

Background

Camera

Controls

  • • One-finger drag: Rotate on touchscreens
  • • Two-finger pinch: Zoom on touchscreens
  • • Left drag: Rotate model
  • • Right drag: Pan camera
  • • Shift + Right drag: Rotate light horizontally
  • • Scroll: Zoom in/out
  • • F key: Fullscreen
  • • S key: Export render (fullscreen)
How to use this tool, tips and FAQ

Free Asset Packs

Complete scenes with models and PBR textures in one download.

All asset packs

DirectX and OpenGL normal maps

DirectX and OpenGL normal maps hold the same surface detail, but their green channel points in opposite directions. In the wrong program, bumps look like dents and the light seems to come from below. Load your normal map here, switch between OpenGL and DirectX to see which one lights correctly, and download a converted copy. Everything happens in your browser.

How to check and convert a normal map

  1. Load the normal map into the Normal Map slot on the left. Add the albedo too if you like.
  2. Switch "This map is" between OpenGL and DirectX, and turn the model or the light. The right setting makes raised details catch the light from above, and tells you which format the map has.
  3. Click Convert to DirectX (or Convert to OpenGL) to save a copy in the other format: a PNG with the green channel flipped.

Which programs use which format

  • OpenGL (Y+, green up): Blender, Unity, Maya, Godot, and glTF / three.js
  • DirectX (Y−, green down): Unreal Engine, 3ds Max and CryEngine
  • Red and blue are the same in both formats; only green is inverted
  • Many texture sites offer both versions, often marked _GL / _DX or "OpenGL" / "DirectX" in the file name

Good to know

  • Use a light from one side: wrong normals make the shading flip, which is easier to see than with flat front light.
  • In the map itself, OpenGL normal maps usually look lit from above (the top edges of bumps are greener), DirectX ones look lit from below.
  • The download is an 8-bit PNG, because browsers read images in 8 bits. For a 16-bit source, invert the green channel in your image editor or texture software instead.
  • Instead of converting, you can also flip green inside many programs, for example with the "Flip Green Channel" option for a texture in Unreal Engine.

FAQ

What is the difference between DirectX and OpenGL normal maps?
Only the green (Y) channel. OpenGL normal maps store Y pointing up (Y+), DirectX normal maps store it pointing down (Y−). Converting one into the other means inverting the green channel.

How can I tell if a normal map is DirectX or OpenGL?
Light it from above: raised details should be bright on top. If bumps look like dents or lit from below, the map is in the other format. In this viewer, switch "This map is" between OpenGL and DirectX and keep the setting that looks right.

Does converting lose quality?
Red and blue stay exactly the same and green is inverted exactly. The only limit is the 8-bit PNG output.

How do I flip the green channel in Photoshop?
Open the Channels panel, select only the Green channel and press Ctrl+I (Image > Adjustments > Invert), then select RGB again and save.

Is it free, and is my file uploaded?
It is free, with no account and no watermark. Your images are read inside your browser and never leave your device.

More free PBR tools

The PBR Material Viewer previews albedo, normal, roughness, metallic, AO, height and opacity maps in real-time 3D. Need materials to test? Browse the free CC0 PBR textures.