Hello everyone. Today I ran into a problem I can’t fix by myself.
How do I achieve correct static lighting on foliage?
Static and dynamic shadows are enabled within the foliage tool settings.
The trees on the left were placed by the foliage tool. The one on the right is a regular static mesh.
As you can see, there is a significant difference in the way the static lighting affects them.
By enabling distance field ao the outdoor lighting gets much more consistent.
But there is a drawback, to enable dfao I have to change the skylight to movable.
This results in the outdoor lighting to improve greatly while the lindoor lighting suffers in contrary.
Is there something wrong with my lighting setup, which results in broken baked lighting on foliage?
Or alternatively. Is there a way to use dfao (movable skylight) and baked lighting together?
The short answer to your question is yes, but you have to use a movable skylight and a stationary directional light. The stationary directional light will allow you to bake your lighting and transition to dynamic shadows, and the movable skylight will let you implement the DFAO.
The console command r.AOApplyToStaticIndirect will allow you to combine baked lighting from a stationary skylight and distance field AO. You can adjust its max distance in the world settings with the Global distance field max distance value, though minimum brightness and contrast values don’t seem to be exposed like when using a movable skylight.