# 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:** 104

<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:** [September 10, 2021, 4:28pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2157 "2021-09-10T16:28:04Z")

</div>

Thanks as always, @ , for keeping this alive!

Do you know if it will be able to be addapted to UE5? Have you made any try already?

Thank you again!

---

<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:** [September 14, 2021, 9:52pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2158 "2021-09-14T21:52:27Z")

</div>

I definitely want to try at some point. Currently I’m too busy with my day job. It is highly likely that the time and effort required will be more than I can afford to invest at the moment. This all depends on how much the UE5 codebase diverges from UE4.

---

<div class="post-metadata">

**Author:** ![scott1391990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scott1391990](https://forums.unrealengine.com/u/scott1391990)\
**Post date:** [September 16, 2021, 5:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2159 "2021-09-16T17:58:03Z")

</div>

> [@eco\_bach2](#):
>
> Getting a repeated error when Building my Light maps in 4.27  
> “MapCheck: Error: WorldSettings Maps need lighting rebuilt”
> 
> The progress bar comes up momentarilly but then my build always fails.
> 
> Spent an hour googling but no results so far.
> 
> Can anyone suggest troubleshooting steps?

Had the same error last week.  
Everything in my scene was modeled by me or used from Evermotion or CGAxis.  
One model was from 3dsky and had some splines as well that were from the floor plan.  
Deleted the 3dsky model and it started working. Had to remodel that sofa.  
If you have anything downloaded from the internet try removing it and see how it goes.  
Also try cleaning and validating swarm cache after you remove the rogue asset.

---

<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:** [September 19, 2021, 10:38pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2160 "2021-09-19T22:38:00Z")

</div>

**GPU Lightmass 5.0 Early Access 2**

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

Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE5-early-access-2)

---

<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:** [September 20, 2021, 8:24pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2161 "2021-09-20T20:24:11Z")

</div>

Wow, what a genius over here!

I hope I can try it during this week and publish some tests, thanks!!

Was it so divergent from UE4?

---

<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:** [September 20, 2021, 9:06pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2162 "2021-09-20T21:06:23Z")

</div>

It actually went as smoothly as I could have hoped for. There were no conflicts requiring manual resolution during the cherry picking process. This is entirely a testament to the sound software architecture practices employed by the UE developers and especially !

While I appreciate the kind words, my only contribution is to know just enough to be able to resolve merge conflicts when they occur and find my way around compiling the thing.

---

<div class="post-metadata">

**Author:** ![Rykon367](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rykon367/32/88719_2.png) [@Rykon367](https://forums.unrealengine.com/u/Rykon367)\
**Post date:** [September 21, 2021, 10:46pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2163 "2021-09-21T22:46:17Z")

</div>

When I downloaded the engine file for V4.27 and replaced the files in my root folder I got this erorr  
Processing: GPULightmass-UE4.27.0-preview-4.zip…  
 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/c/0c60e3006ef2b75e355cbe57e495d9daa486f135.jpeg)

---

<div class="post-metadata">

**Author:** ![Andrew\_Hevalo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andrew\_Hevalo](https://forums.unrealengine.com/u/Andrew_Hevalo)\
**Post date:** [September 23, 2021, 4:53am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2164 "2021-09-23T04:53:38Z")

</div>

that lightmass doesn’t work with multiple gpu. Am I Right?

---

<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:** [September 23, 2021, 12:35pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2165 "2021-09-23T12:35:54Z")

</div>

Yeah, I know, but you are still here and making what you can, which is equally amazing.

Thanks!

---

<div class="post-metadata">

**Author:** ![EvseyJohn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvseyJohn](https://forums.unrealengine.com/u/EvseyJohn)\
**Post date:** [October 1, 2021, 12:12pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2166 "2021-10-01T12:12:56Z")

</div>

I want to share my work in UE4

watch?v=WlbmjzHCkLc

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [October 4, 2021, 1:14pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2167 "2021-10-04T13:14:35Z")

</div>

Anyone got this weird, multiple shadows after baking the light with 's GPULightmass too?  
Even in a simple scene, with 2 cubes, 2 planes and a directional light. (For comparison I even covered one half within a Lightmass Importance Volume. But there are no differences).

Scene setup:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/2/b25c2ece8c089fee9a48e030684f0aacdb001c83.jpeg)

And the results:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/2/7250e1ea643a92c19bea7bcf8c9a8ecb285b58aa.jpeg)

The Directional light had default settings and was switched to Static.  
GPULightmass Settings were: Primary 64 Samples, Secondary 16.

Switching the Directional light to Stationary, the shadows now are somehow more aligned:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/7/f7dea3f3053a01720d8116d029d01ac6090b9f7e.jpeg)

But, still, not great. Are there some other settings I need to change? My first contact with 's GPULightmass was a quick + dirty session in 4.26 … therefore I’m not sure if these weird shadows are ‘normal’.

Even if there were one or two posts in this topic, regarding the same problem, but with no answer, I try and ask again -desperately … there may be someone out there that has faced this problem and came to a solution.

---

<div class="post-metadata">

**Author:** ![MikeArtist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeArtist](https://forums.unrealengine.com/u/MikeArtist)\
**Post date:** [October 9, 2021, 4:31am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2168 "2021-10-09T04:31:01Z")

</div>

Hi That"s my problem too … the same error… Does any solution been found?

---

<div class="post-metadata">

**Author:** ![3dmikee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dmikee](https://forums.unrealengine.com/u/3dmikee)\
**Post date:** [October 11, 2021, 8:54am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2169 "2021-10-11T08:54:46Z")

</div>

It mentions that Luoshangs Lightmass supports Volumetric lightmaps but ow to you control the Volume density? All my dynamic objects are not being lit correctly is there a way to change the Volume detail cell size?

---

<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:** [October 17, 2021, 8:51pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2170 "2021-10-17T20:51:18Z")

</div>

**GPU Lightmass 4.27.1-release**

**[Download](https://www.dropbox.com/sh/npd8ok889qp0gb0/AACvdjoPO6B3uBhugfqu-JDha?dl=0)** binaries

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

---

<div class="post-metadata">

**Author:** ![Ahmed\_M.Ismail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ahmed\_M.Ismail](https://forums.unrealengine.com/u/Ahmed_M.Ismail)\
**Post date:** [October 17, 2021, 9:35pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2171 "2021-10-17T21:35:34Z")

</div>

i have this problem as well, have you found any soloution?

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [October 18, 2021, 6:39am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2172 "2021-10-18T06:39:04Z")

</div>

No, sadly not. 😕

But because it only appears on the first bounce of the light, I changed the Directional Light to Stationary. That way the ‘Cast Ray Tracing Shadows’ options is “solving” the problem. (Even if I’d like to use a Static Directional Light in my scene 🤓 )

And thanks @ for the new release \<3

---

<div class="post-metadata">

**Author:** ![Hevedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hevedy](https://forums.unrealengine.com/u/Hevedy)\
**Post date:** [October 31, 2021, 11:35am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2173 "2021-10-31T11:35:06Z")

</div>

Whats the difference between this and the GPU baker included into the engine right now at 4.26/2.27 ?

\*Does this one works with the cached space data for moving characters and such ?

Thank you

---

<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:** [October 31, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2174 "2021-10-31T18:22:22Z")

</div>

What ‘cached space data’ is?

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [November 5, 2021, 10:16am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2175 "2021-11-05T10:16:26Z")

</div>

So, I may be too fast with that solution, because I only tried it once on my project and I can’t say it will work always - or even just a second time - but fingers crossed. It’s quite simple: I’ve baked the whole project with the original CPU Lightmass once. The buggy shadows disappeared and after that, baking with 's GPU Lightmass delivered no more problems. (As I said: For now I only tried it once. But I’m quite happy and therefore writing that answer 🤓)

---

<div class="post-metadata">

**Author:** ![rabellogp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rabellogp](https://forums.unrealengine.com/u/rabellogp)\
**Post date:** [November 27, 2021, 3:31am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2176 "2021-11-27T03:31:32Z")

</div>

The difference is that the GPU baker included at 4.26/4.27 has a bug where the volumetric lightmap probes ignore the backfaces and you get light leaking from other rooms onto dynamic objects even if your volumetric lightmap grid is dense enough to place probes inside walls.

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

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