# Foliage not being lit at all

**URL:** <https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983>\
**Category:** Rendering\
**Tags:** unreal-engine, Foliage, lighting-problem, Rendering, Lighting, question\
**Created:** [October 11, 2015, 9:06pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983 "2015-10-11T21:06:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 11, 2015, 9:06pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/1 "2015-10-11T21:06:50Z")

</div>

![62258-asdwfawf.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/a/4cab748d9dc7e1c454abc032eb1aa802208bc77e.jpeg)

As you can see from the image, my grass planes seem to be not receiving any light, and as such are far too dark when in the lighted areas.

Here is my material setup:

 ![62259-awf.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/c/cbcd6ec9baba9881ea529514be4500433af36471.png)

Where did I go wrong? Also, the foliage is set up to not cast static shadows, but that’s about it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [October 13, 2015, 2:47pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/2 "2015-10-13T14:47:40Z")

</div>

Hello TommyZakh,

It appears your foliage is receiving lighting. As you can see there are shadows that are being cast on the ground underneath the planes. If you go to your main viewport and you go to lit mode you can see all of the mesh’s being lit. If it does not show up in that viewport then they are not being lit.

Try unplugging the subsurface scattering. Also you can open up the bush mesh that you have and changing the resolution of the lighting to something higher.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 15, 2015, 1:05am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/3 "2015-10-15T01:05:06Z")

</div>

I know it is casting shadows, but I am more concerned by it not changing its brightness when in shadow or out in the light. Also, I saw the same effect using the Default shading model.

Do you mind explaining what you mean by “resolution of the lighting”? I thought you can only configure lightmass resolution for static-baked objects, not foliage with static shadows disabled, or maybe I’m missing something.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [October 15, 2015, 1:34pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/4 "2015-10-15T13:34:00Z")

</div>

So, If you double click on your mesh inside of your details panel you will open up it’s properties window. On the right side of there is a section called Static Mesh Settings. In that section there is a tab called Light Map Resolution. From there you can adjust this to something like 252x256 or 512x512. The increments work like texture map resolution so you can use that as a guide for how big you want to make.

Now, I believe what is causing the light not changing is partially due to the subsurface scattering. If you unplug the subsurface scattering do you still see the same result? Also, increase the intensity of the light you have in your project that is casting those shadows. I believe you will see noticeable difference in what is receiving light. In your scene I see more light being received by the foliage that is in the direct sunlight.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 17, 2015, 10:44pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/5 "2015-10-17T22:44:58Z")

</div>

I get even worse results if I unplug the subsurface scattering:

 ![63088-whitegrass.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/5/895ab1ea5e57d44f07ba7111a3b1b6bee08a5704.jpeg)

If I set my shading model to Default, my results are the same as when I have the subsurface scattering enabled i.e. subsurface scattering is not working for me.

My lightmap resolution is set to 64 right now, which is more than excessive for this grass, and leads to really long build times, but just for sake of testing. If I try to make my sun 20 times brighter, the grass becomes dark spots on the extremely bright ground:

 ![63089-darkspots.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/1/ee13050f660872d687fa615646da1f9372dbb9e9.jpeg)

I am sure that something is either wrong with my scene lighting or my material, but it isnt subscattering or the brightness.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [October 19, 2015, 2:55pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/6 "2015-10-19T14:55:14Z")

</div>

Interesting. I would like to test this on my end if you are willing. If you would provide a link to dropbox with your .uproject Content and Config files from your project files. I will then attempt to recreate this issue on my end to determine whether this is a bug or not.

If you are uncomfortable with posting a link here you can go to our forums and send me a private message. You can do this by going to the forums, clicking the advanced option button, and navigating down to search for user name. Enter my name there and you will be able to send me a private message.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 20, 2015, 1:37am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/7 "2015-10-20T01:37:44Z")

</div>

Is a google Drive link ok? Or does it have to be a Dropbox?

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [October 20, 2015, 1:45am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/8 "2015-10-20T01:45:00Z")

</div>

They just need a reliable hosting site that is allowed on their end, they’ve suggested Dropbox to me before.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 20, 2015, 3:37am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/9 "2015-10-20T03:37:58Z")

</div>

I’ll take that as a yes, thank you for clarifying.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [October 20, 2015, 2:29pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/10 "2015-10-20T14:29:27Z")

</div>

A google Drive link will work as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [October 20, 2015, 9:26pm UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/11 "2015-10-20T21:26:03Z")

</div>

So, after downloading your project and experimenting I found a known issue very similar to this. It appears to be a static/stationary lighting issue where a lighting build is required and the engine collects a lighting cache. Essentially what happens is the lighting is derived from a singly source in the cache instead of driving it from the light that is influencing the foliage the most.

Currently this issue is on the TO DO list but I do not have an ETA for when or if it will be handled. The ticket number associated with it is UE-20029.

I have however a work around for you so you can progress with your development. Change all of your lights to movable so that calculation will occur in real time and bypass the cache calculation. Then go to your world settings and under Lightmass click the checkbox for Force No Precomputed Lighting. This will eliminate the build. Lastly, “and please save before you do this as you will need to restart the engine,” go to your Project Settings \> Rendering \> Turn off the checkbox for allow static lighting.

I was able to to get this. I recorded a movie of some grass that is moving between shadow and light. There isn’t a huge noticeable difference but you can tell that the light is influencing the grass. I apologize in advance for the quality.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/f/3bfabdc13f0d1d83498fdf7697e51a9e0ef47568.jpeg "ScreenCapture 10 20 2015 5 18 16 PM") ](https://www.youtube.com/watch?v=ooFJwZnjDSE)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 21, 2015, 2:27am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/12 "2015-10-21T02:27:18Z")

</div>

Sorry for taking up so much of your time and being so annoying about this, but thanks to you it is finally working as I wanted it to:

 ![63503-grassworks.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/4/434dde137c68c9f886972ef1a5cf35b46c60a696.png)

And the dynamic lighting could be really beneficial in both the short term and long term, so thank you again!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_78a5feb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_78a5feb8](https://forums.unrealengine.com/u/anonymous_user_78a5feb8)\
**Post date:** [October 21, 2015, 4:11am UTC](https://forums.unrealengine.com/t/foliage-not-being-lit-at-all/334983/13 "2015-10-21T04:11:46Z")

</div>

Using the fully dynamic lighting model results in nice looking foliage, among other things.
