# Grass Lighting Problem

**URL:** <https://forums.unrealengine.com/t/grass-lighting-problem/40745>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [September 4, 2015, 6:49pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745 "2015-09-04T18:49:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [September 4, 2015, 6:49pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/1 "2015-09-04T18:49:35Z")

</div>

Hiya. I’m currently building a small scene in UE4 and would like to add some foliage to it. To start with I modeled some grass and baked texture maps from 3Ds . After importing the grass as an OBJ to UE4 I used it within the foliage tool to paint a small area for a test. On the images attached you can see the difference in lighting between a static mesh ( casts and receives shadows, but still doesn’t look right IMO ) and the instances I painted with the foliage tool ( casts shadows, but it doesn’t receive any ). I read a few threads with regards to the very same issue, and tried everything I could think of, but with no success. The material for the grass is set to two sided and Masked mode. Have a look at the images please and let me know if you got any ideas.

Many thanks in advance! 😉

![Capture_02.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/c/ecff47939a9812be00f4ec21df94521bf20c6363.jpeg)

 ![Capture_01.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/7/57ec252ad19b0814817200f797adbcfcc5b87923.jpeg)

 ![Capture_03.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/979c18d00540be40f6854882b625339e45cb33b9.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_923c79df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_923c79df](https://forums.unrealengine.com/u/anonymous_user_923c79df)\
**Post date:** [September 4, 2015, 6:56pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/2 "2015-09-04T18:56:50Z")

</div>

Make sure that you use a foliage shader for your mesh -\> enable two sided foliage in the blend mode and set up a subsurface colour 🙂  
Also make sure to enable "dynamic lights (moveable)

---

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [September 5, 2015, 12:01am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/3 "2015-09-05T00:01:19Z")

</div>

Hello and thanks for your reply. I did what you advised and the grass looks way better with the new subsurface material. However it still does not receive any shadows. I’m using UE4 for first time so thanks a bunch for the help ! 😉

 ![Capture_01.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/9/e9b07d8c96bdd91c5b119f9297ff9752db87ecf7.jpeg)

![770aacf34d948fc3698f589ecdd4c560d56c1541.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![f87addda2074bd05d8e0de09d1dffae05de38899.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [September 5, 2015, 12:34am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/4 "2015-09-05T00:34:28Z")

</div>

I’m sorry, I think I got the “Dynamic Light” part wrong. I thought you meant to tick the “Affect Dynamic Indirect Lighting” in the foliage options panel. I found the Static, Stationary and Movable options of the scene light. At the time of my post it was set to Stationary. I assume that the Movable option is the one you told me to switch on. I did just now and built the lighting again which made the grass to receive shadows, but now some of my other assets stopped casting shadow.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_923c79df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_923c79df](https://forums.unrealengine.com/u/anonymous_user_923c79df)\
**Post date:** [September 5, 2015, 8:43am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/5 "2015-09-05T08:43:54Z")

</div>

> [@Freemad;372162](#):
>
> I’m sorry, I think I got the “Dynamic Light” part wrong. I thought you meant to tick the “Affect Dynamic Indirect Lighting” in the foliage options panel. I found the Static, Stationary and Movable options of the scene light. At the time of my post it was set to Stationary. I assume that the Movable option is the one you told me to switch on. I did just now and built the lighting again which made the grass to receive shadows, but now some of my other assets stopped casting shadow.

You dont have to build the light when you use dynamic lights -\> just set all to dynamic  
Which meshes aren’t casting any shadows?

---

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [September 5, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/6 "2015-09-05T22:36:55Z")

</div>

OK, that’s where I got it all wrong, I thought I need light maps for absolutely everything and then I have to build the lighting. I’m used to pre-render stuff and now using an engine and real time stuff for first time got me a little bit confused. Anyway, I got only one light in the scene and here’s a few images showing how everything looks with light set to Movable and Stationary with built lighting.

Movable

![ddf30e47cdced2fb21a6ca10fbc9ee70ed08b824.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![61350b00ee69307f6e827572a73587194b7c7bd8.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![deea85de8b081fd0f663dc2e7cc87dfbbb0017bd.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Stationary

 ![Stationary.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/3/b3b81ca65b99bda11dbd70ce53506bebab2992fe.jpeg)

![65fd906ef236487852684af35621126371f954d9.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![3137ed473dc90cfc3dabe8be1839c5ce0c0371b2.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [September 7, 2015, 3:55pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/7 "2015-09-07T15:55:41Z")

</div>

Any other thoughts why it’s not working?

Thanks

---

<div class="post-metadata">

**Author:** ![Freemad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freemad](https://forums.unrealengine.com/u/Freemad)\
**Post date:** [October 1, 2015, 2:20am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/8 "2015-10-01T02:20:12Z")

</div>

Well I managed to make it work, for what I need it anyway. Since I’m only taking beauty shots, I set all the lighting settings back to static. I really liked working with Unreal and will certainly continue to learn it, and eventually complete a bigger and more complicate project.

You can see the final result here:

://emil-bachvarov.wix/portfolio#!rum/c1np8

Thanks again for the help 😉

---

<div class="post-metadata">

**Author:** ![duyth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@duyth](https://forums.unrealengine.com/u/duyth)\
**Post date:** [October 5, 2015, 5:46am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/9 "2015-10-05T05:46:47Z")

</div>

nice one. may i know how you fixed the issue?  
also, really like your Rum Factory. You can actually start making more stuff like this and put on to UE market as a package lol

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [August 14, 2016, 3:53am UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/10 "2016-08-14T03:53:29Z")

</div>

> [@Freemad;390386](#):
>
> Well I managed to make it work, for what I need it anyway. Since I’m only taking beauty shots, I set all the lighting settings back to static. I really liked working with Unreal and will certainly continue to learn it, and eventually complete a bigger and more complicate project.
> 
> You can see the final result here:
> 
> ://emil-bachvarov.wix/portfolio#!rum/c1np8
> 
> Thanks again for the help 😉

I am working with grass in my scene and lighting has to be static / baked. I am getting what you got in the screenshots in your OP ☹

What did you do to achieve such a wonderfully lit grass as seen in your website portfolio images ?

Thanks beforhand

---

<div class="post-metadata">

**Author:** ![Rashedal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rashedal](https://forums.unrealengine.com/u/Rashedal)\
**Post date:** [June 8, 2017, 3:50pm UTC](https://forums.unrealengine.com/t/grass-lighting-problem/40745/11 "2017-06-08T15:50:03Z")

</div>

I too would like to know how you fixed the horrible shadow errors!
