# How to make trees and folliage interact with object (stop it from going through walls and roofs) & Black Meshes and foliages when using hdri backdrop

**URL:** <https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine, Foliage, question\
**Created:** [October 25, 2023, 1:54pm UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633 "2023-10-25T13:54:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 25, 2023, 1:54pm UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/1 "2023-10-25T13:54:03Z")

</div>

How do you make so trees and foliages bend when it has contact with walls etc, or at least stopping it from going through walls and roofs ?

Edit #1:  
And why my house and foliages are black when using hdri backdrop, I use real 1:1 scale in centimeter to model the house in blender, when i import it as fbx to ue5 it’s so much bigger than the default floor object in archviz blank template

Edit#2  
Attached Screenshot with hdri backdrop

 ![HighresScreenshot00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/9/5d911064596de94247dd6b1225f7012c9356215d.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 25, 2023, 2:04pm UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/2 "2023-10-25T14:04:12Z")

</div>

You need to recode the material to use ‘mesh distance fields’. Just like they do for avoiding the player

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/5/705f7fef24862344776c12f5a7a6608c628b22c5.jpeg "UE4 Interactive Foliage Tutorial UE5") ](https://www.youtube.com/watch?v=qQmQDWOACo0)

There is no ‘tick box’ for this 🙂

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 3:52am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/3 "2023-10-26T03:52:27Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 4:03am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/4 "2023-10-26T04:03:13Z")

</div>

Sorry to ask for more, but why my house and foliages are black when i use hdri backdrop and goodsky, but it’s fine when using sunsky

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2023, 7:28am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/5 "2023-10-26T07:28:45Z")

</div>

I can’t recall, does Goodsky have a skylight?

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 7:59am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/6 "2023-10-26T07:59:42Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/7/f0721e12558747d2303f9a3f17d2abc6db589c19.png)  
I guess not, so i need to add sunsky on top of good sky ?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2023, 8:03am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/7 "2023-10-26T08:03:09Z")

</div>

No, just put a skylight in the scene

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/f/76f09a7bb9efa90f85bdb3b2687165a59b95f20f.png)

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 8:14am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/8 "2023-10-26T08:14:04Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 8:18am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/9 "2023-10-26T08:18:11Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/3/6e3265ae1b5bfc214b88a505088eec2352722390.jpeg)  
Thank you it works ! But now there’s black on the bottom, sorry for asking a lot

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 26, 2023, 8:24am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/10 "2023-10-26T08:24:38Z")

</div>

OK, now exponential height fog…

---

<div class="post-metadata">

**Author:** ![Krissttiian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krissttiian1](https://forums.unrealengine.com/u/Krissttiian1)\
**Post date:** [October 26, 2023, 8:30am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/11 "2023-10-26T08:30:51Z")

</div>

Thank you very much it’s fixed now !

 ![HighresScreenshot00003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/d/19d551ee1d6dc683777857bdcfdb60a6bef47471.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 25, 2023, 8:31am UTC](https://forums.unrealengine.com/t/how-to-make-trees-and-folliage-interact-with-object-stop-it-from-going-through-walls-and-roofs-black-meshes-and-foliages-when-using-hdri-backdrop/1344633/12 "2023-11-25T08:31:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
