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

<div class="post-metadata">

**Author:** ![ch3steros](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ch3steros](https://forums.unrealengine.com/u/ch3steros)\
**Post date:** [April 29, 2019, 11:06am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1143 "2019-04-29T11:06:13Z")

</div>

I have problem with gpu lightmass. When i bake i have strange lines near windows, Using 4.22.1 Some screens

Anyone know how to solve this?

---

<div class="post-metadata">

**Author:** ![MarcoF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcoF](https://forums.unrealengine.com/u/MarcoF)\
**Post date:** [April 29, 2019, 7:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1144 "2019-04-29T19:01:29Z")

</div>

Does Anyone know what is causing this Noise seen in the image?  
Working on a Windows 10 latest Build.  
GTX 1060 Grapics Card and Unreal 4.22.1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b377aaaa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b377aaaa1](https://forums.unrealengine.com/u/anonymous_user_b377aaaa1)\
**Post date:** [April 30, 2019, 8:59am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1145 "2019-04-30T08:59:09Z")

</div>

> [@MarcoF](#):
>
> Does Anyone know what is causing this Noise seen in the image?  
> Working on a Windows 10 latest Build.  
> GTX 1060 Grapics Card and Unreal 4.22.1

Can you please verify the lightmap resolution of your geometry ?

---

<div class="post-metadata">

**Author:** ![sbz\_edvinas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sbz\_edvinas](https://forums.unrealengine.com/u/sbz_edvinas)\
**Post date:** [April 30, 2019, 11:34am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1146 "2019-04-30T11:34:31Z")

</div>

Hey! I have been having a strange issue with bounce light recently, maybe someone here knows how to solve it.

I am using an emissive hdr sky for the Skylight to capture, I also have a physical lights setup, so the intensity values of the emissive sky material as well as the directional sun light are really high. I haven’t had any issues with this exact setup for months though, everything was baking fine, but now it seems like the light is not bouncing at all. I don’t think I have changed anything other than maybe re-downloading the gpu lightmass. Has anyone had a similar issue and know what could be causing this? I feel like I have tried everything without any luck ☹

I’m on 4.20.

\*\*Edit: \*\*I didn’t think to try this earlier, but I grabbed an older version of the 4.20 gpu lightmass and everything works as expected now 😮 So what has changed in the most recent version that could be causing the issue I mentioned above?

---

<div class="post-metadata">

**Author:** ![MarcoF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcoF](https://forums.unrealengine.com/u/MarcoF)\
**Post date:** [April 30, 2019, 6:16pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1147 "2019-04-30T18:16:21Z")

</div>

> [@aequoy](#):
>
> Can you please verify the lightmap resolution of your geometry ?

They are all set so to get the most out of it, haven’t had this on while i was baking on CPU.  
Regarding to those fireflies, what worked for me to get rid of where the Sunlight directly hits was to set the FireflyClampingThreshold to 10.  
Eventhough i ve got weird splotches around the whole scene. The scene also went a lot darker ☹

---

<div class="post-metadata">

**Author:** ![Bakikibakibabaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bakikibakibabaki](https://forums.unrealengine.com/u/Bakikibakibabaki)\
**Post date:** [May 2, 2019, 1:34pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1148 "2019-05-02T13:34:44Z")

</div>

> [@MarcoF](#):
>
> They are all set so to get the most out of it, haven’t had this on while i was baking on CPU.  
> Regarding to those fireflies, what worked for me to get rid of where the Sunlight directly hits was to set the FireflyClampingThreshold to 10.  
> Eventhough i ve got weird splotches around the whole scene. The scene also went a lot darker ☹

Have you tried to turn OFF “Use Ambient Occlusion” in World Settings?

---

<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:** [May 3, 2019, 11:00am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1149 "2019-05-03T11:00:48Z")

</div>

Does “Generate Ambient Occlusion Material Mask” in the World Settings do anything while using GPU Lightmass? Because I’m intending to use the Precomputed AO Mask node in my material but it doesn’t work.

Edit: Just read it’s not supported. Any chance to get it in the future?

---

<div class="post-metadata">

**Author:** ![Situx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Situx](https://forums.unrealengine.com/u/Situx)\
**Post date:** [May 3, 2019, 6:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1150 "2019-05-03T18:01:39Z")

</div>

Script updated to detect 4.22.1 CPU. It is really not important thou and a minor update, as the GPU kernel remains the same.

---

<div class="post-metadata">

**Author:** ![fede778](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fede778](https://forums.unrealengine.com/u/fede778)\
**Post date:** [May 3, 2019, 7:56pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1151 "2019-05-03T19:56:24Z")

</div>

> [@Situx](#):
>
> Script updated to detect 4.22.1 CPU. It is really not important thou and a minor update, as the GPU kernel remains the same.

Hello, looks like it doesn’t recognise my UE4 version  
“Unreal Engine Version 4.22 not installed or registry not set”  
How con I resolve that? Thanks

---

<div class="post-metadata">

**Author:** ![Sanjuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanjuan](https://forums.unrealengine.com/u/Sanjuan)\
**Post date:** [May 3, 2019, 8:18pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1152 "2019-05-03T20:18:48Z")

</div>

Is that possible to get rid of this area shadow of skylight? I would like that my skylight distributes better the light…

---

<div class="post-metadata">

**Author:** ![MarcoF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcoF](https://forums.unrealengine.com/u/MarcoF)\
**Post date:** [May 4, 2019, 4:47pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1153 "2019-05-04T16:47:00Z")

</div>

> [@Bakikibakibabaki](#):
>
> Have you tried to turn OFF “Use Ambient Occlusion” in World Settings?

Yep…is currently set to OFF, its not taking it into account.  
BTW: Does any of these settings in the World Settings matter with this GPU Approach?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_921900ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_921900ad](https://forums.unrealengine.com/u/anonymous_user_921900ad)\
**Post date:** [May 5, 2019, 9:16pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1154 "2019-05-05T21:16:42Z")

</div>

Would anyone know why this gets stuck for me on a RTX 2070 Max-Q machine, but works fine on a GTX 1060?

Here’s some detail: I run the same project and lightmass setup, but when I run the light builder, everything seems to work fine up until it finishes the radiosity cache. Then, it just sits there. No modal errors, nothing in the output log, it just sits at “Overall texel progress 0.00%”.

From a task manager standpoint, when the build is first started, it crunches away as expected - the CPU utilization pegs high, and cuda cores peg 100%. Then, as soon as the radiosity cache is done (10 passes) the CPU settles down to 20%, and then 0% on cuda. I’ve left it like this for hours. The “Building Lighting: 0%” never changes, nor does the “Current batch 0.76% Block 1/132” and “Overall texel progress 0.00%” in the GPU Lightmass progress window.

Things I’ve tried:

- TDRLevel is set to 300
- Cleared the SwarmAgent cache
- Rolled back to try two different sets of drivers on the RTX 2070
- Last ditch effort: just mass deleting elements from the project and re-testing until light building works; which it never did

Using 4.20.2 of Loushuang’s with a project that is set up in 4.20.3.

The system it works on with the GTX 1060 has the same amount of system RAM (32GB). The 1060 has 6GB of GPU memory, while the 2070 has 8GB. I’m convinced it’s a 2070 thing, and possibly something to do with the Max-Q architecture. ¯\_(ツ)\_/¯

---

<div class="post-metadata">

**Author:** ![rakikavun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rakikavun](https://forums.unrealengine.com/u/rakikavun)\
**Post date:** [May 5, 2019, 11:05pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1155 "2019-05-05T23:05:53Z")

</div>

> [@Sanjuan](#):
>
> Is that possible to get rid of this area shadow of skylight? I would like that my skylight distributes better the light…

You should change “lower hemisphere color”… Make it more brighter. If you use hdri for skylight, you can disable it.

---

<div class="post-metadata">

**Author:** ![Bakikibakibabaki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bakikibakibabaki](https://forums.unrealengine.com/u/Bakikibakibabaki)\
**Post date:** [May 6, 2019, 9:39am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1156 "2019-05-06T09:39:06Z")

</div>

> [@MarcoF](#):
>
> Yep…is currently set to OFF, its not taking it into account.  
> BTW: Does any of these settings in the World Settings matter with this GPU Approach?

Yes the Indirect lighting Bounces and the Num Sky Lighting bounces

---

<div class="post-metadata">

**Author:** ![Alessiana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alessiana](https://forums.unrealengine.com/u/Alessiana)\
**Post date:** [May 8, 2019, 3:06pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1157 "2019-05-08T15:06:09Z")

</div>

Hi,  
Any info to fix this error?

16:59:46: GPULightmass Kernel: Importing mesh: 94746496 vertices, 104756177 triangles  
17:00:30: GPULightmass Kernel: Embree SBVH Construction finished, 43179MS  
17:01:10: GPULightmass Kernel: Convert to CudaBVH finished, 40695MS  
17:01:14: GPULightmass Kernel: Line 86: cudaCheckError: out of memory

I’m using a 2080Ti, i7-9700k and 32GB of ram

Thank you

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_faa4103d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_faa4103d](https://forums.unrealengine.com/u/anonymous_user_faa4103d)\
**Post date:** [May 9, 2019, 6:34pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1158 "2019-05-09T18:34:09Z")

</div>

> [@](#):
>
> I’ve uploaded a new version of unified settings to fix the quality problem.
> 
> Also, for source integration:
> 
> [EngineModification.zip](https://forums.unrealengine.com/uploads/short-url/ArGjZa6VcFeZyc9iYGVsDycqbfH.zip) (53 KB)
> 
> Two files in the zip: Engine\Source\Programs\UnrealLightmass\Public\SceneExport.h and Engine\Source\Editor\UnrealEd\Private\Lightmass\Lightmass.cpp.  
> You need to either replace the two files, or use a diff tool to apply the patch to your source build. The change is about copy dependencies and reading ini files.

Hi all. In the same way as many other UE4 users, I have found this tool a bit late. Unfortunately I am following the steps that poses, but I can not install the GPULightmass engine from the source. The version I have of UE4 is 4.22.1, it jumps an error that says: "GPULightmasKernel.dll is missing. Some of you can tell me the steps to perform the correct installation. I am not a video game programmer, I am an architect in love with the tool that UE4 gives me.

---

<div class="post-metadata">

**Author:** ![ldo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ldo](https://forums.unrealengine.com/u/ldo)\
**Post date:** [May 11, 2019, 1:59pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1159 "2019-05-11T13:59:54Z")

</div>

Did anybody have the opportunity to test 2080 ti or maybe 1080ti vs 2080ti in GPU Lightmass?

---

<div class="post-metadata">

**Author:** ![Sanjuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanjuan](https://forums.unrealengine.com/u/Sanjuan)\
**Post date:** [May 12, 2019, 6:12pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1160 "2019-05-12T18:12:51Z")

</div>

> [@rakikavun](#):
>
> You should change “lower hemisphere color”… Make it more brighter. If you use hdri for skylight, you can disable it.

Worked! Thx!

---

<div class="post-metadata">

**Author:** ![dustintinkler](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dustintinkler/32/484961_2.png) [@dustintinkler](https://forums.unrealengine.com/u/dustintinkler)\
**Post date:** [May 13, 2019, 11:09pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1162 "2019-05-13T23:09:01Z")

</div>

I have been getting a strange bug where certain faces usually facing in one direction in both positive and negative render completely back. all of a sudden it started happening on meshes I haven’t touched or changed anything on. I have tried what seems like everything, I have re uv’d, changed lightmap res, and countless other things. in one section i have had luck with just simply exporting and re importing while changing nothing and it has fixed the issue. In other areas that fix dosent seem to work. Ill post some images in lit, unlit, and lighitng only.  
Its the horizontal beam above the ceiling.

Thanks in advanced,

 ![HighresScreenshot00054.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a8df19363657c6ba4e9f1dfaa71c0a929b928026.jpeg)

---

<div class="post-metadata">

**Author:** ![whooosh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@whooosh](https://forums.unrealengine.com/u/whooosh)\
**Post date:** [May 14, 2019, 3:49pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1163 "2019-05-14T15:49:27Z")

</div>

> [@Hawks\_architect](#):
>
> Hi all. In the same way as many other UE4 users, I have found this tool a bit late. Unfortunately I am following the steps that poses, but I can not install the GPULightmass engine from the source. The version I have of UE4 is 4.22.1, it jumps an error that says: "GPULightmasKernel.dll is missing. Some of you can tell me the steps to perform the correct installation. I am not a video game programmer, I am an architect in love with the tool that UE4 gives me.

Well, you’ll need to know how to compile the engine from source if you are using this version to install. Have you built the engine successfully from Source code using Visual Studio 2017? Make sure when you’re building, you follow instructions on what to edit along with SceneExport.h here: [https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page3](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page3)

I’d advise using the Binary version instead of Source. Are you modifying the engine source code? It’s usually not necessary unless you’re doing a lot of engine code edits. I presume you’re not since you said you’re not a game programmer. Stick with Binary and use Situx’s script.

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

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