# Megascan Trees issue with Procedural Foliage Spawners? UE5.1

**URL:** <https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621>\
**Category:** Quixel Megascans\
**Tags:** unreal-engine, fab\
**Created:** [December 12, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621 "2022-12-12T15:05:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MystixShot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mystixshot/32/88709_2.png) [@MystixShot](https://forums.unrealengine.com/u/MystixShot)\
**Post date:** [December 12, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/1 "2022-12-12T15:05:36Z")

</div>

I’ve been recently trying out Megascan Trees in UE5.  
Everything seems fine on the Mesh viewer or even by placing the trees’ Meshes directly into the world, however, **when I try to use a Procedural Foliage Spawner or paint them in Foliage Mode instead, the wind on the Trees becomes really weird stretching the trees up and down instead of slightly bending them in the direction of the Wind**.

As anyone else come across this issue and knows of a way to fix it?  
I’m using Megascans: European Black Alder and UE5.1

---

<div class="post-metadata">

**Author:** ![kentozdr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kentozdr](https://forums.unrealengine.com/u/kentozdr)\
**Post date:** [December 15, 2022, 10:26am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/2 "2022-12-15T10:26:27Z")

</div>

I’m having the same problem but using European Hornbeam from Megascans.

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 15, 2022, 9:44pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/3 "2022-12-15T21:44:43Z")

</div>

Review the material.  
It’s probably a result of nanite messing with WPO.  
Or something missing, like vertex paint.

---

<div class="post-metadata">

**Author:** ![D13on](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d13on/32/467350_2.png) [@D13on](https://forums.unrealengine.com/u/D13on)\
**Post date:** [December 16, 2022, 6:17pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/4 "2022-12-16T18:17:18Z")

</div>

Hi! Normally we used to use “object pivot location” from source local → to → absolute world space. But for some reason that is currently broken and it needs to be switched to: Source(Instance & Particle Space) → Destination(Absolute World Space). I tried it in 5.1 with both the foliage painter & the procedural foliage volume and it is working as intended again 🙂 👍 ( find the wind functions within the foliage shader’s and adjust)

 ![WindSway_PlacementFix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/b/10b59f96868d8caf25c55fe3847abba736ae1cfa.jpeg)

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 17, 2022, 4:08am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/5 "2022-12-17T04:08:54Z")

</div>

> [@D13on](#):
>
> Normally we used to use “object pivot location” from source local → to → absolute world space.

Now, why use that instead of the dedicated object pivot node? Which should be already in world space I believe…

If its a matter of allowing parameters, throw in a static switch to define a custom value instead…

---

<div class="post-metadata">

**Author:** ![D13on](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/d13on/32/467350_2.png) [@D13on](https://forums.unrealengine.com/u/D13on)\
**Post date:** [December 17, 2022, 1:04pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/6 "2022-12-17T13:04:28Z")

</div>

Hey Most 🙂  
just looked at it again. and the issue itself is with the “ObjectPivotPoint” node, that node itself transforms to world space. Just to clarify this only happens within foliage tool & procedural. When hand placed this issue does not show up. This started with 5.0ea and might be something under the hood that changed i’m not sure. you can try it yourself, blank project with official megascan tree’s just foliage tool a big part of a map and it starts going all wonky.

---

<div class="post-metadata">

**Author:** ![MystixShot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mystixshot/32/88709_2.png) [@MystixShot](https://forums.unrealengine.com/u/MystixShot)\
**Post date:** [December 19, 2022, 1:05am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/7 "2022-12-19T01:05:10Z")

</div>

Thank you for the quick answer. I still need to try this out, but I’ll leave a message here once I do!

---

<div class="post-metadata">

**Author:** ![MystixShot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mystixshot/32/88709_2.png) [@MystixShot](https://forums.unrealengine.com/u/MystixShot)\
**Post date:** [December 19, 2022, 4:00am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/8 "2022-12-19T04:00:47Z")

</div>

This fixed it, thank you @D13on !  
To summarize, “ObjectPivotPoint” node has a TransformPosition node set with Source: Local Space, Destination: World Space.  
It needs to be set as Source: Instance&Particle Space, Destination: World Space

The “ObjectPivotPoint” node can be found in the MF\_SimpleWind in the “Rotator” comment.

---

<div class="post-metadata">

**Author:** ![PhilHermoso1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilHermoso1](https://forums.unrealengine.com/u/PhilHermoso1)\
**Post date:** [February 12, 2023, 11:04pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/9 "2023-02-12T23:04:30Z")

</div>

Thank you. I had to search a bit but finally I found it. For the newbies like me: Go to a material of a mesh that is affected, then dig deeper to the root materials until you come up to the node editor, go to parent material in the section “General” until you get to the material “MA\_Foliage”. In the node editor, search for the node “MF\_SimpleWinds” . There, double click on the node “ObjectPivotPoint”. IN this graph, adjust the node “Transform Position” as indicated above to Source = Instance & Particle Space and Destination = Absolute Worldspace.

---

<div class="post-metadata">

**Author:** ![BarblyQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BarblyQ](https://forums.unrealengine.com/u/BarblyQ)\
**Post date:** [February 20, 2023, 4:56pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/10 "2023-02-20T16:56:32Z")

</div>

@PhilHermoso1 I found the parent material MA\_Foliage, but there’s a isn’t a node called MF\_SimpleWinds, only MF\_SimpleWind (without the S). Not sure if that’s significant, but is no node anywhere called ObjectPivotPoint. Nowhere to be seen.

---

<div class="post-metadata">

**Author:** ![MystixShot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mystixshot/32/88709_2.png) [@MystixShot](https://forums.unrealengine.com/u/MystixShot)\
**Post date:** [February 22, 2023, 12:11am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/11 "2023-02-22T00:11:35Z")

</div>

Hey @BarblyQ the MF\_SimpleWind is a Material Function being used in the parent Material’s logic. Double Click it to enter it and then you can see some comments structuring the logic. One of the Comments is called “rotator” or something similar. In that section you can find the ObjectPivotPoint node there.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![Ubi\_Bubi1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ubi\_Bubi1](https://forums.unrealengine.com/u/Ubi_Bubi1)\
**Post date:** [March 18, 2023, 10:40pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/12 "2023-03-18T22:40:33Z")

</div>

thank you so much! This solution has eluded me for about two months I really can’t thank you enough

---

<div class="post-metadata">

**Author:** ![sasuke965](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sasuke965](https://forums.unrealengine.com/u/sasuke965)\
**Post date:** [May 16, 2023, 9:40am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/13 "2023-05-16T09:40:28Z")

</div>

Can anyone help me do this step in UE5.2 I can’t find that node in the MF\_SimpleWind material

---

<div class="post-metadata">

**Author:** ![rafaelmeneguzzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rafaelmeneguzzo](https://forums.unrealengine.com/u/rafaelmeneguzzo)\
**Post date:** [June 13, 2023, 3:24pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/14 "2023-06-13T15:24:52Z")

</div>

Hey @MystixShot ! Thanks, this solution solve my problem. 🙂

---

<div class="post-metadata">

**Author:** ![lopez1804](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lopez1804](https://forums.unrealengine.com/u/lopez1804)\
**Post date:** [June 18, 2023, 12:28am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/15 "2023-06-18T00:28:31Z")

</div>

> [@MystixShot](#):
>
> ObjectPivotPoint” node

I lowered the wind strength to 0.007 and BOOOOOM!!! Problem solved

---

<div class="post-metadata">

**Author:** ![SleepyLuckyDawg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SleepyLuckyDawg](https://forums.unrealengine.com/u/SleepyLuckyDawg)\
**Post date:** [June 18, 2023, 4:40am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/16 "2023-06-18T04:40:51Z")

</div>

Phil, you are a saint. Bless you my man.

---

<div class="post-metadata">

**Author:** ![TexieZmrde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TexieZmrde](https://forums.unrealengine.com/u/TexieZmrde)\
**Post date:** [July 9, 2023, 9:18pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/17 "2023-07-09T21:18:20Z")

</div>

OMG! it works, I was loosing it here guys 😃

---

<div class="post-metadata">

**Author:** ![ellovizion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ellovizion](https://forums.unrealengine.com/u/ellovizion)\
**Post date:** [August 12, 2023, 3:56am UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/18 "2023-08-12T03:56:55Z")

</div>

Hey there, I’m having this issue as well. The solution above worked BUT for some reason, and only with this particular edit, Unreal won’t let me save. Any suggestions?

---

<div class="post-metadata">

**Author:** ![WILDLAND-IA-DEV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wildland-ia-dev/32/1018188_2.png) [@WILDLAND-IA-DEV](https://forums.unrealengine.com/u/WILDLAND-IA-DEV)\
**Post date:** [September 8, 2023, 7:08pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/19 "2023-09-08T19:08:48Z")

</div>

It might have something to do with folder permissions being that the material function being edited is engine content, not project content.

---

<div class="post-metadata">

**Author:** ![RanaSalmanHassan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RanaSalmanHassan](https://forums.unrealengine.com/u/RanaSalmanHassan)\
**Post date:** [November 20, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621/21 "2023-11-20T15:58:26Z")

</div>

**Thanks Bro**

[Next page](https://forums.unrealengine.com/t/megascan-trees-issue-with-procedural-foliage-spawners-ue5-1/726621.md?page=2)
