Download

Dynamic shadows artifacts

I just realized that a default sphere renders different in 4.14 compared to 4.13. It does not seem to happen with imported objects, so far. But as I´m about to start a bigger project I want to make sure I don´t run into trouble because of this, later. See attached screenshot. The 4.14 sphere looks faceted. I tried different lighting and shadow options but I can´t seem to fix it. Maybe it´s just the sphere that is broken ?

I’ve been getting this for a while now, not just 4.14
curious for a solution

Try turning off SSAO and see if the problem disappears.

I have the exact same problem:
https://forums.unrealengine.com/showthread.php?133563-Shading-not-smooth

It´s a shadow bias problem with 4.14.(3). I know that low poly objects in some cases may look a little bit faceted.Usually the bias is there to fix this in exchange of accuracy. But this is not the problem here. It´s the way shadow Bias works in 4.14. SSAO makes no difference btw. To reproduce the problem. Create a new project in 4.14.3, place a sphere over the floor object and switch the directional light to moveable. You will notice the facetes in the object. When you now increase the shadow bias to the slider max value of 1 it will get a bit better. If you now set the value even higher by hand to a value of 2 it will get a lot better. When you set it to 5 the problem is gone and the shadows are still there wich is not how it should be with such high bias values. A wild guess, the shadow bias value is getting multiplied in a wrong way in 4.14. or something like that. In 4.13 much smaller values that are still in range of the default slider max value will produce the same result as a value of 5 in 4.14, while a value of 5 in 4.13 will produce no shadows at all with an object of that size.

This is a shadow problem. from directional light sources plus other such lights. The problem is still present in your second picture and in previous unreal versions, the reason why you don’t see it is because in the other scenes you have a skylight by default , the problem visually diminishes with a skylight or indirect lighting but it is still there. It will really pop out when you want to have detailed shadows in your scenes or when you have slightly high contrast in your lights. Bias will not help you, neither would anything else, it will always appear if you want to have detailed shadows. In addition to the link above here’s my thread about this if you are interested. (check bottom of the thread). No solution to this from what i know so far, you just adjust settings according to angle and shot basis and live with it. I hope in the future Epic will come up with a workflow to make this work seamlessly.

https://forums.unrealengine.com/showthread.php?132159-FBX-and-normals-Import-going-very-wrong!

I´m sorry, but it´s not. It also happens with skylight. I have both engine versions installed and 4.14 behaves completely different than 4.13. It even looks wrong in the material editor unlike in 4.13. There maybe other issues with the way unreal handles shadows, normals or bias compared to other engines but that´s not what I´m talking about here. Carefully read my last post and you will be able to reproduce my problem, there is something wrong or maybe just different with the Bias in 4.14.

If you are speaking of some difference in Bias settings only, then you can try this (I tested it in 4.12 and 4.14 and there is a difference) because by default the r.shadow.maxresolution appears to be set lower in 4.14. When I increased this to 4096 it appeared to match correctly with previous version of unreal.

So to recap, try this in 4.14.
Type in the console:
r.Shadow.MaxResolution 4096

But like I said regardless of these minor differences, the problem of facets are still there by default (less visible) and especially when you have higher settings on shadow its not 4.14 only related issue.

Version 4.15 here. The problem started to occure on 4.12 for me.
ScreenShot00012.jpg
This is a screenshot from within the Material Editor.

Pls fix this already.

I’m surprised this isn’t getting any more attention. So far I haven’t seen this acknowledged from anyone from Epic except for a couple of posts suggesting to play with the shadow settings. And never any reference to the comparisons with older UE4 revisions

I also get this bug and it makes my characters faceted on closeups, and my landscape looks faceted as well (in areas where the shadows have their “boundaries”)

A few threads with the same issue:
https://forums.unrealengine.com/showthread.php?132159-FBX-and-normals-Import-going-very-wrong
https://answers.unrealengine.com/questions/539768/help-with-smoothing-and-fbx-import-issues.html?sort=oldest
https://forums.unrealengine.com/showthread.php?136171-How-can-I-get-my-FBX-character-less-polygonal
https://forums.unrealengine.com/showthread.php?133812-UE4-triangle-shadows-bug
https://forums.unrealengine.com/showthread.php?67470-How-to-fix-jagged-shadows-on-terrain
https://forums.unrealengine.com/showthread.php?133563-Shading-not-smooth

I’m gonna quote this eye opener picture from William K

here’s the same issue (but much less evident) in UDK (then again the UDK sphere is lower poly)

udksphere.png

quite sad to not see this issue looked into

With 3 shadow cascades I get smooth results. With 4 cascades I have the same problem. Really annoying.

This is a known issue and from our tests it is not just dependent on shadow cascade count but rather on the shadow distance which adjusts the quality of the shadow detail (not just bias) regardless of the cascades. You can have 1 cascade and still have the issue pop up once you adjust the shadow distance for that shadow detail quality. And once you get to the sweet spot when you think the shadow distance/quality is just right you will have the issue visible as a consequence (note by quality I don’t mean “shadow resolution” but rather the amount of detail in the geometry that the shadow map catches). From all our discussions and posts the problem hasn’t gone away unfortunately.

hi,

any news about this?

I am getting same issue since 4.14, this is supper annoying when using procedural meshes. I though my tangents were bad… nope, shadows make everything look like potato.

I think it’s about time someone from Epic look into this problem.
The blocky shading is too problematic.

I’m getting this constantly since… 4.14 I guess?

My solution is to either disable Ambient Occlusion in PostProcessing or to increase it radius.
I doubt it’s okay situation though - there were no issues earlier and all lowpoly meshes without textures by default look ugly in static mesh preview/material preview/etc

It’s a problem with Cascaded Shadow Maps.
Try r.Shadow.CSM.MaxCascades 0
It will disable Cascaded Shadow Maps though

How can disabling the CSM even be a workaround of any sort ._.

ask Epic, not me :smiley:

While this particular issue is not UE4-specific, it is clearly manifesting itself waay too much by default.

You should be able to increase shadow bias and add a bit of sharpening to reduce it. Just as a reminder, that you can push bias past slider limit of 1.

If that is not enough, you can modify the way UE4 deals with self-shadow artifacts. Should be somewhere in ShadowFilteringCommon.usf