[Plugin] TextureImporter = Batch images > material-textures, inc. PBR, Collection export...
-
Works flawlessly.
Feature request if possible? Set the Normal Map to GL or DX prior to import.
-
Set the Normal Map to GL or DX prior to import
That would be awesome, BUT..
How do you expect the plugin should detect it?
Unless you include it in the name e.g "MyBeautifulNormal_DirectX.png" AFAIK there's no way to tell how the normal is supposed to work (there's no metadata to identify it).
Of course there are Substance texture-packing presets which automatically include the DX vs OpenGL in the naming convention, but the vast majority of normal map out there don't. -
-
@Rich-O-Brien ah ok.. I understood that you were asking for an "auto-detect"
-
It sets the Normal to DX or GL if there's a suitably named image set in the PBR set.
The Normal suffixes it currently considers [in order and case-insensitive] are:
normalgl normal-ogl normal_ogl normalogl nrm_ogl
normal norm nrm nor normal_map normalmap
normaldx normal-dx normal_dx normaldx nrm_dxI don't know what your PBR set includes...
What Normal image files are present ?
As you see - it considers suffix GL types first, then 'none', then DX
So if you have another variant that could be getting used first.
This is a breakdown of the Normal suffixes and their 'popularity'...
- _Normal (or _normal): The most widely used suffix across modern game engines (Unreal Engine, Unity) and baking tools (Substance Painter, Marmoset Toolbag).
- _NRM (or _nrm): A heavily used shorthand standard, frequently exported by Substance Designer, Quixel Megascans, and older production pipelines.
- _N (or _n): Common in streamlined or strict character-limit naming conventions, especially in custom studio pipelines.
- _Nor (or _nor): Frequently used by Blender artists, Poliigon, and open-source texture libraries.
- _Norm (or _norm): Occasional middle-ground abbreviation used in various indie and web-based asset stores (like Sketchfab).
Coordinate Space Variants (Important Distinction)
Because normal maps encode X, Y, and Z directional data differently depending on the graphics API, you will often see format-specific suffixes appended to the end:
β’ _Normal_DirectX / _Normal_DX: Used by Unreal Engine, 3ds Max, and DirectX-based applications (Green channel/Y-axis is inverted).
β’ _Normal_OpenGL / _Normal_GL: Used by Unity, Blender, Maya, and OpenGL-based applications (Green channel/Y-axis points up).Less Common / Legacy Suffixes
β’ _NML: Seen in some older proprietary engines and CAD software.
β’ _DDN: Stands for Detail Diffuse Normal, famously used in CryEngine.I'll expand that list it uses to make sure ALL get considered.
Here's my proposal
normal nrm n nor norm normal_map normalmap
normal_directx normal_dx normaldx normal-directx normal-dx normaldx nrm_dx
normal_opengl normal_gl normal-ogl normalgl normalogl nrm_ogl nml ddnSome PBR sets contain both Normal_DX and Normal_GL variants - some I propose to consider the _DX one first - if found... ?
Before I commit this tweak to a new version do you have any other files format suffixes to be trapped for ?The 4 'Normal' ones are as listed above, but there's also other suffix possibilities [is order of consideration]...
basecolor base_color base-color albedo albedo_srgb color diffuse diff col col_srgb bc base
metallic metalness metal met mtl metallicity
roughness rough rgh rough_map roughness_map
ambientocclusion ambient_occlusion ambient-occlusion ambientocculsion ao ao_map aomap occlusion occ cavity
I think that SketchUp ignores any other possible PBR suffixes like
'height' 'displacement' 'opacity' 'alpha' 'emmisive' 'glow' 'specular' 'glossy' 'sss' 'curvature' and 'packed-maps' -
After some more investigation...
normal_opengl normal_gl normal-ogl normalgl normalogl nrm_ogl nml ddn
normal nrm n nor norm normal_map normalmap
normal_directx normal_dx normaldx normal-directx normal-dx normaldx nrm_dxSketchUp uses OpenGL anyway so GL is better - BUT if the DX alternative is there I'll give the user an option to use that instead...
-
DDN: Stands for Detail Diffuse Normal, famously used in CryEngine
Also "ddna" (Amazon Lumberyard/Cry Engine).
I didn't even know it existed until a couple of minutes ago, but I'm just double-checking in the Substance Painter export templates list and found this, maybe you can add it at this point.

Substance export this naming convention to a DX normal for both the presets.The "Mesh Maps" preset in Substance also output some "normal_base" (can be both DX or OGL depending on project settings).
You may also want to add to the dictionary "NormalsMap" which is the default name in the 3dsMax scanline texture-baker (at least in the version I use). In most cases DirectX by default, unless specifyed by user.
-
Thanks - looking into an expanded list right now...
-
@TIG I wrote (and corrected) a mistake above.
Max default is DirectX.
I made confusion with the GLTF format I recently used the most (gltf/glb use OpenGL). -
In some instances my maps are suffixed with just _normal TextureImporter applies the GL normal flag. Which is fine is most cases.
But in cases where SomeImage_normal is DX and you discover this after import you need to set each map to DX in the Material panel.
It's not a big issue to add the correct suffix in Windows Explorer using PowerToys. Not a big deal.
-
Found some weird Substance Painter presets with "NormalMap" (same 3dsMax camel font, but without "s")
-
The new update will spot if there's a 'normal_DX' file AND another type say 'normal_GL' or plain '_normal' and offer you the choice to use the DX version...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement