I’ve been having trouble getting DFAO to work with tree foliage ever since the feature was first introduced. The default DFAO is much too dark for my purposes, but when I try to lighten it with the Min Occlusion (or Occlusion Exponent) setting, some areas remain dark and flicker strongly (see image below). I initially wrote it off as a bug that will eventually get fixed, but since it’s still an issue even in UE4.20, I imagine there must be a way around it.
I set the Min Occlusion in the screenshots to 1 to better illustrate the problem, but it’s very apparent even with lower values. Most of the DFAO disappears when I increase the Min Occlusion, but some areas remain extremely dark. If I brighten up the DFAO with Occlusion Tint instead, these dark areas don’t show up. However, if I increase both Occlusion Tint AND Min Occlusion, the dark areas reappear (see image below).
I tried adjusting the distance field resolution of the trees, but even setting it to 0 doesn’t completely get rid of the dark areas (see image below). I also tried a bunch of different settings on the sky light, but other than the Occlusion Tint, which causes a bunch of other problems, nothing really worked.
In an actual scene, it looks something like this:
This problem has been haunting me literally for years now, so any help would be greatly appreciated!
I should probably have mentioned that that’s already ticked on all of my tree meshes. The screenshots above were all taken with that setting enabled. It does indeed alleviate the problem a little, but unfortunately not enough to make DFAO usable for me.
Uncheck skylight’s “Lower Hemisphere is black”. That helps a bit. But you can not completely get rid of it because that’s how DFAO is designed to work. In overcast lighting setups this issue is a game breaker.
Unfortunately, I don’t think I’m allowed to upload my own SpeedTree assets as project files. However, the trees from Epic’s “Open World Demo Collection” appear to have the same issue. The dark spots are not as extreme as with other trees, probably because they don’t have the same density of leaves, but they’re still easily visible. Since the “Open World Demo Collection” is openly available, I hope that uploading assets from it is permitted:
Thanks for the link! The issue described there does indeed appear to be similar in nature. The console commands in the answer don’t appear to be working through, and since the black spots persist even if I set the meshes distance field resolution to 0, I wonder if it’s really an object tile limitation in my case.
Either way, I’ll try posting on answerhub as well and see if I can get an explanation there.
Have you tried use self shadow bias for DFAO on the meshes? That might help. The other solution Ive used in the past is to make the tree leaves emissive slightly, which will help reduce the darkness of the DFAO.
That would be interesting to try, but I have no idea how to force full resolution DF and couldn’t find any documentation about it. Could you elaborate on how to enable that?
The self shadow bias setting doesn’t appear to have any effect at all, even at extremely high values.
Adding emissive color to the foliage material actually works pretty well to hide the issue. It’s a bit of a pain to get right for all lighting scenarios and time of day changes, but it’s the best solution I have so far. Thanks!
I’m really shocked this issue isn’t getting more attention! Everyone and their uncle is trying to make maps with vast terrains with trees, you’d think there’d be more people wondering why their trees are so blotchy!