# Luoshuang's GPULightmass

**URL:** <https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [April 13, 2018, 5:44am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474 "2018-04-13T05:44:47Z")\
**Posts on this page:** 20\
**Page:** 91

<div class="post-metadata">

**Author:** ![Brygelsmack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brygelsmack](https://forums.unrealengine.com/u/Brygelsmack)\
**Post date:** [July 27, 2020, 3:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1887 "2020-07-27T15:01:54Z")

</div>

> [@Muchasty](#):
>
> Bake Performance problems.  
> When bake:
> 
> 1. Turn off Realtime in EDITOR
> 2. Move the SWARM app to the top ( visible - it really helps, believe me ) ( you can find its yellow icon in the system try )
> 3. Do not overload CPU with other things ( it can be a bottleneck for GPU computation cause CPU is also utilized very hard)
> 
> I have the same issues with my RTX2080ti and this what I wrote is a solution for it.

What do you mean by “Move the SWARM app to the top”?

---

<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:** [July 27, 2020, 5:04pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1888 "2020-07-27T17:04:09Z")

</div>

Move SWARM to top means to make window visible while baking cause I believe that sometimes Windows can manage it like a background process.  
I mentioned it because sometimes it helps and the GPULM suddenly starting to compute as it should. Sometimes not. ( even if I ma sure that I have no other programs open that could use CUDA or GPU somehow ).

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 27, 2020, 9:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1889 "2020-07-27T21:01:09Z")

</div>

Hello,  
I am using GPU lightmass in 4.25. I have some “problems” with GI and shadows. Not sure if it is the expected result or if there is something wrong in the scene.  
Lightmaps are made with 3dsmax, and resolutions are really high. Lightmass compression is off. Num indirect lightning bounces set to 10 (tryed 100 with same result)  
Bake is set to production and in the Base Lightmass.ini I have NumPrimaryGISamples=128 NumSecondaryGISamples=64

As you can see in the next iages, the “problem” is that light does not “disperse” it is like every window is like a beamer of light, wich is how it should be, but I am not sure if this is too exagerated. Do we need lightportals with GPU?

Thank you in advance

EDIT: lightportals seem to have no effect on the result.  
the “problem” seems to be more exagerated when the rooms have only indirect light, like the third picture.

 ![HighresScreenshot00004.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/2/92f3df4a76ce9cc2563e2732645616e1326f9a60.jpeg)

 ![HighresScreenshot00005.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/31539167b74f0d61ecf1dbbeb43d53aebf308ee4.jpeg)

 ![HighresScreenshot00006.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/8/58715ea0622c6743964c0a67023cfd07ae9ddc29.jpeg)

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 28, 2020, 11:20am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1890 "2020-07-28T11:20:13Z")

</div>

> [@Idgi](#):
>
> Hello,  
> I am using GPU lightmass in 4.25. I have some “problems” with GI and shadows. Not sure if it is the expected result or if there is something wrong in the scene.

No one??  
Please guys!!! just need to know if this is expected behavior or if there is a way to make GI more disperse/scattered ??

because this is not usable for production…cannot have beams of light in the walls

---

<div class="post-metadata">

**Author:** ![petermayer1129](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@petermayer1129](https://forums.unrealengine.com/u/petermayer1129)\
**Post date:** [July 28, 2020, 2:28pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1891 "2020-07-28T14:28:27Z")

</div>

New problem has arised since yesterday. Now it just crashes. Anyone have the same? thanks

 ![Annotation 2020-07-28 162606.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/31a94d8b999635492c97c6a3f9155713a843706e.jpeg)

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 28, 2020, 2:40pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1892 "2020-07-28T14:40:55Z")

</div>

> [@petermayer1129](#):
>
> New problem has arised since yesterday. Now it just crashes. Anyone have the same? thanks
> 
> ![Annotation 2020-07-28 162606.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/31a94d8b999635492c97c6a3f9155713a843706e.jpeg)

try clean and after validate the Swarm cache on the Cache tab of the swarm agent

---

<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:** [July 28, 2020, 3:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1893 "2020-07-28T15:58:23Z")

</div>

> [@Idgi](#):
>
> Hello,  
> I am using GPU lightmass in 4.25. I have some “problems” with GI and shadows. Not sure if it is the expected result or if there is something wrong in the scene.  
> Lightmaps are made with 3dsmax, and resolutions are really high. Lightmass compression is off. Num indirect lightning bounces set to 10 (tryed 100 with same result)  
> Bake is set to production and in the Base Lightmass.ini I have NumPrimaryGISamples=128 NumSecondaryGISamples=64
> 
> As you can see in the next iages, the “problem” is that light does not “disperse” it is like every window is like a beamer of light, wich is how it should be, but I am not sure if this is too exagerated. Do we need lightportals with GPU?
> 
> Thank you in advance
> 
> EDIT: lightportals seem to have no effect on the result.  
> the “problem” seems to be more exagerated when the rooms have only indirect light, like the third picture.

If you could recreate that same project in an older version of UE4 and share it (only the necessary things, of course), I could test it on 4.22 and 4.24 too, as I noticed some changes that I didn’t like on 4.25. I addition we could see how is your actual exterior illumination. Maybe the sky is too powerful.

> [@petermayer1129](#):
>
> New problem has arised since yesterday. Now it just crashes. Anyone have the same? thanks

I have never been ablo to solve those kind of errors. Maybe idgi recommendation works. For me, usually, it was due to a certain asset I added and was not “compatible”, for any reason, with GPUL.

Regards!

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 28, 2020, 7:36pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1894 "2020-07-28T19:36:33Z")

</div>

> [@Miguel1900](#):
>
> If you could recreate that same project in an older version of UE4 and share it (only the necessary things, of course), I could test it on 4.22 and 4.24 too, as I noticed some changes that I didn’t like on 4.25. I addition we could see how is your actual exterior illumination. Maybe the sky is too powerful.

thank you…I am doing a small test to recrate the problem…I noticed that when I have no landscape or floor outside the house, and in the skylight “lower hemisphere is solid color” is uncheck, then as the light come from all directions to the inside and the results are as expected.

I will download ue 4.24 and try to do the same there and send it to you, thank you!

---

<div class="post-metadata">

**Author:** ![MohsenBlur](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mohsenblur/32/938430_2.png) [@MohsenBlur](https://forums.unrealengine.com/u/MohsenBlur)\
**Post date:** [July 29, 2020, 12:06am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1895 "2020-07-29T00:06:58Z")

</div>

I wasn’t thinking so I updated the engine to 4.25.3 and reapplied 4.25.1 GPUlightmass but it looks like now both GPUlightmass and regular lightmass(swarm) are run when building lights. Or is swarm supposed to show up?

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 29, 2020, 10:40am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1896 "2020-07-29T10:40:51Z")

</div>

> [@MohsenBlur](#):
>
> I wasn’t thinking so I updated the engine to 4.25.3 and reapplied 4.25.1 GPUlightmass but it looks like now both GPUlightmass and regular lightmass(swarm) are run when building lights. Or is swarm supposed to show up?

I think it is supposed to show up, at least it has allways showed up for me in 4.22 and 4.25

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 29, 2020, 7:27pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1897 "2020-07-29T19:27:09Z")

</div>

> [@Miguel1900](#):
>
> If you could recreate that same project in an older version of UE4 and share it (only the necessary things, of course), I could test it on 4.22 and 4.24 too, as I noticed some changes that I didn’t like on 4.25. I addition we could see how is your actual exterior illumination. Maybe the sky is too powerful.

Hello again, just sended you a private message with a link to download the test I did to recreate my problen in 4.22. Just writing you here in case you do not recive my private message, if so, let me know and I paste here the download link.

Thank you very much!

---

<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:** [July 29, 2020, 9:08pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1898 "2020-07-29T21:08:38Z")

</div>

> [@Idgi](#):
>
> Hello again, just sended you a private message with a link to download the test I did to recreate my problen in 4.22. Just writing you here in case you do not recive my private message, if so, let me know and I paste here the download link.
> 
> Thank you very much!

Hi Idgi,

Already tested! After quite tries, I can only conclude that it’s an issue related to the lighting bounces on the external floor materials, and it seems to be right (or, at least, as expected with GPU lightmass, as far I know). If you try with a simple black material on floor and with a white one, you will notice it’s simple depends on the “reflectiveness” of the surface material.

Regards!

---

<div class="post-metadata">

**Author:** ![pax\_invictus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pax\_invictus](https://forums.unrealengine.com/u/pax_invictus)\
**Post date:** [July 29, 2020, 9:42pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1899 "2020-07-29T21:42:43Z")

</div>

Good news, everyone [Trello](https://trello.com/c/tZGbiu9N)!

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [July 30, 2020, 2:07pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1900 "2020-07-30T14:07:15Z")

</div>

> [@Miguel1900](#):
>
> Hi Idgi,
> 
> Already tested! After quite tries, I can only conclude that it’s an issue related to the lighting bounces on the external floor materials, and it seems to be right (or, at least, as expected with GPU lightmass, as far I know). If you try with a simple black material on floor and with a white one, you will notice it’s simple depends on the “reflectiveness” of the surface material.
> 
> Regards!

thank you very much!! that was what I suspected…sad, because I really preffer to work with the old bp sky than the new sunsky…I made some test with the new sunsky, and the results are much better…

old bp sky, indirect light coming from a window , you can see the window on all the walls, wich is not realistic at all

 ![form_baix_100_2500_32_16.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/0/2004132b57f28d54dc76214b320a2aae55182628.jpeg)​

the new sunsky, more realistic GI scattering, but no clouds outside like the old one

 ![HighresScreenshot00001.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/7/1782d79761fe9d99381855f76c47023d6f47abad.jpeg)

---

<div class="post-metadata">

**Author:** ![pedrotravels](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pedrotravels](https://forums.unrealengine.com/u/pedrotravels)\
**Post date:** [July 30, 2020, 3:08pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1901 "2020-07-30T15:08:24Z")

</div>

After about a week trying to figure out the problem I found out and it is from using the GPU Lightmass.

So I updated from v4.25.1 to the v4.25.3 of Unreal but I didn’t know I could’t revert back to the previous version.  
I tried to use the GPULightmass for the v4.25.1 in the lattest version 4.25.3

It works… but I am getting this noise shown on the picture bellow everywhere. Took a week to figure out that if I render with the CPU the noise goes away.  
I am using a skylight and a HDRi only in the picture.

I also did a try on 4.24.3 version of Unreal with the correct GPULightmass and the same happens, but not when I use CPU.

Anyone knows what can I do?

 ![screenshot1b.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/b/5be10ebd6e48f62f525e24e0f1943134e6fc6486.jpeg)

---

<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:** [July 30, 2020, 4:48pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1902 "2020-07-30T16:48:21Z")

</div>

> [@Idgi](#):
>
> thank you very much!! that was what I suspected…sad, because I really preffer to work with the old bp sky than the new sunsky…I made some test with the new sunsky, and the results are much better…
> 
> old bp sky, indirect light coming from a window , you can see the window on all the walls, wich is not realistic at all
> 
> (…)
> 
> the new sunsky, more realistic GI scattering, but no clouds outside like the old one
> 
> (…)

Hm! Could you share your SunSky settings, please?

I’m thinking maybe you are using the Sun inside it as Static or Stationary, with a high intensity value, and the Sky component inside the BP as Movable, maybe or with very low intensity?

Your external floor, which was quite grey-dark, is still as dark? or too burned out?

Because I’m getting the same result with both systems (when adjusting it it have the same settings)

---

<div class="post-metadata">

**Author:** ![thundermax1979](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thundermax1979](https://forums.unrealengine.com/u/thundermax1979)\
**Post date:** [August 1, 2020, 9:51am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1903 "2020-08-01T09:51:03Z")

</div>

Hi any update for 4.25.3 versions? thanks

---

<div class="post-metadata">

**Author:** ![pax\_invictus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pax\_invictus](https://forums.unrealengine.com/u/pax_invictus)\
**Post date:** [August 2, 2020, 5:56am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1904 "2020-08-02T05:56:50Z")

</div>

> [@thundermax1979](#):
>
> Hi any update for 4.25.3 versions? thanks

Here you go:

**GPU Lightmass 4.25.3**

**[Download](https://www.dropbox.com/sh/tfu2wli3t5a2ovg/AABxRGYnCXc_OqgcrQNgQ4vVa?dl=0)** binaries

Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.25.3-release)

---

<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:** [August 3, 2020, 3:59am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1905 "2020-08-03T03:59:47Z")

</div>

> [@](#):
>
> Here you go:
> 
> **GPU Lightmass 4.25.3**
> 
> **[Download](https://www.dropbox.com/sh/tfu2wli3t5a2ovg/AABxRGYnCXc_OqgcrQNgQ4vVa?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.25.3-release)

Thank you!

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [August 3, 2020, 12:46pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1906 "2020-08-03T12:46:22Z")

</div>

It’s happening! [https://trello.com/c/tZGbiu9N/587-gpu-lightmass-beta  
  ![Annotation 2020-08-03 094536.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/b/7b8c89464ce978f37919dfa5f23c8424d7a6ded1.jpeg)](https://trello.com/c/tZGbiu9N/587-gpu-lightmass-beta)

[Previous page](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474.md?page=90)

[Next page](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474.md?page=92)
