# is there way to distribute foliage on static mesh based on texture like landscape

**URL:** <https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [November 29, 2023, 9:30am UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087 "2023-11-29T09:30:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddalaitseren1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ddalaitseren1](https://forums.unrealengine.com/u/ddalaitseren1)\
**Post date:** [November 29, 2023, 9:30am UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/1 "2023-11-29T09:30:34Z")

</div>

Pleas help! is there way to distribute foliage on static mesh based on texture like landscape?

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [November 29, 2023, 11:21am UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/2 "2023-11-29T11:21:37Z")

</div>

Hey @ddalaitseren1!

Are you meaning to place foliage based on specific heights? Making foliage change colors? Or something else?

Any additional specifics you provide may go a long way in solving your problem!

---

<div class="post-metadata">

**Author:** ![ddalaitseren1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ddalaitseren1](https://forums.unrealengine.com/u/ddalaitseren1)\
**Post date:** [November 29, 2023, 12:52pm UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/3 "2023-11-29T12:52:46Z")

</div>

hi there! i mean we can populate foliage on landscape using landscapelayerblend, and landscapelayersample right? like when we paint certain connected texture on landscape corresponding grassptype foliage appears. how can i do something like this on static mesh. example i want to scatter foliage on red material  
 ![image_2023-11-29_205236398](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/1/d412d0c58cd8148958c0af08039c16def23d3726.png)

---

<div class="post-metadata">

**Author:** ![Zombie.SoC1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zombie.SoC1](https://forums.unrealengine.com/u/Zombie.SoC1)\
**Post date:** [November 29, 2023, 2:44pm UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/4 "2023-11-29T14:44:25Z")

</div>

i can recommend this tutorial here which is about that, is unreal 4.27 should be compatible with 5 (except the menu looks a bit different). [https://www.youtube.com/watch?v=G6pACRjxLzY](https://www.youtube.com/watch?v=G6pACRjxLzY)

---

<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:** [November 29, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/5 "2023-11-29T15:05:12Z")

</div>

This node

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/9/c797e21d7db6d20fd4c68a7b1708a73a95a48ce3.png)

I think you need the geometry script plugin enable for that.

Another thing you can do is write the texture to a render target, and read that

> [@Reading texture color data using UV values](https://forums.unrealengine.com/t/reading-texture-color-data-using-uv-values/465888/14):
>
> Was there an answer!?

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [December 18, 2023, 10:42am UTC](https://forums.unrealengine.com/t/is-there-way-to-distribute-foliage-on-static-mesh-based-on-texture-like-landscape/1431087/6 "2023-12-18T10:42:01Z")

</div>

Hey @ddalaitseren1,

Checking in! Were the answers above the solution you needed?
