# Procedural Foliage/many instances reduce wind-effect

**URL:** <https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818>\
**Category:** World Creation\
**Tags:** procedural-foliage, unreal-engine, trees, multiple-instance, question, wind\
**Created:** [January 22, 2019, 8:37am UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818 "2019-01-22T08:37:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mobelix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mobelix](https://forums.unrealengine.com/u/Mobelix)\
**Post date:** [January 22, 2019, 8:37am UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/1 "2019-01-22T08:37:14Z")

</div>

Hi

I am using the PF spawner to create lots of trees in a landscape.  
The trunk/branches and the leafs are having the same sine based sway effect, and it works perfectly when I just inserts a couple of trees into the landscape. The sway is controlled by material instance parameters and not by a directional wind source,

I have found that the more instanses the PF spawns the less the wind/sway effect, so when its like 10 trees its fine but at some point the sway almost disapears.

I suppose that if I manually create a lot of instances the problem will be the same, but im not sure.

I have read some other post about the same problem but no solutions.

It seems strange that the number of instances can influence each instance.

I have attached part of the material graph for the trunk, which have the effect to bend the whole trunk based on some sway parameters.

 ![266140-sway1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/d/aed1ac631f0fcf08613e67b6da0e6380ed772d2e.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_A](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeff\_A](https://forums.unrealengine.com/u/Jeff_A)\
**Post date:** [January 23, 2019, 7:13pm UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/2 "2019-01-23T19:13:04Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://epicsupport.force.com/unrealengine/s/](https://epicsupport.force.com/unrealengine/s/)

Thanks

---

<div class="post-metadata">

**Author:** ![Mobelix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mobelix](https://forums.unrealengine.com/u/Mobelix)\
**Post date:** [January 25, 2019, 9:02am UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/3 "2019-01-25T09:02:47Z")

</div>

The bug has been submitted now.

---

<div class="post-metadata">

**Author:** ![5353n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/5353n/32/88710_2.png) [@5353n](https://forums.unrealengine.com/u/5353n)\
**Post date:** [May 17, 2024, 6:48pm UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/4 "2024-05-17T18:48:15Z")

</div>

Same issue here. Would appresiate any more info on that.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [May 17, 2024, 6:51pm UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/5 "2024-05-17T18:51:18Z")

</div>

That’s usually fixable by changing the PivotPoint to use the instance friendly pin (the lower pin) of the ObjectPivot node in later versions of UE.

---

<div class="post-metadata">

**Author:** ![5353n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/5353n/32/88710_2.png) [@5353n](https://forums.unrealengine.com/u/5353n)\
**Post date:** [May 17, 2024, 7:05pm UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/6 "2024-05-17T19:05:47Z")

</div>

I just plugged Mesh Particle Pivot Location into my PivotPoint instead of Object Pivot Location, but that changed nothing for me. I’m on 5.0 by the way.

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [May 17, 2024, 8:22pm UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/7 "2024-05-17T20:22:49Z")

</div>

It may be you’re using ObjectRadius - check out this post:

> [@Calculating the screen size of a foliage instance using object bounds?](https://forums.unrealengine.com/t/calculating-the-screen-size-of-a-foliage-instance-using-object-bounds/1275886/5):
>
> No I can’t find anything in there as far as nodes - I think his post on “Custom HLSL” is meaning he has made is own Nodes for that or in a custom source base.

---

<div class="post-metadata">

**Author:** ![5353n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/5353n/32/88710_2.png) [@5353n](https://forums.unrealengine.com/u/5353n)\
**Post date:** [May 18, 2024, 10:48am UTC](https://forums.unrealengine.com/t/procedural-foliage-many-instances-reduce-wind-effect/441818/8 "2024-05-18T10:48:08Z")

</div>

I was using BoundingBoxUV node for extracting height info of instances [following PrismaticaDev wind tutorial] but I replaced it with Absolute World Position (excluding material offsets) and divide it by ObjectPivotPoint and now it’s all fine.

Thanks anyway for your help!
