There is a strange glitch with normal maps I can’t explain. (UE 4.23)
I baked a normal map from a resculpted high poly mesh to a lower poly one in blender, tested it there and it looks just fine in blender (internal render). (no visible seams)
But when I import it into UE4, there are ugly seams on the mesh, where the uv seams are+where I did the sculpting.
Flipping the green or any other channel, making a 2k normal map or playing around with many different options (changing the margin, color depth…) in blender/ue4 (changing different options in the texture settings) like suggested in many threads on different forums, where people had similar problems didn’t help to solve this problem.
What’s causing it? Any hints?
Hard to say with certainty.
Top issue givers: Weight Paint, Bad UV map, bad material usage, no smoothing.
Also, the way things render within blender or any other 3d program is not an accurate method of making any kind of determination when it comes to the engine - basically, it doesn’t matter what looks fine in a 3d program that has no sorts of rendering constraints, and comparing one to the other is a bit worse then apples and oranges.
Make sure you FBX export is correct and that it doesn’t mistakenly contain the high poly. I’ve personally done that before.
Make sure your file has SMOOTH shading - enter edit mode, select all, drop down the Faces panel and select smooth - make sure you export correctly selecting “smooth” faces.
I must note that it looks like the normal map is not a complete mapping in this picture. it seems like High detail in the middle and lower detail below/above the seams. basically a body should have no seams (the unwrap is not too complicated. mark a seam under the foot/palms, mark a seams on the inside of the legs all the way up. ride the seam mid-body all the way up to the cranium. then for the arms you split with another seam riding up to the armpit, at which point it half-circles to connect to the middle, in somewhat of a T shape near the scapula.)
I’m currently having issues with the Mips causing visible seams. and this is happening despite the diffuse texture being specifically created with the background color extended well beyond the area of the seams.
Unfortunately nothing did help. Can I provide my example .blend file (blender 2.79) somewhere and you can see it for yourself. It’s about 18 MB. (high poly mesh (one subdivision applied, no resculpting) and low poly mesh + baked normal map with everything prepared). Alternatively I could provide the fbx+normal map.png, but where to upload?
Here is the link to an example .blend file. (Blender 2.79).
Just download the .blend and export the low poly mesh to UE4 and you will see a seam. The high poly mesh is only for baking.
The normal map looks fine in blender, so it must be a shader? related problem with UE.
I used the exact same settings now, but there was no “transform vertex to absolute” option. I’m using UE 4.23. Did you import it as skeletal mesh?
Seam is still visible (even after flipping the green channel).
Yes, as skeletal mesh and my mesh has a slight seam too but nowhere near as pronounced as in your image. If you are using “recompute tangent”/“compute skincache”(editor settings and mesh settings) try turning those off.
One small thing, but that doesn’t appear to be the main problem here, it is better to bake the normal map with a triangulate modifier and to export it with the same triangulate modifier applied, else you get small differences between Blender (quad mesh) and Unreal (triangulated mesh).
Both options were turned off for doing all the tests.
When I use “recompute tangent”/“compute skincache” the normal map quality gets even worse. (additional artefacts)
Triangulation in blender before bake & fbx export didn’t change anything.
Given Examples with different model.
Example one is without “recompute tangent” / “compute skincache”.
Example two is with recompute tangent and compute skincache checked. Example two is of particular interest, because my game has shape keys
for my characters and I need the shadows to be absolutely correct and realistic, when the character raises his arms while a shape key is applied etc.
What can I do in order to remove these awful artefacts / seams.
Is this a bug in the engine or expected behavior (lack of precision, bad compression?)
Should I report this as a bug or do you know of a better blueprint setup that a least reduces these artefacts on the normal map?
It is not a problem of the “Normal” texture. In the image I show you, only the “Base Color” is connected and the problem persists. Before activating “compute skin cache” it was perfect. The solution would be to put hair on the character to cover the error. Unfortunately this character is bald. This problem has not been solved for 4 years. And now in 4.25.4 it is more serious than in previous versions.
It’s still a thing lmao I’ve tried everything possible to get rid of this ugly seam down my asset and it’s so bad. I don’t know if I can hide it well enough with it being for VR.
I found a solution that worked for me. I opened the texture details, and changed Compression Settings from VectorDisplacementmap(RGBA8) to Normalmap (BC5). I then had to bring the texture into the material again. Hope that helps!