# Calculating the screen size of a foliage instance using object bounds?

**URL:** <https://forums.unrealengine.com/t/calculating-the-screen-size-of-a-foliage-instance-using-object-bounds/1275886>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [August 28, 2023, 11:12pm UTC](https://forums.unrealengine.com/t/calculating-the-screen-size-of-a-foliage-instance-using-object-bounds/1275886 "2023-08-28T23:12:26Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [August 29, 2023, 9:22am UTC](https://forums.unrealengine.com/t/calculating-the-screen-size-of-a-foliage-instance-using-object-bounds/1275886/14 "2023-08-29T09:22:33Z")

</div>

The ObjectScale node seems to reflect the correct scale, so something like this kind of works:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/5/0c518675c76870049c860e9860e143ff5529b396.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/b/8cb90c88cbb627e47d65639cad80dcc71f1d82f9.jpeg)

The Custom node is just “return GetPrimitiveData(Parameters).InstanceLocalBoundsExtent.xyz;”

The only problem now is that the rotation is wrong…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/3/a333a6134921c60795b3c327dfeb31bad4294293.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/2/892e31d4f529d1201019ecdd2f123e68d34770c6.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/9/e6973a6216401f6b7015a9a1ebc3de14f6bc4351.jpeg)

Is that the desired effect?

---

_[View the full topic](https://forums.unrealengine.com/t/calculating-the-screen-size-of-a-foliage-instance-using-object-bounds/1275886)._
