Jump to content

DecalRoad shadow bug


Duion

Recommended Posts

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:

decalroadshadowbug.jpg


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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...