# UE 5 Early Access issue/glitch with my foliage

**URL:** <https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0\
**Created:** [July 9, 2021, 12:25pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781 "2021-07-09T12:25:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nephiriane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nephiriane/32/88707_2.png) [@Nephiriane](https://forums.unrealengine.com/u/Nephiriane)\
**Post date:** [July 9, 2021, 12:25pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/1 "2021-07-09T12:25:01Z")

</div>

Hi all !  
I’m new to Unreal Engine and this forum. For a project I need to build a landscape with quite some foliage, trees, grass and so on.  
The issue is that when I started to paint my foliage some… “glitches” just appeared, rapidly flashing (See video linked). I don’t really know where to look so that’s why I’m asking here.

Here is the video of the issue : [Issue Unreal Engine 5 early access - YouTube](https://youtu.be/NUzlIQO5IvE)

Can someone please help me ?

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [July 14, 2021, 1:11pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/2 "2021-07-14T13:11:42Z")

</div>

Hey! Are you using virtual shadow maps? The flickering could be related to that. The strange noise is caused by Lumen GI.

Some console commands you can try:

r.Shadow.Virtual.Clipmap.LastLevel = 22

you can set that to 30 and see if the shadows are getting better.

r.Lumen.ScreenProbeGather.Temporal.DistanceThreshold = 30

try 850 here and see if its better

Hope it helps.

---

<div class="post-metadata">

**Author:** ![Nephiriane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nephiriane/32/88707_2.png) [@Nephiriane](https://forums.unrealengine.com/u/Nephiriane)\
**Post date:** [August 11, 2021, 5:48pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/3 "2021-08-11T17:48:13Z")

</div>

Thanks for your reply !

I’m sorry I was away a long time and did not see your answer sooner 😕  
I’ll check if I’m using virtual shadow maps and try your solution when I get the time and will keep you posted !

Thanks again !

---

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [November 15, 2021, 4:20am UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/4 "2021-11-15T04:20:07Z")

</div>

In case anyone else is wondering, Braitenbug’s comment is indeed the fix for flickering grass and foliage shadows in UE5 with Lumen.

(r.Lumen.ScreenProbeGather.Temporal.DistanceThreshold is the one you need to adjust)

---

<div class="post-metadata">

**Author:** ![Nephiriane](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nephiriane/32/88707_2.png) [@Nephiriane](https://forums.unrealengine.com/u/Nephiriane)\
**Post date:** [November 22, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/5 "2021-11-22T15:42:34Z")

</div>

Hi !  
Thanks for the confirmation that it works !  
I tried myself and indeed it does the trick but isn’t there a permanent solution to this ? I mean everytime I close Unreal the next time I open my project I need to redo the all thing in the console command.

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [November 23, 2021, 11:20am UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/6 "2021-11-23T11:20:03Z")

</div>

You can build a simple editor widget that writes console commands or you can put them in the .ini.  
MyProject\Config\DefaultEngine.ini

---

<div class="post-metadata">

**Author:** ![Krabworks](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krabworks/32/1194549_2.png) [@Krabworks](https://forums.unrealengine.com/u/Krabworks)\
**Post date:** [December 7, 2021, 3:54am UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/7 "2021-12-07T03:54:55Z")

</div>

Yes, I put it in the .ini to avoid having to do this each time. That will be a permanent fix.

---

<div class="post-metadata">

**Author:** ![Sail90](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sail90](https://forums.unrealengine.com/u/Sail90)\
**Post date:** [March 28, 2022, 8:41pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/8 "2022-03-28T20:41:12Z")

</div>

Hey man. Do you know what else could cause this issue? Asking because your solution is not fixing it. Thank you in advance

---

<div class="post-metadata">

**Author:** ![Braitenbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/braitenbug/32/573169_2.png) [@Braitenbug](https://forums.unrealengine.com/u/Braitenbug)\
**Post date:** [March 29, 2022, 8:22pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/9 "2022-03-29T20:22:25Z")

</div>

Hey. They changed a lot from the ea to the preview. There are ways to improve noise on foliage but that will have a huge performance impact. Basically you can improve it a lot by cranking up the final gather quality and setting the Global Illumination quality to cinematic. If I find a better solution to deal with the noise on grass I’ll post it here.

Update:

Try setting:

r.Lumen.ScreenProbeGather.TemporalFilterProbes = 1

That made difference for me.

---

<div class="post-metadata">

**Author:** ![Nelly2116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nelly2116](https://forums.unrealengine.com/u/Nelly2116)\
**Post date:** [May 3, 2022, 9:50pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/10 "2022-05-03T21:50:48Z")

</div>

What I found isn’t really a solution, but more of a work-around. I realized my foliage was flickering when the directional light was the only light hitting it, but when I added a point light or rectangular light so that it was hitting it too then the flickering was reduced greatly. The main thing is if your scene is supposed to only be lit up by the directional light then adjust the intensity and placement of the point or rectangular light so it blends in with the scene and isn’t noticeable. I’ve found the easiest way to do that is to position the directional light so it’s pointed directly at the flickering foliage. That way that area is so bright that even a point or rectangular light with default intensity will still blend in really well.

---

<div class="post-metadata">

**Author:** ![Nelly2116](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nelly2116](https://forums.unrealengine.com/u/Nelly2116)\
**Post date:** [May 7, 2022, 3:27am UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/11 "2022-05-07T03:27:53Z")

</div>

EDIT: I found actual solutions and reasons to certain foliage problems in William Faucher’s vid here [Troubleshooting FOLIAGE issues in Unreal Engine - YouTube](https://www.youtube.com/watch?v=Ar3vvygirLU)

Check this vid out and see if any of these solutions work for you.

---

<div class="post-metadata">

**Author:** ![eaglelordhua1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eaglelordhua1](https://forums.unrealengine.com/u/eaglelordhua1)\
**Post date:** [June 8, 2022, 5:43am UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/12 "2022-06-08T05:43:48Z")

</div>

Hi Nelly,

Thank you for the help! We cannot use youtube. Can you pls explain how they did it? Thanks alot!

---

<div class="post-metadata">

**Author:** ![Patzrowl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Patzrowl](https://forums.unrealengine.com/u/Patzrowl)\
**Post date:** [September 11, 2022, 1:01pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/13 "2022-09-11T13:01:22Z")

</div>

In the William Faucher’s video he talks about 4 different problems with foliage. But non of those was about the flickering I was experiencing.

In my case flickering, those noisy black stains moving in foliage, only was solved when setting the scalability to cinematic.

William fixes a similar problem that appears when using wind on your foliage. It’s a complex work araound what he does, basically create a new foliage using the foliage he wants to use, and setting in that new foliage the Evaluate World possition offset ON.

Other problems solved are about shadows or foliage that disappear when zooming out.

---

<div class="post-metadata">

**Author:** ![Sartox1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sartox1/32/630006_2.png) [@Sartox1](https://forums.unrealengine.com/u/Sartox1)\
**Post date:** [February 20, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/ue-5-early-access-issue-glitch-with-my-foliage/239781/14 "2023-02-20T12:02:24Z")

</div>

I too found this video but creating a BP requires adding all the foliage I already added again, which is a bit of a bummer. If anyone has a workaround that does not require creating foliage again, it would be much appreciated!
