# rdTools

**URL:** <https://forums.unrealengine.com/t/rdtools/129091>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [July 23, 2019, 6:20pm UTC](https://forums.unrealengine.com/t/rdtools/129091 "2019-07-23T18:20:21Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 3:27am UTC](https://forums.unrealengine.com/t/rdtools/129091/126 "2023-04-27T03:27:19Z")

</div>

The default:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/4/064540e657f68eacbd1a591547d6f04a83e43d6e.png)

---

<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:** [April 27, 2023, 4:13am UTC](https://forums.unrealengine.com/t/rdtools/129091/127 "2023-04-27T04:13:11Z")

</div>

Sorry, yes - that’s only available in UE5. Just the brightness and saturation then…

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 6:53pm UTC](https://forums.unrealengine.com/t/rdtools/129091/128 "2023-04-27T18:53:22Z")

</div>

How should the “Cast Shadow” option work for impostors? Is this behavior of the shadows expected, or is that a bug?

[https://i.gyazo.com/8219900a01d6a01cf26ec3543eec3d43.mp4](https://i.gyazo.com/8219900a01d6a01cf26ec3543eec3d43.mp4)

There seems to be exactly two different angles (opposite of each other) where the shadows look correct, but from all other angles, the shadow is jumping around a lot and not making much sense.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/rdtools/129091/129 "2023-04-27T19:13:30Z")

</div>

Another thing I noticed is that the impostor does not seem to follow the scale of the mesh at all - the impostor is always displayed as if the mesh would have a scale of 1/1/1, even if the mesh has a different scale, like how foliage is usually randomly scaled. How can that be fixed?

---

<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:** [April 27, 2023, 7:25pm UTC](https://forums.unrealengine.com/t/rdtools/129091/130 "2023-04-27T19:25:04Z")

</div>

> [@John\_Alcatraz](#):
>
> How should the “Cast Shadow” option work for impostors? Is this behavior of the shadows expected, or is that a bug?

That’s expected I’m afraid - ImpostorBaker does the same thing - they do work in UE5, but not in UE4 - I’m wanting to look into it more. Using Shadow Distance Fields is a more optimal way of shadowing, and doesn’t have issues like 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:** [April 27, 2023, 7:26pm UTC](https://forums.unrealengine.com/t/rdtools/129091/131 "2023-04-27T19:26:26Z")

</div>

> [@John\_Alcatraz](#):
>
> the impostor does not seem to follow the scale of the mesh at all - the impostor is always displayed as if the mesh would have a scale of 1/1/1, even if the mesh has a different scale, like how foliage is usually randomly scaled. How can that be fixed?

I’m not getting that issue:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/a/8ea271fd3507431d3ee7ed47d733cfadc5c8049a.jpeg)

Are you using the ImpostorBaker plugin that comes with 4.27 or a different one?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 8:45pm UTC](https://forums.unrealengine.com/t/rdtools/129091/132 "2023-04-27T20:45:40Z")

</div>

I’m using the default ImpostorBaker plugin that comes with 4.27.

It seems only the X-scale is working - so uniform scale works for me, but when X/Y/Z each have different scales, the impostor is rendered as if only the X scale would exist. I’m primarily only scaling the Z axis of my meshes, so 1/1/2 is rendered as 1/1/1. 2/1/1 is rendered as 2/2/2.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 9:03pm UTC](https://forums.unrealengine.com/t/rdtools/129091/133 "2023-04-27T21:03:48Z")

</div>

I am using both regular shadows and distance field shadows, depending on the exact graphics settings. Distance field shadows do have some performance issues in some cases that regular shadows don’t have, so they are only usable sometimes.

But I also see a significant shadow issue on the impostors with distance field shadows, the self shadowing does look very incorrect, the impostor is shadowing itself when it should not do that:

No DF Shadows:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/a/2fae7c4f8aea24b5df6347885db4c962379a2939.jpeg)

DF Shadows:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/6/d269df6c9c90ad477286e6c5f170531664a224a3.jpeg)

---

<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:** [April 27, 2023, 9:10pm UTC](https://forums.unrealengine.com/t/rdtools/129091/134 "2023-04-27T21:10:44Z")

</div>

> [@John\_Alcatraz](#):
>
> It seems only the X-scale is working - so uniform scale works for me, but when X/Y/Z each have different scales, the impostor is rendered as if only the X scale would exist. I’m primarily only scaling the Z axis of my meshes, so 1/1/2 is rendered as 1/1/1. 2/1/1 is rendered as 2/2/2.

I see what you mean - it looks like that happens for all impostors in all versions of UE - I’ll have a look and see if there’s anything I can do…

---

<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:** [April 27, 2023, 9:31pm UTC](https://forums.unrealengine.com/t/rdtools/129091/135 "2023-04-27T21:31:43Z")

</div>

> [@John\_Alcatraz](#):
>
> But I also see a significant shadow issue on the impostors with distance field shadows

Yes, that’s normal too - you can fix that by adjusting the “Distance Field Self Shadow Bias” setting in the static mesh - something like “800” will help:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/e/1ce715485050b8272c8f08380cedda2d59607695.png)

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 9:39pm UTC](https://forums.unrealengine.com/t/rdtools/129091/136 "2023-04-27T21:39:56Z")

</div>

I have tried that, but it doesn’t seem to help much in this case. Here is it set to 800:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/e/bfe9216893f976043d09d8e4f3e285ad84cfc64c.jpeg)

And here set to 5000:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/8/a08f6a10857dbd458332899d09a2522684368fce.jpeg)

So as you see, the incorrect self-shadowing is still there, no matter how high I put that value.

---

<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:** [April 27, 2023, 9:59pm UTC](https://forums.unrealengine.com/t/rdtools/129091/137 "2023-04-27T21:59:20Z")

</div>

> [@John\_Alcatraz](#):
>
> So as you see, the incorrect self-shadowing is still there, no matter how high I put that value

I’ve been able to control it ok in 4.27 - the only thing I can think of - is that that is possibly a static mesh actor, and you have “Override Distance Field SelfShadowBias” ticked:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/a/91a4cc732b0f68397ce71501e8d5e5c215f1fa2b.png)

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 10:07pm UTC](https://forums.unrealengine.com/t/rdtools/129091/138 "2023-04-27T22:07:20Z")

</div>

I do not have that ticked, no. You can see in my screenshot that there is some change going from 0 to 800 to 5000, but it’s quite tiny, it mostly stays the same.

---

<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:** [April 27, 2023, 10:23pm UTC](https://forums.unrealengine.com/t/rdtools/129091/139 "2023-04-27T22:23:04Z")

</div>

I hadn’t seen the shift - yes those trees are pretty big - what about 50.000 or something higher than 5.000?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 10:33pm UTC](https://forums.unrealengine.com/t/rdtools/129091/140 "2023-04-27T22:33:31Z")

</div>

5000, 50000 and 500000 all look identical. only between 0, 800 and 5000 I can see some tiny changes.

---

<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:** [April 27, 2023, 10:44pm UTC](https://forums.unrealengine.com/t/rdtools/129091/141 "2023-04-27T22:44:43Z")

</div>

Which tree asset is that? I’ll test it here…

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 10:49pm UTC](https://forums.unrealengine.com/t/rdtools/129091/142 "2023-04-27T22:49:37Z")

</div>

It’s a tree I created myself in SpeedTree, so it’s not available anywhere. But I assume any SpeedTree tree probably has identical behavior?

---

<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:** [April 27, 2023, 10:54pm UTC](https://forums.unrealengine.com/t/rdtools/129091/143 "2023-04-27T22:54:42Z")

</div>

What are the dimensions of the tree?

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [April 27, 2023, 11:01pm UTC](https://forums.unrealengine.com/t/rdtools/129091/144 "2023-04-27T23:01:02Z")

</div>

1131x1040x1530 according to the static mesh info

---

<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:** [April 28, 2023, 1:02am UTC](https://forums.unrealengine.com/t/rdtools/129091/145 "2023-04-28T01:02:44Z")

</div>

I was able to reproduce on a similar sizes megascans tree (This also affects ImpostorBaker).

One thing you can do is adjust the “Ray Start Offset Depth Scale” in your Light Source - that affects everything though:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/e/d2ea08396a2a0f01ecd582dcbafa597afe196636.png)

Also, I found this document which has some good tips on adjusting the PixelOffset, and the Ambient Occlusion settings to try and alleviate the issue:

> **[Making an efficient tree LOD with impostor baker plus!](https://medium.com/@arnoldpaul/making-an-efficient-tree-lod-with-impostor-baker-plus-e9d152241831)**
>
> LOD technic in foliage rendering is widely used in video games. However, a great part of them are just ‘looks right’ in some specific angle of view(usually viewed on the ground). But if the player…

[Previous page](https://forums.unrealengine.com/t/rdtools/129091.md?page=6)

[Next page](https://forums.unrealengine.com/t/rdtools/129091.md?page=8)
