Open Crazymonkay opened 11 months ago
It seems that you are using per-vertex normals in Godot which is leading to the distortion. Here is a comparison using your MRP with a BoxMesh added in between the gltf and .obj using the "normal buffer" viewport mode.
Looking at your normalmap it looks like you have baked in the reverse of the normal into the tangent map to somehow undo the per-vertex normals, is that correct?
The end result gets close to having proper flat-shaded normals, but is skewed. Likely from using different tangents
It seems that you are using per-vertex normals in Godot which is leading to the distortion. Here is a comparison using your MRP with a BoxMesh added in between the gltf and .obj using the "normal buffer" viewport mode.
Looking at your normalmap it looks like you have baked in the reverse of the normal into the tangent map to somehow undo the per-vertex normals, is that correct?
The end result gets close to having proper flat-shaded normals, but is skewed. Likely from using different tangents
Yes, the low-poly cube I am using for this is entirely "smooth" with no sharp/split edges. I tend to model things this way because split edges produce their own artifacts. Using a cube like the one you showed, with a baked normal map notice the creases along the edges:
Godot version
v4.1.2.stable.mono.official [399c9dc39]
System information
Godot v4.1.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 31.0.15.3713) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
Normal maps baked in Blender or Substance Painter appear distorted when rendered in Godot, for example this cube:
I am ignoring banding and compression artifacts. Compare this to the same cube with the same normal map viewed in Blender with no warping:
Also viewed in Unity, again with no warping:
I have checked the following things to try and ensure that it is not my model or baking workflow that is producing this issue:
Steps to reproduce
Minimal reproduction project
Normal Map Issue.zip