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

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [January 23, 2020, 7:53pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1652 "2020-01-23T19:53:29Z")

</div>

> [@](#):
>
> Has anyone figured out a workaround for GPU Lightmass crapping all over LODed static meshes ?
> 
> Apparently LODs are also not supported and if there is no workaround, it was nice knowing you folks, but I would have to go back to CPU Lightmass ☹

Lods should work fine. In 4.24 though, if you have UE create LODs the lightmap channel is set wrong and so artifacts are all over the place.  
Putting the proper lightmap channel manually can crash UE. Its been reported and fixed and will be in 4.24.2

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [January 23, 2020, 8:05pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1653 "2020-01-23T20:05:40Z")

</div>

> [@](#):
>
> Lods should work fine. In 4.24 though, if you have UE create LODs the lightmap channel is set wrong and so artifacts are all over the place.  
> Putting the proper lightmap channel manually can crash UE. Its been reported and fixed and will be in 4.24.2

They don’t and said LODs are going to give me headaches, which is exactly what happened (as you can see on the pic). LODs are handmade, not generated by UE4.

I rebuilt lighting with CPU Lightmass and not only got no artifacts at all using Preview settings, but also got nicer lighting in general (especially ambient lighting).

I am thinking GPU Lightmass was made with in mind (it seems like I only got good results, fast, using it for indoor lighting and always had issues with outdoor lighting and LODs).

---

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [January 23, 2020, 8:26pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1654 "2020-01-23T20:26:38Z")

</div>

@ Strange. I never had any problems until the 4.24 lod-bug but I’m not doing any landscapes - just .  
We can only hope the new solution Epic (and ) are working on will fix landscapes too. Still no word/sign when it will be in beta though.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [January 23, 2020, 8:33pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1655 "2020-01-23T20:33:27Z")

</div>

> [@](#):
>
> @ Strange. I never had any problems until the 4.24 lod-bug but I’m not doing any landscapes - just .  
> We can only hope the new solution Epic (and ) are working on will fix landscapes too. Still no word/sign when it will be in beta though.

Well, if you do , why do you even need LODs 😉 That terrain is not Landscape. It’s a bunch of static meshes made to match seamlessly regardless of LOD.

---

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [January 24, 2020, 7:29am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1656 "2020-01-24T07:29:16Z")

</div>

@ I need the LODs because the objective is to view the viz on Quest.

Not to drag this any further but I still fail to see why LODs would go wrong;  
GPUlightmass is just another way to calculate the lightmaps. Unreal only calculates them for LOD0 as far as I know (tested this a while ago).  
If manually created LODs have their lightmap UVs in exactly the same layout/position as LOD0, they would just re-use the same lightmap solution.  
If artifacts are visible, I expect the uvs of the manually created LODs are not perfectly matching the internal layout of the LOD0 uvs.

Due to the LOD bug currently in 4.24 you can’t test it now but when 4.24.2 is here, you could test the LOD + GPUlightmass by just importing one of the meshes and have UE auto-create a few LODs. Run GPUlightmass and no artifacts should be visible.

---

<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:** [January 24, 2020, 8:29am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1657 "2020-01-24T08:29:27Z")

</div>

> [@](#):
>
> @ I need the LODs because the objective is to view the viz on Quest.
> 
> Not to drag this any further but I still fail to see why LODs would go wrong;  
> GPUlightmass is just another way to calculate the lightmaps. Unreal only calculates them for LOD0 as far as I know (tested this a while ago).  
> If manually created LODs have their lightmap UVs in exactly the same layout/position as LOD0, they would just re-use the same lightmap solution.  
> If artifacts are visible, I expect the uvs of the manually created LODs are not perfectly matching the internal layout of the LOD0 uvs.
> 
> Due to the LOD bug currently in 4.24 you can’t test it now but when 4.24.2 is here, you could test the LOD + GPUlightmass by just importing one of the meshes and have UE auto-create a few LODs. Run GPUlightmass and no artifacts should be visible.

i try in 4.23 , it is correct lod!

---

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [January 24, 2020, 9:24am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1658 "2020-01-24T09:24:37Z")

</div>

@tc22 You’re right, in 4.23 LODs and lightmap channels work fine. For now you could; import your mesh to 4.23 -\> generate lods in 4.23 -\> migrate to 4.24.  
Lets hope they will release 4.24.2 soon.

---

<div class="post-metadata">

**Author:** ![Nocturness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocturness](https://forums.unrealengine.com/u/Nocturness)\
**Post date:** [January 24, 2020, 9:43am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1659 "2020-01-24T09:43:36Z")

</div>

UE4.24.1 GPU LM vs CPU LM

 ![lightmass.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/5/95f3797fd591b1ee9cf762ebdb762edb8570d202.jpeg)

levels r identical and all parameters same. just skylight and 1 rectlight.

Compare : [CPU vs GPU lightmass - Imgsli](https://imgsli.com/MTEzMDA)

With GPU lm there r no bounced from rect/spot/point light.

---

<div class="post-metadata">

**Author:** ![envmanu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@envmanu](https://forums.unrealengine.com/u/envmanu)\
**Post date:** [January 24, 2020, 7:28pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1660 "2020-01-24T19:28:41Z")

</div>

Question, do you guys know if its possible to bake “raytrace” shadows using gpu at all? I have a directional light test and set to stationary, but after trying lighting bake the shadow softness goes sharper and not soft as intented with a high softness value and raytrace shadows. Thanks.

---

<div class="post-metadata">

**Author:** ![tonpix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tonpix](https://forums.unrealengine.com/u/tonpix)\
**Post date:** [January 28, 2020, 10:14am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1661 "2020-01-28T10:14:11Z")

</div>

Has anyone struggled with combo of GPU lightmass + Virtual Texturing for lightmaps? I’ve tried it in small interior+a bit of exterior and was getting warnings that VT couldn’t allocate from pool, while lightning was incorrect - full of artifacts/blacks. I’m guessing it’s a memory issue, but I’m still a bit skeptic about it - none of textures were converted to VT, so only VT lightmap is faulty there/using any resources, plus scene is really small in terms of meshes, GPU has 8GB VRAM and there’s 32GB RAM too. Could be that GPU baker and VT lightmap are somehow crashing in VRAM territory?

---

<div class="post-metadata">

**Author:** ![XnobladeXx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XnobladeXx](https://forums.unrealengine.com/u/XnobladeXx)\
**Post date:** [January 28, 2020, 6:27pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1662 "2020-01-28T18:27:46Z")

</div>

Can I use it in 4.24.1?

---

<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:** [January 29, 2020, 1:56am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1663 "2020-01-29T01:56:21Z")

</div>

**GPU Lightmass 4.24.2**

Binaries [download](https://www.dropbox.com/sh/iejfroynehryto4/AAC2xmO5ISB4ZEdE2Z90q7cfa?dl=0)

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

---

<div class="post-metadata">

**Author:** ![Roman-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roman-design](https://forums.unrealengine.com/u/Roman-design)\
**Post date:** [January 29, 2020, 7:53am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1664 "2020-01-29T07:53:39Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.24.2**
> 
> Binaries [download](https://www.dropbox.com/sh/iejfroynehryto4/AAC2xmO5ISB4ZEdE2Z90q7cfa?dl=0)
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.24.2)

It is working! Thank you!

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [January 29, 2020, 1:59pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1666 "2020-01-29T13:59:05Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.24.2**
> 
> Binaries [download](https://www.dropbox.com/sh/iejfroynehryto4/AAC2xmO5ISB4ZEdE2Z90q7cfa?dl=0)
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.24.2)

Is it recommended to update? Using the previous version (4.24) in 4.24.2 and it seems fine.

> [@tonpix](#):
>
> Has anyone struggled with combo of GPU lightmass + Virtual Texturing for lightmaps? I’ve tried it in small interior+a bit of exterior and was getting warnings that VT couldn’t allocate from pool, while lightning was incorrect - full of artifacts/blacks. I’m guessing it’s a memory issue, but I’m still a bit skeptic about it - none of textures were converted to VT, so only VT lightmap is faulty there/using any resources, plus scene is really small in terms of meshes, GPU has 8GB VRAM and there’s 32GB RAM too. Could be that GPU baker and VT lightmap are somehow crashing in VRAM territory?

Currently running a project using VTs for lightmaps and GPU lightmass, everything appears to work fine. What engine version are you using?

 ![VTGPULightmass.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/8/48fa74115b8b9bee3e06cd4b670a9d268ac915cf.jpeg)

---

<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:** [January 29, 2020, 8:11pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1667 "2020-01-29T20:11:53Z")

</div>

> [@wickerman123](#):
>
> Is it recommended to update? Using the previous version (4.24) in 4.24.2 and it seems fine.

I’d advise against overwriting a newer version of the engine/editor with older versions of GPU Lightmass. If you look at the binary bundle, you’ll see that one of the modified files is UE4Editor-UnrealEd.dll. By overwriting this file, aside from risking potential instability, you’re also missing out on whatever fixes and improvements the new engine version / hotfix brings, that are part of this particular module.

---

<div class="post-metadata">

**Author:** ![Redrocker72](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Redrocker72](https://forums.unrealengine.com/u/Redrocker72)\
**Post date:** [February 1, 2020, 5:44pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1668 "2020-02-01T17:44:18Z")

</div>

\*\*This is from another planet!! \*\*

I run it with 4.19 on my private VR project. Before I was fighting with light bleeds, splotchy shadows, lightmap seams … bake times \>3 hours…  
NOW… ~8-10 minutes bake time!  
And no more light bleeds, no more splotchy shadows everything (mostly) is fine!!

This should be a build-in!! Hope Epic will buy it!

Thanks sooo much for this!! Unbelievable!!

---

<div class="post-metadata">

**Author:** ![PCTENERIFE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PCTENERIFE](https://forums.unrealengine.com/u/PCTENERIFE)\
**Post date:** [February 2, 2020, 12:06am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1669 "2020-02-02T00:06:18Z")

</div>

Hi guys! here show a scene with gpulightmass + HDRBackdrop, thanks !!.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/d/47db99fa5a6a9a9bddc60f1108bc67ca7f7dc4a8.jpeg "4K - GPULightmass + HDRIbackdrop in Unreal engine 4 Final") ](https://www.youtube.com/watch?v=KwRT6bWrGTo)

---

<div class="post-metadata">

**Author:** ![GGX-John](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GGX-John](https://forums.unrealengine.com/u/GGX-John)\
**Post date:** [February 2, 2020, 11:40am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1671 "2020-02-02T11:40:00Z")

</div>

GPULightmass is awesome! 😃 Its just sad, that the skylight cant be stationary… is there any possible workaround? Maybe a second skylight set to movable for the dynamic foliage? Any Ideas?

---

<div class="post-metadata">

**Author:** ![neighborlee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neighborlee/32/1108786_2.png) [@neighborlee](https://forums.unrealengine.com/u/neighborlee)\
**Post date:** [February 2, 2020, 1:44pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1672 "2020-02-02T13:44:34Z")

</div>

> [@NiukNiuk](#):
>
> Open Windows’ task mangager, go to the “performance” tab, select your gpu then on the right select one of the small windows and choose “cuda” in the dropdown menu (little arrow)

I’ve checked just now, and it just isn’t there, so is it a certainty I don’t need cuda SDK for this to show up ? Latest nvidia driver for GTX 950 2gb.

Thx

---

<div class="post-metadata">

**Author:** ![NiukNiuk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/niukniuk/32/88718_2.png) [@NiukNiuk](https://forums.unrealengine.com/u/NiukNiuk)\
**Post date:** [February 2, 2020, 3:03pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1673 "2020-02-02T15:03:45Z")

</div>

> [@neighborlee](#):
>
> I’ve checked just now, and it just isn’t there, so is it a certainty I don’t need cuda SDK for this to show up ? Latest nvidia driver for GTX 950 2gb.
> 
> Thx

I didn’t install cuda sdk, I only have the latest driver installed (I have a gtx 1070 8gb).  
I don’t know, maybe it doesn’t work on gtx 9xx cards 😕

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

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