in some old documentation i’ve found this mapping for normals:
Red maps from (0-255) to X (-1.0 - 1.0)
Green maps from (0-255) to Y (-1.0 - 1.0)
Blue maps from (0-255) to Z (0.0 - 1.0)
In my tests, Blue (0.0 - 1.0) seems to map to 128-255, is this the correct mapping in recent builds (2.6)?
Blue is the Z component of the normal map, in tangent space it´s always positive although it ranges from (-1.0) to (1.0) and is mapped from [0…255].
The Z component of the tangent would point inwards of the mesh if it was negative.
So you just have (0.0) to (1.0) and map it from [128…255]
Yeah i forgot to specify tangent space.
Maybe this could be updated somewhere in the documentation, all the searching i’ve done point to this page:
and this can create confusion.