Foliage lighting differs from static mesh lighting

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.

Indoor static lighting with stationary skylight.

Indoor lighting with movable skylight and dfao.

So I have two questions:

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?

Thank you in advance.

OK, I figured it out. Obviously a lightmap size of 16 per instance was not sufficient. A lightmap size of 64 works much better.

But I am still curious if it is possible to use dfao and baked lighting together.

Hey AquilaAbriel,

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.

Distance Field Ambient Occlusion

The above link will give you a more in depth explanation of Distance Field ambient occlusion and the technical details and limitations to the feature.

Thank you,

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.