DecalRoad shadow bug

Materials, textures, lighting, postfx
3 posts Page 1 of 1
Duion
Posts: 1133
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Fri Aug 31, 2018 11:56 am
I noticed that when using DecalRoads that sometimes there appear ugly lines on the shadows and if the shadows are strong, the lines are even there all the time, here is an example:
Image

From what I could find out so far is, that the lines only appear with decal roads that have normal maps on them and they appear the stronger, the stronger the shadows are (for the example screenshot I made the shadows much stronger than normal). In most cases it is hardly visible, mostly only if something casts a shadow on the road, but for the level I'm building now for some unknown reason, the lines are too visible even when no shadow is cast on the road, which is pretty annoying.

So anyone got an idea what it is or how to fix it?
Duion
Posts: 1133
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Fri Aug 31, 2018 6:57 pm
Meanwhile I found out that if you have a decal road on a terrain that has also a normal map, the decal road will inherit the normals of the terrain, or more they will get added to the normal map from the decal road, this may cause the visual bug. Depending on the strength of the normal maps it also seems to influence the strength of the visual bug.
Duion
Posts: 1133
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Sat Sep 01, 2018 12:04 am
Ok latest state of my investigations is, that the problem arises from using transparency on the material with lerp alpha blend mode and "transparency Z-write" checked.
Decal roads without transparency and only maybe alpha treshhold do not look good, thats why I added smooth transparency as well, seems like this causes a problem, since transparency also lets the texture below shine through.
3 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests