# Square artifacts after baked lighting UE5.1 GPUlightmass

**URL:** <https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230>\
**Category:** Architectural and Design Visualization\
**Tags:** gpu-lightmass, unreal-engine, Lighting, question\
**Created:** [November 28, 2022, 10:06pm UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230 "2022-11-28T22:06:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_Jambor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman\_Jambor](https://forums.unrealengine.com/u/Roman_Jambor)\
**Post date:** [November 28, 2022, 10:06pm UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/1 "2022-11-28T22:06:44Z")

</div>

Hello,  
I need a help with this weird squared artefacts I have after baking lighting with GPU lightmass in UE5.1.  
After many tries I found that this is cause of Irradiance cache in lightmass settings. If its turned off, there is no artefact (but almost no indirect lighting). If I turn it on, there is plenty of these artefacts.  
If I am baking in interactive mode, all lightmaps are perfectly smooth. But if I am baking all scene, I have artefacts.  
Can anybody help me with it? I never have this problem in previous versions of UE.  
Thank you for any tips

 ![316651654_4216933578430536_1259106746489930830_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/6/d4604a45636bcdfcd1e8905776e43903322eed97.png)  
 ![316931362_1276924773092759_3379667305474413236_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/9/619027347159eb968746c4cd3d9b18aa9beb4b45.png)  
 ![316602090_465240492358554_336618247648329762_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/3/f13cb9b3a4b9d2ab5f483a1376b9ca12f3046f25.png)  
 ![316693581_1151892518765560_7419177263359577996_n](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/f/13f82523cdf86d6467661596bf1f18754c0b7a79.jpeg)

---

<div class="post-metadata">

**Author:** ![S-Dot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-dot/32/1194599_2.png) [@S-Dot](https://forums.unrealengine.com/u/S-Dot)\
**Post date:** [November 29, 2022, 5:44am UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/2 "2022-11-29T05:44:35Z")

</div>

I’m not sure but my first thought would be to check the lightmap resolution or lightmap id. How does it look in lighting only or detail lighting mode?

---

<div class="post-metadata">

**Author:** ![Roman\_Jambor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman\_Jambor](https://forums.unrealengine.com/u/Roman_Jambor)\
**Post date:** [November 29, 2022, 8:57am UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/3 "2022-11-29T08:57:12Z")

</div>

Lightmap resolution is 1024 or 2048 and lightmaps are fine without any overlaping faces as these walls are pretty simple. Like simple rect. All wall meshes are only faces without any thickness. Problem occures only with Irradiance cache enabled in GPU Lightmass.  
I started to build this project in UE5.0.3 and then move to 5.1 where I did a lot of changes. In older version baking is without any issue. Only here in 5.1 this problem occures. It looks like I will have to go back and add all changes to older version as in 5.1 baking is screwed

---

<div class="post-metadata">

**Author:** ![Soviet03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soviet03](https://forums.unrealengine.com/u/Soviet03)\
**Post date:** [January 21, 2023, 1:52am UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/4 "2023-01-21T01:52:54Z")

</div>

[outdated, driver version 528.49 appears to work fine] Hi, I recently solved all of my GPU lightmass baking artifacts in UE 5.1 by downgrading my Nvidia driver to version 522.25 after reading Luoshuang’s post on the Epic’s GPUlightmass - Development thread on these forums.

> [@Epic's GPUlightmass](https://forums.unrealengine.com/t/epics-gpulightmass/139357/423):
>
> Meanwhile I downloaded and tested a few recent NVIDIA drivers, and the driver started behaving weird since 526.47. I would recommend using 522.25 instead. 522.25 vs 526.47 (and the later 526.98) with all my 5.1.1 fixes applied:

This problem persists even up to driver version 528.02 which I recently tested. Luckily reverting to the aforementioned version solved all of my issues. This is a MAJOR problem that surely affects a lot of people and yet I saw Luoshuang’s post almost by accident after spending a LOT of time investigating this issue.

PS: Just above that post he has another describing how to fix a line of erroneous code by simply editing one of the files, here’s the link to that. - I’m not sure if me doing this played a role in solving my problems, I tried it first and it didn’t fix my issue but after reverting my driver boom everything was perfect.

> [@Epic's GPUlightmass](https://forums.unrealengine.com/t/epics-gpulightmass/139357/417):
>
> This led me into the idea of potential memory corruptions and I indeed found one. You can try editing Engine\Plugins\Experimental\GPULightmass\Source\GPULightmass\Private\LightmapRenderer.cpp search for ERDGInitialDataFlags::NoCopy and change it to ERDGInitialDataFlags::None

---

<div class="post-metadata">

**Author:** ![Roman\_Jambor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman\_Jambor](https://forums.unrealengine.com/u/Roman_Jambor)\
**Post date:** [January 31, 2023, 9:09am UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/5 "2023-01-31T09:09:05Z")

</div>

wow thank you. I am working on another project in 5.1 and I will have to bake the scene. I want to try edit LightmapRenderer.cpp. I bought newest 4090 so I don’t know if I can simply return to older drivers. But I will try if this method will not help.

---

<div class="post-metadata">

**Author:** ![Soviet03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soviet03](https://forums.unrealengine.com/u/Soviet03)\
**Post date:** [February 10, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/6 "2023-02-10T16:00:24Z")

</div>

Fortunately 522.25 was the launch Driver for the 4090 so you should be able to use it without issue, if I discover newer driver versions working I’ll be sure to come back and update my post(s).

EDIT: - 531.18 seems to be the latest fix, so we can finally upgrade.

I will keep my posts updated.

---

<div class="post-metadata">

**Author:** ![Soviet03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soviet03](https://forums.unrealengine.com/u/Soviet03)\
**Post date:** [February 28, 2023, 8:04pm UTC](https://forums.unrealengine.com/t/square-artifacts-after-baked-lighting-ue5-1-gpulightmass/717230/7 "2023-02-28T20:04:35Z")

</div>

The Creator of GPU Lightmass (Luoshuang) just posted that he tested Nvidia driver version 531.18 and that it appears to be working as intended according to his tests.

Here is his post [Epic's GPUlightmass - #447 by Luoshuang](https://forums.unrealengine.com/t/epics-gpulightmass/139357/447)
