# Weird shadow artifacts with Lumen

**URL:** <https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [August 6, 2024, 3:21pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415 "2024-08-06T15:21:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 3:21pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/1 "2024-08-06T15:21:54Z")

</div>

Im a beginner and would like to know if its possible to get rid of these artifacts caused by Lumen. They appear while walking and turning fast.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 6, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/2 "2024-08-06T15:48:37Z")

</div>

Lumen unfortunately works with accumulated lighting info with extra information from screen space. When you turn the corner the scene changes are so dramatic that it takes a while for the samples to update.

You can try changing the lumen update speed via a post processing volume:

> [@Lumen rendering latency / refresh rate in real time ??](https://forums.unrealengine.com/t/lumen-rendering-latency-refresh-rate-in-real-time/1203410/3):
>
> Lumen Lighting Update Speed Lumen uses a number of caches to achieve real-time performance. While local lighting changes propagate quickly, global lighting changes, like disabling the Sun, can take multiple seconds to propagate. Projects can use the Lumen Scene Lighting Update Speed and Final Gather Lighting Update Speed [controls in the Post Process Volume](https://docs.unrealengine.com/5.0/en-US/lumen-global-illumination-and-reflections-in-unreal-engine#postprocesssettings) to work around this delay at the cost of increased GPU cost.

If there aren’t any dynamic lighting changes in the back rooms then maybe baked lighting would be an alternative.

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 4:18pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/3 "2024-08-06T16:18:49Z")

</div>

Thanks for your tip, but when I put both scene and gather lightning update speed on the max setting, I didnt notice any improvement. I played around with baked lightning for like half a month and never got any good result, so I will definitely keep working with dynamic. Isnt there a way to make the screen where Lumen renders the scene a bit bigger so it will be all loaded when my camera gets there?

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [August 6, 2024, 4:42pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/4 "2024-08-06T16:42:22Z")

</div>

There is, they made use of a method like that in Valley Of The Ancients to avoid accumulation issues when swapping worlds, but I don’t remember what it was- I would suggest you check out their method for inspiration?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 6, 2024, 4:45pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/5 "2024-08-06T16:45:47Z")

</div>

> [@Increase Lumen render distance?](https://forums.unrealengine.com/t/increase-lumen-render-distance/272714/15):
>
> The following worked for me in my use case: Enable “Use Hardware Ray Tracing” in project settings. Restart if required. These console commands: r.LumenScene.FarField 1 r.RayTracing.Culling.Radius 100000 (couldn’t go beyond this number) Extras: r.LumenScene.FarField.FarFieldDitherScale 10000 (helps soften the edge of where lumen reflections kick in) r.Lumen.Reflections.ScreenTraces 0 (gets rid of the jarring transition between lumen and screen scace reflections, which can look quite dif…

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [August 6, 2024, 5:15pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/6 "2024-08-06T17:15:48Z")

</div>

making the screen bigger won’t help much if lighting moved into previously occluded spaces.

* * *

@jblackwell scene capture with a postprocess crossfade until the real world is lit correctly? i dunno tho. i never ran the demo.

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 6:02pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/7 "2024-08-06T18:02:43Z")

</div>

This made it maybe little bit better, but still did not solve the problem. I also just noticed that in some parts of the scene the light is not calculated. For example on the left wall in the bottom left part

 ![Snímek obrazovky (60)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/3/5f350a165ccf24c15036a1a39984ba0ceb49f5b0.jpeg)  
 ![Snímek obrazovky (61)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/c/08c679280766417ec80d6a50b96b3eb9d7458365.jpeg)

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/8 "2024-08-06T18:03:34Z")

</div>

Could you please explain me how to do it?

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 6:59pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/9 "2024-08-06T18:59:34Z")

</div>

My problem has been partially solved, but it made my previous problem appear again. I had an invisible white floor above the main floor that made the light bounce more onto the ceiling and make it look lighter. Now the artifacts are gone after deleting it but the ceiling is totally dark, which I dont really want

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 6, 2024, 7:13pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/10 "2024-08-06T19:13:29Z")

</div>

In the post processing volume:

 ![obraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/c/58c5e8f17dea420392e4fb8906dc35c1007a9eb7.png)

You can use the skylight leaking to inject skylight values into your lumen scene to boost the lighting.  
The color boost can also increase the lighting values.

Just set the extent on your post processing to unbound.

But you do need a skylight in the scene to be able to boost the values. So you would need it around your rooms.

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [August 6, 2024, 7:19pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/11 "2024-08-06T19:19:39Z")

</div>

Out of curiosity, are you using TSR or something similar? Sometimes artifacts that appear to be lumen are actually the product of the upscaler overall, or even stranger things like the volumetric fog froxel buffer if you’re using VFog.

Honestly speaking, I think you may want to give baked lighting a try again, especially given that most of your materials look near-diffuse. The lumen problem with your scene setup is that it’s pretty much designed to cause constant disocclusion, and since that’s a problem with the screen-space gather, you can’t really do much more than flush temporal history faster (which costs more or generates noise).

Given how radiometrically simple your scene is, I’m honestly wondering if you could get away with using a hackier lighting solution that wouldn’t generate as much noise- a gradient ambient light+RTAO? I just don’t know what you could do to meaningfully hide the noise.

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 7:47pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/12 "2024-08-06T19:47:49Z")

</div>

Thanks, I actually realised that I can make the material so bright that it looks as I want even without the supportive white floor, so its okay

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [August 6, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/13 "2024-08-06T19:49:08Z")

</div>

i’m not sure if baking it would deliver the same quality. it prevents the world from flickering tho. that is correct.

ideally you would want to play backrooms with a soft shadow cast from the player model and would have to use lumen/manylights’ soft shadows for that anyway. and they will have unavoidable temporal noise.

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/14 "2024-08-06T19:49:10Z")

</div>

My artifacts are now gone as I removed the white invisible floor, the only small problem now is that the shadows look a bit too dark on the top of the walls

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 6, 2024, 8:07pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/15 "2024-08-06T20:07:16Z")

</div>

You could add a skybox and set the skylight leaking parameter to boost the overall light. You could tint the skybox to be more muted colors, deleting volumetric clouds etc.

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 9:10pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/16 "2024-08-06T21:10:29Z")

</div>

Okay, thanks, I’m not at my PC anymore but I’ll try tomorrow. Btw, is there any way I could make it look almost exactly the same as this picture, but using less lights for better performance? I tried to play around with all the settings and lights, but still didn’t get anything I’d really like.I still feel like UE5 has to be capable of something like this, but maybe I’d really have to put there many more lights. I’d like to hear some advice.  
 ![images-6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/8/4a8d24acd33b6c1ca25917e2b84331fad9c39e76.jpeg)

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 6, 2024, 9:20pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/17 "2024-08-06T21:20:28Z")

</div>

The colors are quite different in my screenshots, I worked with a different reference, so don’t mind that. I focus on the lightning right now

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 7, 2024, 6:11am UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/18 "2024-08-07T06:11:30Z")

</div>

So I decided to put there as many lights as needed, switching to normal shadowmap instead of virtual, which gave me around 40fps and only made the shadows sharper, and now I can run it in windowed mode on 75-80fps with the look that I wanted.

 ![Snímek obrazovky (63)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/3/ea3128abef3bc9438d09fa23577d6c20ba46a16e.jpeg)

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [August 7, 2024, 4:33pm UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/19 "2024-08-07T16:33:25Z")

</div>

> [@glitchered](#):
>
> lumen/manylights’ soft shadows for that anyway

I would say, if soft shadows were required (it sounds like regular SMs might have done the job?) the player could be very well represented with capsule shadows. It would give soft shadowing at a pretty cheap cost and blend nicely with a static or dynamic environment. It sounds like the shadow artifacts have been solved tho?

---

<div class="post-metadata">

**Author:** ![Forex366](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Forex366](https://forums.unrealengine.com/u/Forex366)\
**Post date:** [August 9, 2024, 10:26am UTC](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415/20 "2024-08-09T10:26:46Z")

</div>

New update, I spent some time on optimization and it turned out really well. I realised that I had max draw distance turned off, which gave me 10-20fps after turning it on. I also lowered the attenuation radius of all lights by 100 and I got another 5-10fps without any noticable visual change. That made it possible to play the game on 60fps even with VSM, with 1280x720 resolution on fullscreen. The lower resolution also gave it the feeling of an old camera, which is exactly what I wanted

[Next page](https://forums.unrealengine.com/t/weird-shadow-artifacts-with-lumen/1964415.md?page=2)
