# Why does my baked lighting have these issues?

**URL:** <https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [January 8, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338 "2024-01-08T15:36:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChSt15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChSt15](https://forums.unrealengine.com/u/ChSt15)\
**Post date:** [January 8, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/1 "2024-01-08T15:36:40Z")

</div>

Im creating a VR Game in UE 5.3.2 using the VR Template. I wanted to try the GPU lightmass building using the plugin for UE because the CPU was really slow. I set up the plugin as in the UE 5.3 docs and after building the lighitng looked much better than cpu and was faster.  
The issue is with GPU the landscape has no lighting at all and is black, but other meshes are just fine. CPU has artifacts and in general doesnt look as good.  
I also tried simply migrating the map to a new fresh VR Template project and enabling only raytracing, virtual textures and virtual texture lightmaps.  
Also the landscape has no materials.  
Some pictures:

 ![Bridge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/9/b89002b33f30cc386812be55f1b152ffc2343e19.jpeg)  
Artifact when using CPU.  
 ![GPULandscape](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/9/9894a4c395e16cd7ab7b9c85d8004e7b7d69f234.png)  
Black landscape when using GPU.  
 ![Gate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/c/e7c4089eb441dc0a13563afeca96394fadc09f66.jpeg)  
CPU quality.  
 ![GPUGate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/c/cbc3d1e2dd299b52f8155a51feb58fdc23faae6e.jpeg)  
GPU quality.  
 ![SmallGPU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/4/c6428f4eb5bfc129594485ffcbad15c266c6e079.jpeg)  
Adding a small landscape (default settings) shows artifact when using GPU.  
 ![SmallCPU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/4/c842f73d9a6902d72f290fa797031773811c9907.jpeg)  
Fine when building with CPU.

What is causing this? Both options have issues for me, so I need to solve this to continue developing.

---

<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:** [January 8, 2024, 4:21pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/2 "2024-01-08T16:21:36Z")

</div>

epic’s gpu lightmass has a bug in it, that breaks lighting on landscapes. community member backported the 5.4 fix to 5.3.2.

> [@GPU Lightmass not working on Landscape](https://forums.unrealengine.com/t/gpu-lightmass-not-working-on-landscape/1371174/16):
>
> I really need to see the logs from the crashes jn Documents\Unreal Projects\LightmapTest\_UE530\Saved\Crashes\UECC-Windows- 8ED134D84B09B1457FD38AA524808285\_0002\LightmapTest\_UE530.log If you could zip/rar all the files from Documents\Unreal Projects\LightmapTest\_UE530\Saved\Crashes\ Documents\Unreal Projects\LightmapTest\_UE530\Saved\Logs by Personal message. I dont need any projects uploaded. You can send by personal message DM on forum

---

<div class="post-metadata">

**Author:** ![ChSt15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChSt15](https://forums.unrealengine.com/u/ChSt15)\
**Post date:** [January 8, 2024, 4:34pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/3 "2024-01-08T16:34:59Z")

</div>

Is it normal to have such a big quality difference between CPU and GPU? I would have though CPU would have better quality.

---

<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:** [January 8, 2024, 5:32pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/4 "2024-01-08T17:32:47Z")

</div>

gpu has more math power to sample the environment. that’s probably one reason.

---

<div class="post-metadata">

**Author:** ![ChSt15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChSt15](https://forums.unrealengine.com/u/ChSt15)\
**Post date:** [January 8, 2024, 7:06pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/5 "2024-01-08T19:06:20Z")

</div>

Looks like the GPU lighting does not have shadows on the landscape. The landscape does not cast shadows on other meshes or itsself. This isnt the case when baking using the CPU. Any idea why?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [January 8, 2024, 7:34pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/6 "2024-01-08T19:34:01Z")

</div>

> [@ChSt15](#):
>
> The landscape does not cast shadows

Hi @ChSt15,  
Your problem is directly related to fix of my patch from the Epic GPU Lightmass which requires DX12 and SM6 enabled along with installing my backported patch  
[EpicGPULightMassPatch/README.md at main · jimshalo10/EpicGPULightMassPatch (github.com)](https://github.com/jimshalo10/EpicGPULightMassPatch/blob/main/README.md)

This was built to fix the problem

[GPU Lightmass not working on Landscape - Development / Rendering - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/gpu-lightmass-not-working-on-landscape/1371174/18)

---

<div class="post-metadata">

**Author:** ![ChSt15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChSt15](https://forums.unrealengine.com/u/ChSt15)\
**Post date:** [January 9, 2024, 9:25am UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/7 "2024-01-09T09:25:04Z")

</div>

Hi, thanks for the patch. Defintely solves the original issue, but is looks like the other person using your patch also has the same issue of the landscape not casting or receiving any shadows during baking, but works with dynamic lighting on the directional light.

---

<div class="post-metadata">

**Author:** ![RickdeV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rickdev/32/771795_2.png) [@RickdeV](https://forums.unrealengine.com/u/RickdeV)\
**Post date:** [February 11, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/why-does-my-baked-lighting-have-these-issues/1599338/8 "2024-02-11T15:10:16Z")

</div>

Works great, thanks so much!!  
Can’t believe such a tiny change didn’t get included in 5.3, quite frustrating.
