# Foliage has a Shadow noise/grain - How to fix it?

**URL:** <https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330>\
**Category:** Rendering\
**Tags:** noise, unreal-engine, Anti-Aliasing, Foliage, ambient-occlusion, Nanite, question\
**Created:** [December 13, 2022, 12:28pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330 "2022-12-13T12:28:13Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 11:52am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/21 "2022-12-19T11:52:36Z")

</div>

I just discovered that the scale of this “noise” scales with the screensize.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/074f9fd5d0dd4fa5b72fc39fdcea687649d86ee6.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/074f9fd5d0dd4fa5b72fc39fdcea687649d86ee6.mp4)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 19, 2022, 12:02pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/22 "2022-12-19T12:02:12Z")

</div>

I have NO idea what that means 😃

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 2:18pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/23 "2022-12-19T14:18:09Z")

</div>

Found an old thread abot the same problem I guess…

> [@Issues with grass meshes](https://forums.unrealengine.com/t/issues-with-grass-meshes/211436/):
>
> Hey, As you can see in [this video](https://streamable.com/rq54rj), the grass meshes I am using have this weird noise over them when (and only when) moving the camera, especially when looked at from far away. The problem is not related to the material (since it was the same for similar materials) but likely either mesh configuration (the mesh itself worked fine in another enviroment) or lighting. A thing I noticed is that as you can see [here](https://streamable.com/0368ck), the Distance Field AO visualizer shows the same behavior as the noise. I also tried…

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 4:46pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/24 "2022-12-19T16:46:36Z")

</div>

Another discovery, if I set the scalability to “Epic”, the noise is almost gone.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/8/7a83e4a7095f15fb47afc1b2450e4a3bf3a0ed2a.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/8/7a83e4a7095f15fb47afc1b2450e4a3bf3a0ed2a.mp4)

Why cinematic mode has this jeezz, i just want to have a bautiful scene for an In-CameraVFX production!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [December 19, 2022, 4:59pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/25 "2022-12-19T16:59:09Z")

</div>

I guess it must be possible to turn with a post process setting the Lumen params, then.

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/26 "2022-12-19T17:14:53Z")

</div>

Tried every Lumen setting in PP with no success. The noise gets bigger if I lower the Global Illumination setting. In Cinematic mode they are very tiny but there a lot of them.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/d/49d2f576c0ac24519d0ebd74fe7cdb65a9033283.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/d/49d2f576c0ac24519d0ebd74fe7cdb65a9033283.mp4)
  
Well, will try to adjust the scalability settings and find the possible best =z

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 5:45pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/27 "2022-12-19T17:45:59Z")

</div>

Found one more thing, maybe the noise is there only with Hardware RayTracing. Maybe is the contrast that is causing this, dunno. Sad that I lose a lot of the image quality.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/5/1a5a78df8831cf052e8b6289facf20b882893d44.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/5/1a5a78df8831cf052e8b6289facf20b882893d44.mp4)

I am just confused, if I turn down AA quality i can reduce the noise with hardware raytracing and maxed out the other settings, seems a good tradeoff.

---

<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 19, 2022, 7:35pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/28 "2022-12-19T19:35:07Z")

</div>

Haven’t red much of this.

Was changing when velocities are outputted something that was suggested, tried, and discared already? (with taa)

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 8:01pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/29 "2022-12-19T20:01:00Z")

</div>

Yeah I tried that, with TSR and TAA. TAA has tons of ghosting and the image is blured, definitely not good .

---

<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 19, 2022, 8:03pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/30 "2022-12-19T20:03:56Z")

</div>

> [@Renanmgs](#):
>
> TAA has tons of ghosting and the image is blured

In 5.1? Search the forums, they changed the option.

or in .25/27 with the correct setting?

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 19, 2022, 8:33pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/31 "2022-12-19T20:33:46Z")

</div>

yeah, 5.1! In project settings, AA mode. Am i missing something?

---

<div class="post-metadata">

**Author:** ![SoulReapX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SoulReapX](https://forums.unrealengine.com/u/SoulReapX)\
**Post date:** [December 19, 2022, 8:43pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/32 "2022-12-19T20:43:51Z")

</div>

+1 to the thread, troubleshooting the same issue all day long and cant find any reasonable solution. im rendering everything and the noise is noticeable even with high quality setting and high sample count. The only thing that seems to help is turning off ray traced shadows and it helps to clear the noise from the shadow, however there is still noise in the foliage.

---

<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 19, 2022, 9:55pm UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/33 "2022-12-19T21:55:04Z")

</div>

First of. there’s been some apparent change in WPO.  
Change your material to use a different pivot/origin, as using Object Position is no longer valid apparently.

Second. Yes you probably are missing something with the setting.  
Let me see if I can find the thread.  
Here, try this

> [@WPO issue in UE 5.0 on all materials, severe smear/dither](https://forums.unrealengine.com/t/wpo-issue-in-ue-5-0-on-all-materials-severe-smear-dither/515780/17):
>
> Hi all, I can report that this issue is being tracked internally at Epic. As has already been mentioned, the workarounds are to either set the geometry to non-static, or set “Velocity Pass” to “Write during base pass”. “Write during depth pass”, the default in UE5, is believed to be more efficient for most scenes, but the “base pass” setting should be fine to use as well. Probably worth doing a performance comparison if you switch. In the future there will be some scenarios that require the “de…

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 20, 2022, 1:17am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/34 "2022-12-20T01:17:26Z")

</div>

Welcome aboard!

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 20, 2022, 1:18am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/35 "2022-12-20T01:18:54Z")

</div>

Will take a look on that, thanks!

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 20, 2022, 1:26am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/36 "2022-12-20T01:26:30Z")

</div>

Well, yes it is “Write during base pass” and the grass is not “Static”, the Foliage Instance Mobility is movable in the tool.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 20, 2022, 2:28am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/37 "2022-12-20T02:28:42Z")

</div>

Specifically I think its soft shadow noise you’re seeing. Both Virtual Shadow Maps and Raytracing have noise in their soft shadows due to how they sample a limited number of rays per pixel - to test this set your sun’s source angle to 0. This will make all shadows hard (which we don’t really want - but just to test) and I’d be willing to bet all noise will be gone.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/f/5bf91f94b0ff55de130ebf7423129029cacd3e35.jpeg)  
As @SoulReapX mentioned, Increasing the RT light sources samples per pixel will help. TAA/TSR also usually helps shadows look more stable by averaging noise out over multiple frames.  
Cascading Shadow maps do not have this type of noise but virtual shadow maps soft shadowing “SMRT” feature do - even worse than RT - which can also be reduced by increasing the ray and/or sample count vars.  
Even going from 1 ray to 2 rays will massively reduce noise in RT but returns are diminishing as you go up for RT or VSMRT. You’ll probably reach an unusable frame rate before removing all traces of noise, just one of the limitations of real time ray tracing as far as I’m aware.  
If this is a critical problem, you could try to implement an alternative denoising solution such as Nvidia NRD. Its already in the UE4 RTX branch, presumably it could be ported to UE5 but that’s out of my wheelhouse.

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 20, 2022, 2:48am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/38 "2022-12-20T02:48:54Z")

</div>

Thanks for your detailed awnser!

I am using UDS but created a directional light for the sun. The problem still persists.

In the video below, I changed the screen percentage so the problem can be more evident in the recording, changed the scalability to High too, so the shadow “areas” becomes bigger. Increasing the Samples of the light source only decreases the FPS.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/1/0c1e5883b748a5daa5d92c8c46d15e81d61dcdc6.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/1/0c1e5883b748a5daa5d92c8c46d15e81d61dcdc6.mp4)

---

<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 20, 2022, 2:50am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/39 "2022-12-20T02:50:05Z")

</div>

> [@BananableOffense](#):
>
> just one of the limitations of real time ray tracing as far as I’m aware.

By now, on the 30x series of Nvidia, you can probably ray trace shadows with 32+ rays while rendering everything else Not in ray-trace to get an Ok performance.

@Renanmgs  
Disable WPO, see if it’s still fuzzy or not.

Oh and you can also check your velocity output to make sure something is rendering in there. For ue4.22 to .26 or something it was broken entirely.  
In fact, knowing from other reports that render targets are not able to have opacity, I would not be surprised?

---

<div class="post-metadata">

**Author:** ![Renanmgs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Renanmgs](https://forums.unrealengine.com/u/Renanmgs)\
**Post date:** [December 20, 2022, 2:57am UTC](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330/40 "2022-12-20T02:57:41Z")

</div>

> [@MostHost\_LA](#):
>
> Disable WPO, see if it’s still fuzzy or not.

Nothing changes. =z

[Previous page](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330.md?page=1)

[Next page](https://forums.unrealengine.com/t/foliage-has-a-shadow-noise-grain-how-to-fix-it/727330.md?page=3)
