# Epic's GPUlightmass

**URL:** <https://forums.unrealengine.com/t/epics-gpulightmass/139357>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [March 5, 2020, 12:52pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357 "2020-03-05T12:52:56Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 27, 2020, 2:14am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/61 "2020-09-27T02:14:08Z")

</div>

> [@kurylo3d](#):
>
> Seems also like i can switch 1 light to static.. doesnt work.. then the light next to it i switch to staitionary and back to static.. that light stops working, but hte first light all of a sudden starts baking as static… something very wrong here… current gpu lightmass is very broken and unuseable unfortunately.
> 
> Where can i report this?

Realized the 2nd screenshot i sent was just the lumens were off for some reason.. set to unitless messed things up, but the other one with the street light.. not baking at all.. so still issues in that level… level does have sublevels if that matters at all.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 27, 2020, 3:23am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/62 "2020-09-27T03:23:36Z")

</div>

Probably best to report it as a bug and submit project files with the bug ticket

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 27, 2020, 3:28am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/63 "2020-09-27T03:28:41Z")

</div>

ive been told that 1) GPU Lightmass shares code with the path tracer, and we’re limited to 128 lights now 2) Due to the same reason, non inversed square falloff lights are not supported

---

<div class="post-metadata">

**Author:** ![tc22\_LEOCHOU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tc22_leochou/32/491291_2.png) [@tc22\_LEOCHOU](https://forums.unrealengine.com/u/tc22_LEOCHOU)\
**Post date:** [September 27, 2020, 4:55am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/64 "2020-09-27T04:55:20Z")

</div>

test in 4096 ! detail seem not very good , but all scene build can work fast in 15-20 min in 4096/4096 sample ! 2048 can do preview!

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 27, 2020, 1:48pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/65 "2020-09-27T13:48:41Z")

</div>

> [@kurylo3d](#):
>
> ive been told that 1) GPU Lightmass shares code with the path tracer, and we’re limited to 128 lights now 2) Due to the same reason, non inversed square falloff lights are not supported

That’s good to know, but it still doesn’t explain all the issues with spotlights, as I’m still seeing vanishing lights in scenes with 1 spotlight that is set to use inverse square falloff.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 27, 2020, 1:51pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/66 "2020-09-27T13:51:10Z")

</div>

> [@tc22\_LEOCHOU](#):
>
> test in 4096 ! detail seem not very good

Try turning lightmap compression off in the world panel. I don’t know that this is directly related to GPU Lightmass but the compression seems to be absolutely brutal on them in this release. I suspect it might have more to do with compression as related to virtual texture lightmaps, which weren’t really testable in 4.25 because they never worked correctly.

edit: Also are you using irradiance caching?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 27, 2020, 2:46pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/67 "2020-09-27T14:46:00Z")

</div>

CPU/GPU comparison, definitely seems to be some significant missing features here.

Scene Setup: Stationary directional light (area shadows enabled), static skylight, static spotlight with 25 outer cone angle. Using raytraced AO. All settings are otherwise default, no lightmass portals

 ![UE4_GPULM_Comparison.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/5/d54552daec5f7b710bcb769b86449ebfeffbbb7e.jpeg)  
Honestly not really clear on what the irradiance cache settings do so I may have picked some \*\*\*\*\*\* ones. Some immediately noticeable things:

1. Temperature of the scene is completely different, not sure of the cause but I suspect GPU LM doesn’t sample the color of the skylight correctly.
2. Static spotlight completely disappears when GPU rendered, I believe its intensity is being scaled by its outer cone angle.
3. Behavior of area shadows is completely different, not sure it does anything with GPU LM.

---

<div class="post-metadata">

**Author:** ![Muchasty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muchasty](https://forums.unrealengine.com/u/Muchasty)\
**Post date:** [September 27, 2020, 5:44pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/68 "2020-09-27T17:44:05Z")

</div>

WARNING: Beware of using HRDI with very directional light for SkyLight cause I found that since very very old days ( 4.17+ or maybe form the beginning ) SkyLight object has a bug that causes that the HDRI light is X-MIRRORED according to the HRDI image !

 ![Przechwytywanie.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/1/213a54f26240a4071a34072c171f4387bf7b4ba7.jpeg)

---

<div class="post-metadata">

**Author:** ![Czaja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Czaja](https://forums.unrealengine.com/u/Czaja)\
**Post date:** [September 28, 2020, 11:36pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/69 "2020-09-28T23:36:08Z")

</div>

Somehow, using the new GPU Lightmass in 4.26, I got much worse results than with Luoshuang’s solution in 4.25… In the 4.26 lighting is not that bad overall, but I got very bad and visible light seams and light leaks. I’m testing with the same geometry and the same hdri… I’m a bit confused and frankly, disappointed.

I can accept a little noise but seams & leaks are disqualifying factors.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 29, 2020, 1:29am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/70 "2020-09-29T01:29:07Z")

</div>

> [@Czaja](#):
>
> Somehow, using the new GPU Lightmass in 4.26, I got much worse results than with Luoshuang’s solution in 4.25… In the 4.26 lighting is not that bad overall, but I got very bad and visible light seams and light leaks. I’m testing with the same geometry and the same hdri… I’m a bit confused and frankly, disappointed.
> 
> I can accept a little noise but seams & leaks are disqualifying factors.

i cant even get 90% of my lights to work in the new gpu lightmass…

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 29, 2020, 6:15am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/71 "2020-09-29T06:15:18Z")

</div>

Seems like it is better to just turn the denoiser off right now (this is a wall of modular tiles)

 ![UE4_GPULM_Denoiser.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/0/f0b6f497b9946f3aa926c8a62b8281202b4f6675.jpeg)

Comparison without lightmap compression:[SPOILER]

 ![UE4_GPULM_DenoiserCompression.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/8/182e45d21f2c4976c43d0024e05cc270f7352aa3.jpeg)[/SPOILER]

---

<div class="post-metadata">

**Author:** ![Czaja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Czaja](https://forums.unrealengine.com/u/Czaja)\
**Post date:** [September 29, 2020, 9:31am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/72 "2020-09-29T09:31:22Z")

</div>

Good catch Arkiras, seems that denoising “trick” exaggerates UE4 problems with lightmap seams - which is logical.  
Unfortunately, I must work with datasmith CAD data and I must rely on automatic lightmap UV’s. With the normal CPU baking I can crank up quality settings pretty crazy and have tiny, barely noticeable seam. Out of curiosity I must try 4.26 GPU Ligthmass with GI samples like 32 768 - but this is not a reasonable solution to the problem because GPU had to make things faster.

Another thing, that in Luoshuang’s solution lightmap seams was unnoticeable, so it was promising.

---

<div class="post-metadata">

**Author:** ![tc22\_LEOCHOU](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tc22_leochou/32/491291_2.png) [@tc22\_LEOCHOU](https://forums.unrealengine.com/u/tc22_LEOCHOU)\
**Post date:** [September 29, 2020, 10:00am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/73 "2020-09-29T10:00:54Z")

</div>

just use this lightmass setting in GPU lightmass bake!

Enjoy and cheers!

---

<div class="post-metadata">

**Author:** ![Czaja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Czaja](https://forums.unrealengine.com/u/Czaja)\
**Post date:** [September 29, 2020, 12:57pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/74 "2020-09-29T12:57:22Z")

</div>

tc22, are those Lightmass settings doing anything to GPU bake? It doesn’t seem to be doing anything, however, I tried your settings and this is what I received in my test scene.  
[https://i.ibb.co/Z6XfprB/1.jpg](https://ibb.co/Z6XfprB) [https://i.ibb.co/1Mhhfzz/2.jpg](https://ibb.co/1Mhhfzz) [https://i.ibb.co/Ychk0Dn/3.jpg](https://ibb.co/Ychk0Dn) [https://i.ibb.co/q5hgLxg/4.jpg](https://ibb.co/q5hgLxg)

---

<div class="post-metadata">

**Author:** ![Muchasty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muchasty](https://forums.unrealengine.com/u/Muchasty)\
**Post date:** [September 29, 2020, 1:12pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/75 "2020-09-29T13:12:59Z")

</div>

@tc22 those settings are not in use for GPU Ligthmass. They work only for CPU baker.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 30, 2020, 12:16am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/76 "2020-09-30T00:16:03Z")

</div>

found another bug… Gpu lightmass on alpha geometry casting inverted shadows. As in the transparent parts block light… and the the opaque parts on the texture let light pass through instead of casting shadows.

 ![alpha_gpuLightmass_bug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/1/f1750bbf32794d0e9e029ce6e68e3992d0278aa8.jpeg)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 30, 2020, 1:13am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/77 "2020-09-30T01:13:24Z")

</div>

GPU lightmass point lights are dim compared to stationary or moveable light with same values.

 ![lowerIntensity.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/c/8cb5e05f17f34d9da0b86eed9aa74d9cd58d8e78.jpeg)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 30, 2020, 1:14am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/78 "2020-09-30T01:14:12Z")

</div>

Anotehr bug… gpu lightmass has backfaces block light.

 ![gpulightmass_backfaceShadow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/b/cb8616a75ef082c49402d522563444b1cbf195cd.jpeg)

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 30, 2020, 1:37am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/79 "2020-09-30T01:37:22Z")

</div>

Doesnt look like inner cone angle works in gpu lightmass.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [September 30, 2020, 1:41am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/80 "2020-09-30T01:41:27Z")

</div>

source radius on spot light doesnt work in gpu light mass.

[Previous page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=3)

[Next page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=5)
