# Foliage flickering ue5.1(5.2)

**URL:** <https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [April 19, 2023, 6:29pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721 "2023-04-19T18:29:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Treeteey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Treeteey](https://forums.unrealengine.com/u/Treeteey)\
**Post date:** [April 19, 2023, 6:29pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/1 "2023-04-19T18:29:19Z")

</div>

im new to UE and now playing with nanite for foliage. The problem is when I enable Nanite in StaticMesh details there starts massive flickering in leaves and grass. Without Nanite it doesnt flicker, but shadows still glitching. Probably there something like z-order or lighting. So much tweaks so i dont know what to do) By the way im working in 5.1/5.2

Update: in 5.1 shadows works good without nanite. With it there occurs flickering

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/4/ad4061d270c473354c9067e61cbf9a3bf9ffbb86.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/4/ad4061d270c473354c9067e61cbf9a3bf9ffbb86.mp4)

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [April 20, 2023, 4:36am UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/2 "2023-04-20T04:36:52Z")

</div>

Hello @Treeteey

Were you able to resolve this issue? If not, do you have two sides(Double sided) checked in the materials?

---

<div class="post-metadata">

**Author:** ![Treeteey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Treeteey](https://forums.unrealengine.com/u/Treeteey)\
**Post date:** [April 21, 2023, 8:11pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/3 "2023-04-21T20:11:29Z")

</div>

I used free asset Megascans Black Alder from epic shop. There is Two sided option in Material instances, switching that off doesnt make any difference. For grass i turned off Nanite and it looks better.  
When turning Mask option (Opacity, roughness, translucency) leaves look terrible but no flickering (as shown in pic)

 ![Mask](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/0/3d00b112cfeeedea6d816a2daa7c736bd8371172.jpeg)

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/1/211c160a4004b2d80bddf2469d44f087fd3caa84.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/1/211c160a4004b2d80bddf2469d44f087fd3caa84.mp4)

---

<div class="post-metadata">

**Author:** ![Treeteey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Treeteey](https://forums.unrealengine.com/u/Treeteey)\
**Post date:** [April 22, 2023, 7:15pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/4 "2023-04-22T19:15:48Z")

</div>

So here is the part of solution for that particular problem. In texture for leaves go to Level of Details → Mip Gen Settings → switch to “NoMipmaps” (also few others will help)

 ![mipGenSetting(LOD)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/d/2ad4e5d47ff33e40d903ef7bb8c76f4d16ee19de.jpeg)

---

<div class="post-metadata">

**Author:** ![DeNBeDmIGsGu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeNBeDmIGsGu](https://forums.unrealengine.com/u/DeNBeDmIGsGu)\
**Post date:** [May 18, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/5 "2023-05-18T15:05:48Z")

</div>

I had the same problem. I tried turning off the wind with BP\_GlobalFoliageActor (controlling foliage), and the flickering stopped. I did want wind to work, so just removing wind didn’t solve the whole problem, since i then couldn’t use wind. I then went to the materials, for this instance SM\_BlackAlder\_field\_01 (instance), and went into try and change the wind settings on the materials. Inside the material instance there is the setting “wind”, and after enabling “advanced wind”, in both checkboxes, all flickering stopped, and the wind was still there, and still following the BP\_GlobalFoliageActor.  
The flickering wasn’t only on the leafes, but also the trunk and other materials on the tree. So i just enabled the advanced wind checkboxes on all materials that were flickering, and it stopped.

---

<div class="post-metadata">

**Author:** ![santaclausshelp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/santaclausshelp/32/700801_2.png) [@santaclausshelp](https://forums.unrealengine.com/u/santaclausshelp)\
**Post date:** [May 22, 2023, 2:23pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/6 "2023-05-22T14:23:46Z")

</div>

Thats what worked for me! Thanks!

---

<div class="post-metadata">

**Author:** ![LeoRubira](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leorubira/32/726557_2.png) [@LeoRubira](https://forums.unrealengine.com/u/LeoRubira)\
**Post date:** [July 20, 2023, 2:07am UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/7 "2023-07-20T02:07:06Z")

</div>

None of the previous comments on that post worked for me. I found the solution to the same problem that Treeteey has been having with the following tutorial:

[https://www.youtube.com/watch?v=wVMImHI24QI](https://www.youtube.com/watch?v=wVMImHI24QI)

---

<div class="post-metadata">

**Author:** ![DmitriiGK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DmitriiGK](https://forums.unrealengine.com/u/DmitriiGK)\
**Post date:** [December 11, 2023, 10:49pm UTC](https://forums.unrealengine.com/t/foliage-flickering-ue5-1-5-2/1133721/8 "2023-12-11T22:49:20Z")

</div>

Thanks a lot, It worked!
