# New BUG (regression). Shadows destroyed since UE5.2

**URL:** <https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423>\
**Category:** Issues and Bug Reporting\
**Tags:** bug, Shadows, unreal-engine, bug-report, Rendering, Lumen, Lighting\
**Created:** [May 11, 2023, 11:48am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423 "2023-05-11T11:48:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 11, 2023, 11:48am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/1 "2023-05-11T11:48:10Z")

</div>

It seems that depending on the number of actors and/or lights, shadows and lighting are completely destroyed in UE5.2:

 ![HighresScreenshot00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/8/ba8b2287ff9833df057b870ad511218d688266d3.jpeg)

When removing some actors or lights, it works as expected:

 ![HighresScreenshot00001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/d/d1dd7da268d8158b70efd07480485ac4c5c12b6a.jpeg)

This didn’t happen in previous Unreal versions.

You can check this example-bug project from here: [Dropbox - BUG-Lumen\_shadows\_dissapear.zip - Simplify your life](https://www.dropbox.com/s/ixnsdy0t02ffwmc/BUG-Lumen_shadows_dissapear.zip?dl=0)

PS: I’m not going to report it through the Bug Submission Form, as I’m tired of being ignored.

---

<div class="post-metadata">

**Author:** ![zpghost](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zpghost](https://forums.unrealengine.com/u/zpghost)\
**Post date:** [May 12, 2023, 2:58pm UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/2 "2023-05-12T14:58:20Z")

</div>

Apparently the engine update has brought new bugs, Disabling raytracing in shadows solves the problem. But it’s better to stay on 5.1 I thought at first it was only in viewport, but in the renderer with shadows is a nightmare

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [May 15, 2023, 5:26pm UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/3 "2023-05-15T17:26:37Z")

</div>

Hey folks, our team is trying to reproduce the issue with little success—they recreated your scene in 5.1.1, then opened in 5.2 via Open a Copy.

Could you share more specific details about your steps to 5.2 that may help them track down the problem?

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 15, 2023, 6:31pm UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/4 "2023-05-15T18:31:53Z")

</div>

Hi @Amanda.Schade ,

I cannot identify the certain steps. I will continue trying it tomorrow, but I have recreated this 5.0 scene just copying the cubes and the lights in the already provided 5.2 scene:

> **[BUG-Lumen\_RT\_shadows\_detroy\_5.0.zip](https://www.dropbox.com/s/pcak2xet0wtc13e/BUG-Lumen_RT_shadows_detroy_5.0.zip?dl=0)**
>
> Shared with Dropbox

5.0:

 ![HighresScreenshot00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/0/0c0ec3dfcf41cd5d7631393d4909c4de28182be7.jpeg)

5.2:

 ![HighresScreenshot00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/3/fe380ca273c1e734689189fd659b0d9891ae3b3b.jpeg)

You will be able to open it normally in 5.0 and 5.1, but it will show destroyed lighting in 5.2. (Notice in the World Outliner an InstancedFoliageActor when opening with 5.2, which was not added in the 5.0 scene).

I noticed this same lighting issues when I opened some of my older projects, that’s why I tried to isolate the problem and report it, and provide a proof-ready-project.

Nothing special done, but also not sure when or why it happens.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 16, 2023, 11:19am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/6 "2023-05-16T11:19:01Z")

</div>

Hi @Amanda.Schade ,

I have continued doing tests and I have noticed a certain scenario (may be more, as there are tons of combinations).

For a 100% success scenario, it seems related with any project created with a different version than 5.1 (As I couldn’t reproduce it creating the project with 5.1 version). I have recorded this with a 5.0 project, but if I noticed this error before, it’s because I also tested older projects, made with UE4.27 for example:

(If created with 5.0, but opened later with 5.1 and saving the changes, to ‘convert’ the project to 5.1, the error will persist anyway. This is also shown in the recorded video)

[https://dl.dropboxusercontent.com/s/qttav7tru6hubmi/bug\_lighting.mp4?dl=0](https://dl.dropboxusercontent.com/s/qttav7tru6hubmi/bug_lighting.mp4?dl=0)

Steps summary:

- Create a 5.0 project
- Open a default map (it may work with other maps too, not tested)
- Delete all except the Floor mesh (it may work without deleting anything, not tested)
- Add a Directional Light (it probably happens with any other lighting, not tested)
- Add tons of cubes (something like 250)
- Enable Ray tracing hardware and shadows in project settings
- Close & Save, & open with UE5.2
- _Bonus bug: before destroying the lighting, go away with the camera. RT shadows will dissapear with the distance. Ok, go close again._
- Duplicate some of the cubes, to reach something like 280 cubes or more (this seems to be near the critical number of actors, or of static meshes, not sure)
- Lighting will be destroyed

Perhaps it may be related with other raytracing shadows bugs, if something is broken from ‘the base’. Despite of the tittle of the post, these are bugs 100%. The question was rhetoric:

> [@Ray Tracing shadows (and reflections) bugs](https://forums.unrealengine.com/t/are-these-ray-tracing-bugs/1136744):
>
> NOTE: please, enlarge every image to notice the issues. Dirty ‘whity-sketchy’ artifacts (like tons of little lines) around actors’ edges or borders. More noticeables (but not only) when using lights’ source radius higher than 0: The right object is lit, even being in a shadowed area. It seems like an incompatibility between the Megascans master material and the ray traced shadows, so some nodes must be destroying the shadowing:

Thanks!

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [May 16, 2023, 6:36pm UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/7 "2023-05-16T18:36:55Z")

</div>

Thank you for the detailed steps! Our team was able to reproduce the issue and logged the issue for our dev team. It’s been added to the tracker here: [Unreal Engine Issues and Bug Tracker (UE-185922)](https://issues.unrealengine.com/issue/UE-185922)

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 19, 2023, 10:04am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/8 "2023-05-19T10:04:18Z")

</div>

Thank you @Amanda.Schade , I see [it](https://issues.unrealengine.com/issue/UE-186029)! 🙂

EDIT: Oh! I have found a much more easier way to reproduce the issue, and native in 5.2! Hope it helps:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/e/aee195f7ee84d4ec57a4c48e3c94df0546b9147a.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/e/aee195f7ee84d4ec57a4c48e3c94df0546b9147a.mp4)

**Please!** If you could slightly look at those [other ray-tracing-shadows related bugs](https://forums.unrealengine.com/t/are-these-ray-tracing-bugs/1136744), I would be very happy. Super easy to reproduce the steps, if you have interest. **5-10 minutes** testing.

And **please, (please!)** moving assets (in the correct way, of course) inside Unreal [is broken](https://forums.unrealengine.com/t/moving-assets-folders-broken/787364) since many versions ago. How’s possible? A so elemental and must-have feature 🥲 . Super Easy to reproduce too, just following the video provided and the provided project too. **1 minute** testing:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/3/0d3af19096fa5b9cd56a369344356f0eb122b704.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/3/0d3af19096fa5b9cd56a369344356f0eb122b704.mp4)

Thaaaaank you very much!

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [May 19, 2023, 9:43pm UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/9 "2023-05-19T21:43:13Z")

</div>

For the original issue here, it’ll be fixed in the next release.

In the meantime, you can switch to SM6 to solve the problem—go to Project Settings → Platforms → Windows → D3D12 Targeted Shader Format → SM6) or run with -sm6 on your commandline.

Hope that helps!
