0
Fixed

Texture2D nodes should clearly display if they are parsed as a normal map or not

robert briscoe 11 years ago updated by Freya Holmér (Developer) 9 years ago 5

Admin Edit: Original title was "Light map Bug - Directional Lightmaps"

Original post below:


So there seems to be multiple issues with the new lightmap implementation: Firstly, directional lightmaps: (ignore the last image)
Image 43


It seems as though the normal map is inverted or is being incorrectly calculated.

Answer

Answer
Fixed
This is due to the normal map not being marked as a normal map in the SF shader, thus not unpacking the normals when rendering the shader. I'll rename this task to be about a clear indicator on the Texture nodes to actually show if it's being read as a normal map or not :)

Edit: This has been fixed in 0.15, where there is now a checkbox for what type of texture it's supposed to be, as well as which default value it should hold when unconnected
Planned

Thanks for the comparison! Will look into this tonight

Planned

This is due to the normal map not being marked as a normal map in the SF shader, thus not unpacking the normals when rendering the shader. I'll rename this task to be about a clear indicator on the Texture nodes to actually show if it's being read as a normal map or not :)

Just to elaborate a bit on this: Basically, I just needed to make sure my Texture2D node had a normal map in it when compiling the shader. I had left it empty so SF assumed it was a diffuse texture.

Answer
Fixed
This is due to the normal map not being marked as a normal map in the SF shader, thus not unpacking the normals when rendering the shader. I'll rename this task to be about a clear indicator on the Texture nodes to actually show if it's being read as a normal map or not :)

Edit: This has been fixed in 0.15, where there is now a checkbox for what type of texture it's supposed to be, as well as which default value it should hold when unconnected
In addition, now that 1.15 is out, you can tag it as a normal, which will make the inspector warn the user is the selected texture isn't a normal map :)