# PCG instanced meshes - Material world position offset scale issue

**URL:** <https://forums.unrealengine.com/t/pcg-instanced-meshes-material-world-position-offset-scale-issue/1901825>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [June 13, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/pcg-instanced-meshes-material-world-position-offset-scale-issue/1901825 "2024-06-13T14:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hOOks7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hOOks7](https://forums.unrealengine.com/u/hOOks7)\
**Post date:** [June 13, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/pcg-instanced-meshes-material-world-position-offset-scale-issue/1901825/1 "2024-06-13T14:42:52Z")

</div>

I’ve created a material to sway some trees. What I’m finding is the scale of the effect seems to change between placing the static meshes and instancing them with PCG.

On the left trees generated from a PCG spline on the right is my test palette.

I thought maybe something would be wrong with the scaling but after plugging the WPO into the diffuse it appears both sets are being given similar values.

For some reason the PCG instances are just applying the WPO at a different scale. Maybe there’s a setting somewhere I’m missing to account for this? Would appreciate any help on this. Thanks!

---

<div class="post-metadata">

**Author:** ![hOOks7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hOOks7](https://forums.unrealengine.com/u/hOOks7)\
**Post date:** [June 13, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/pcg-instanced-meshes-material-world-position-offset-scale-issue/1901825/2 "2024-06-13T16:35:23Z")

</div>

I found the issue.

I was applying a height falloff based on object radius, which apparently is not per instance. I instead changed it to use “Bounds (Instance Local).Extents”, which seems to have solved the issue.

---

<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:** [July 13, 2024, 4:36pm UTC](https://forums.unrealengine.com/t/pcg-instanced-meshes-material-world-position-offset-scale-issue/1901825/3 "2024-07-13T16:36:11Z")

</div>

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