DFAO artifacts (black spots on tree foliage)

Some parts of the foliage on trees appear to always have very dark, flickering DFAO shadows, regardless of the min occlusion setting of the sky light (gif below). Even after setting their distance field resolution to 0 (or using two-sided distance fields), these dark spots still remain. It seems the only way to get rid of them is to set the sky light’s occlusion tint to a very bright color, but that kind of negates the intended purpose of DFAO altogether. Adding emissive color to the foliage material also works to some degree, but leads to several other problems.

It looks like this might simply be a limitation of DFAO, but since it’s happening on every tree I could test it with, and since there doesn’t appear to be a way of disabling DFAO for specific meshes (other than setting their distance field resolution to 0, which doesn’t work), I’m sure there must be a way around this issue.

I created a sample project with one of the “Open World Demo Collection” trees to illustrate the issue, which can be downloaded here: [Sample project (33MB)][2]

A forum thread with all the things I’ve already tried can be found here: [To the thread!][3]

If anyone has any ideas how to fix or work around this issue, please let me know!

4 Likes