OpenGL v Direct X Normal maps

rents1977

Member
Joined
Jan 31, 2018
Messages
30
As a long term user of Linux, Blender and Rigs of Rods I've been trying to get my head round normal maps not working as expected.

Turns out Blender and OpenGL use the opposite Y direction from Direct X. This means that bumps are shown as hollows, and vice versa.

So it was nothing to do with shaders. After hours of trying to tweak them!

Is there anyway to cleanly handle this in a game that uses OpenGL and DirectX?

How do commercial games handle it I wonder?
 

only_a_ptr

Lead Developer
Administrator
Developer
Joined
Jan 31, 2018
Messages
133
Location
Prague, CZ
As far as I know, OpenGL is considered the standard and DirectX is considered the "weird guy".

Blender is an early adopter of OpenGL, so it makes sense to use it's approach.

I was under impression that OGRE renderer always uses the OpenGL approach, but I can't find any written mention of it. However, OGRE has an "Athene" bump mapping sample which uses the same resources under OpenGL and DirectX. Try looking there.
 
Top