hacky workaround could be to use a mesh so small as the df replacement mesh that it won’t have any real influence on the AO. haven’t tried this though, so just guessing here.
The problem is the solution is to set Distance Field scale to 0. The shadows you’re seeing is most likely Cascade using inset shadows. You can also disable shadows directly from the mesh view. Open it up, see where the materials are listed and uncheck “Cast shadow”
That is so odd. I do what you need out of the shadows in my game and those meshes are not affected in any way by DFAO. So at this point, something else is wrong.
If you need the distance fields of the mesh for whatever reason, you can just toggle “Affects Distance Field…” per instance, in the foliage tool, or the grass actor. Otherwise, you can disable it completely by setting the Distance Field Resolution in for the Static Mesh to 0, then “Apply Changes.” Not sure what version was being used back in the original 2016 posts, but I haven’t had any issues with disabling DFs this way in a long time.
Thank you, but this is the grass tool, not the foliage tool.
I think the 2016 issue still remains in 4.22. Even if you set those settings on the mesh actor, the DFAO still shows for the scattered grass objects.
Any updates on this?
I have a large custom mesh im using as terrain and cannot seem to deactivate the DFAO for a single mesh.
Unreal 4.24.3
On the asset I have set Distance Fields Resolution Scale to 0 and have tried using 1m cube as the “replacement mesh”.
Have also unchecked on the Actor, “Distance Field Indirect Shadow” and “Affect Distance Field Lighting”.
Yet I am still getting pretty bad blobby shadowing in the DFAO on this mesh.
As a workaround, is there a way to make the skylight not affect certain objects? Because these DFAO shadows are coming from the Movable SkyLight, could i use one Skylight for some assets, and a different skylight for other assets?
You could try to raise the “distance field self shadow bias” until the artifacts are gone. It’s in the mesh settings. But I’m afraid that won’t help with DFAO, but only with the shadows itself.