NodeIcon ConvertNormalMap

Transfers normal maps between World and Tangent spaces.


Inputs

Geometry

Geometry Geometry associated with the normal map. The geometry must have UVs.

Texture

Image Normal map in World or Tangent space

Tip

If your normal map is stored in PNG or JPG, remember to load them withut linearization. See LoadImage’s File Color Space parameter.

Output

Image Normal map transformed between World and Tangent spaces. The alpha channel is copied from the input texture to the converted areas.

Parameters

Convert from:
World Space

Normal map stores normals in world coordinates

Tangent Space (UV)

Normal map stores normals relative to the mesh surface using the UV-based tangent space.

Tangent Space (MikkT)

Normal map stores normals in tangent space following the MikkTSpace standard

Convert to:
World Space

Normal map stores normals in world coordinates

Tangent Space (UV)

Normal map stores normals relative to the mesh surface using the UV-based tangent space.

Tangent Space (MikkT)

Normal map stores normals in tangent space following the MikkTSpace standard

Normalize:

Normalizes converted normals to unit length before edge padding.

Generate Z:

When enabled, the Z channel (Blue) is recalculated assuming an orthogonal basis and unit-length normals. Overrides and disables Normalize.

Edge Padding, px:

Extends converted regions into fully transparent areas by up to the specified number of pixels. The added border blends neighboring color and alpha values. Existing non-transparent pixels remain unchanged. Set to 0 to disable padding.

Note

If Convert from and Convert to are the same, the input texture is returned unchanged and the other parameters are not applied.