Foliage Shadows too dark

Hi,
I’ve been having this issue for a long time where I’m getting inconsistent lighting results with foliage. The actors are usually either too bright or too dark. These last few light builds have been dark. (See attached images).

As you can see the results in Lighting only make sense, but Detail lighting Only are overly dark.
I’ve tried adjusting the size of the lightmap on the foliage actors, I’ve selected ‘Generate distance field as if two sided’ and lowered the ‘Min Occlusion’ on the skylight to 0. But still have the same issue.
The plants have a masked material, shading model is ‘two sided foliage’
The lighting in the scene is a static Directional Light with one skylight actor

Any help would be appreciated.

Regards,

And here’s the second part of my query. Without changing any settings I alternately get baked lighting that looks like this:

Which is slightly better than the too dark result, but still doesn’t seem accurate.
On this bake I did get a warning that ‘the total lightmap size for this InstancedStaticMeshComponent is large, consider reducing the component’s lightmap resolution or number of mesh instances in this component’
Not sure if that effects the result.

Hey ,

If you could answer these questions we can determine the cause of the issue and get your foliage lit correctly.

  • Would you provide me with the Mobility type of your Directional Light Source and your Skylight. i.e. Static, Stationary, or Movable?
  • In your Skylight actor, do you have the ‘Lower Hemisphere is Black’ option checked?
  • Would you provide me with a screenshot of your Foliage instance settings for any of the foliage you are experiencing issues?
  • What are the resolutions you are setting for your foliage you have in your scene?

Thank you,

Hi Andrew,
thanks for the reply.

  • Directional Light and Skylight are both set to Static.
  • Skylight does have ‘lower hemisphere black’ checked’

Here’s a screenshot of the instance settings on one of the foliage actors.

The resolutions for the foliage are as follows

instance lightmap resolution : 16

Original mesh in content browser has the following resolutions

min lightmap resolution: 64

lightmap resolution: 64

texture resolution Max in-Game: 512

I did a light bake with the Skylight ‘lower hemisphere black’ unchecked to see if it made a difference but it didn’t really:

Try changing the mobility of your Directional Light and Skylight to ‘Stationary’

This can increase the overall quality without having a huge impact on performance as they support baked and dynamic shadows.

In regards to your lightmap resolutions, try setting the Min Lightmap Resolution to 32 and keeping your instance resolution to 16.

You can also try editing the Indirect Lighting settings within the ‘World Settings’ tab. I was able to modify some of these values and get a clean result with my foliage.

61010-worldsettings.png

Let me know if this was helpful, or if you need further assistance.

Cheers

Hi Andrew
thanks for the suggestions.
I’ve tried it out and it does look as I would expect.

Unfortunately changing the Directional Light and skylight to Stationary takes a good chunk out of my frame rate (about 20-30fps on my PC) and this current level is already having trouble hitting the required frame rate. I’m going to try another bake with just the skylight set to static to see what changes.
Regards,