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

<div class="post-metadata">

**Author:** ![The\_Fuchsen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Fuchsen](https://forums.unrealengine.com/u/The_Fuchsen)\
**Post date:** [February 8, 2021, 6:12pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2073 "2021-02-08T18:12:38Z")

</div>

Is it possible to use a different GPU For computing? Since UE4 already uses a lot of vram, could I tell to the GPU lightmass to use a different GPU instead for computing? (I know it doesn’t support multiple gpus yet but just asking as a way to improve vram usage)

---

<div class="post-metadata">

**Author:** ![fael097](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fael097/32/250778_2.png) [@fael097](https://forums.unrealengine.com/u/fael097)\
**Post date:** [February 9, 2021, 3:34am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2074 "2021-02-09T03:34:45Z")

</div>

> [@Miguel1900](#):
>
> Thank you very much Pax!
> 
> If you want, or need it, you can make a mini tutorial simply recording how you compile it, so other users can do it too, if you are a little tired.
> 
> Best regards!

Could you please? I have no idea how to install it (or how to configure quality for that matter) used to do it with LightmassConfigurator but apparently it doesn’t work anymore?

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_653760e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_653760e8](https://forums.unrealengine.com/u/anonymous_user_653760e8)\
**Post date:** [February 9, 2021, 12:44pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2075 "2021-02-09T12:44:00Z")

</div>

Sorry if it has been discussed before, but neither 's nor the native GPU lightmass seems to work with my card (3060 ti). I can get the CPU working fine, but any attempt with the GPU solution results in softer shadows but no GI at all. I can get real time ray tracing GI, but no bake. I’ve tryed with 4.26 and 4.25. Can anyone point to a direction?

---

<div class="post-metadata">

**Author:** ![3DMystic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3DMystic](https://forums.unrealengine.com/u/3DMystic)\
**Post date:** [February 9, 2021, 4:17pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2076 "2021-02-09T16:17:28Z")

</div>

how do fix it ? very noisy and vibrate

---

<div class="post-metadata">

**Author:** ![fael097](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fael097/32/250778_2.png) [@fael097](https://forums.unrealengine.com/u/fael097)\
**Post date:** [February 14, 2021, 12:36am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2077 "2021-02-14T00:36:21Z")

</div>

Hey folks, it’s been a while since I played around with 's GPUlightmass. Last time I used this Lightmass Configuration script and it got me perfect results and fast baking times without any hassle.

Then I got a new RTX card and tried the official GPU lightmass that came with 4.26 but the results aren’t great so I came back for 's. Turns out the Lightmass Configuration script no longer works, and I’m not sure how to edit the settings in the BaseLightmass.ini files to get similar results anymore.

I already have some values cranked up a bit and I’m still getting some artifacts. Build quality is set to Production, I’ve increased NumPrimaryGISamples to 128 and NumSecondaryGISamples to 64 in the BaseLightmass.ini file, and here are my global Lightmass settings attached.

There’s some light leaking through the edges of my garage door, even though there are no gaps between the meshes, and the contact shadows on the closet doors are inconsistent and some even sort of pixelated.

Any ideas on how to fix it?

---

<div class="post-metadata">

**Author:** ![The\_Fuchsen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Fuchsen](https://forums.unrealengine.com/u/The_Fuchsen)\
**Post date:** [February 16, 2021, 1:13am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2078 "2021-02-16T01:13:22Z")

</div>

> [@](#):
>
> virtual texture work but virtual lightmaps doesn’t work 4.25.3

> [@](#):
>
> [https://youtu.be/mFUqCyEb82g](https://youtu.be/mFUqCyEb82g)
> 
> This is gpu lightmass from 4.25 but this settings. İf enable virtual texture lightmaps everything is yellow and black. I want to more lightmaps but 4.25 gpu lightmass is not support because this option.
> 
> ![gpu lightmas.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/a/bacc93fa4e06a706a62b1ec2e8366510e9b9516e.png)

I have the exact same problem in 4.25.4

GPU works partially (No GI baked from area lights) but enabling Virtual Lightmass breaks the plugin:

Virtual Texture on:

---

<div class="post-metadata">

**Author:** ![The\_Fuchsen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Fuchsen](https://forums.unrealengine.com/u/The_Fuchsen)\
**Post date:** [February 16, 2021, 1:16am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2079 "2021-02-16T01:16:10Z")

</div>

> [@BrunoStardust](#):
>
> Sorry if it has been discussed before, but neither 's nor the native GPU lightmass seems to work with my card (3060 ti). I can get the CPU working fine, but any attempt with the GPU solution results in softer shadows but no GI at all. I can get real time ray tracing GI, but no bake. I’ve tryed with 4.26 and 4.25. Can anyone point to a direction?

Are you using Area Lights? I have the exact same problem with a 1660 Super, but only with Area Lights:

See post [https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass?p=1838570#post1838570](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass?p=1838570#post1838570)

---

<div class="post-metadata">

**Author:** ![LeeZX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeeZX](https://forums.unrealengine.com/u/LeeZX)\
**Post date:** [February 22, 2021, 8:22am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2080 "2021-02-22T08:22:26Z")

</div>

Hello, has anyone else encountered an error that says “an illegal memory access was encountered” after pressing build? I saw in an older post that says to lower the GPU base clock, so I tried using MSI Afterburner and lowered it down about 50-200MHz (my GPU is a GTX 1060 6GB card which has a base clock of 1506MHz) but still the error appears. Can anyone help? Thanks!

---

<div class="post-metadata">

**Author:** ![HHVISION](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HHVISION](https://forums.unrealengine.com/u/HHVISION)\
**Post date:** [February 24, 2021, 3:16pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2081 "2021-02-24T15:16:34Z")

</div>

> [@3DMystic](#):
>
> how do fix it ? very noisy and vibrate

Hi,  
Its Raytracing AO, you can turn it off in your Postprocessign Volume.

---

<div class="post-metadata">

**Author:** ![syrom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@syrom](https://forums.unrealengine.com/u/syrom)\
**Post date:** [February 25, 2021, 3:48am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2082 "2021-02-25T03:48:54Z")

</div>

Hey guys. With the official 4.26 gpulightmass release, noticed if you import the baked maps from gpu to a Android package… i doesnt work. gives you the Lighting Needs Rebuild message. I tried EVERYTHING so i think its a bug. Now… does this version of gpu lightmass export fine to Android?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_38f16dd9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_38f16dd9](https://forums.unrealengine.com/u/anonymous_user_38f16dd9)\
**Post date:** [February 28, 2021, 2:37am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2083 "2021-02-28T02:37:38Z")

</div>

I am using Luoshaung’s GPU lightmass with 4.26 is there a way I can artificially increase the amount of indirect light? like increasing the indirect intensity on a specific light or in the world settings? It does not seem to make any difference for me when tweaking them.

---

<div class="post-metadata">

**Author:** ![WissamSader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WissamSader](https://forums.unrealengine.com/u/WissamSader)\
**Post date:** [February 28, 2021, 1:46pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2084 "2021-02-28T13:46:58Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.25.4**
> 
> **[Download](https://www.dropbox.com/sh/yymsusetmd3cx8m/AAB84i6yLLGwfPmWPL-9lB3ca?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.25.4-release)

Hello, I cant download this anymore, is there another page or link I could go to ?  
Thank you

---

<div class="post-metadata">

**Author:** ![pat1231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pat1231](https://forums.unrealengine.com/u/pat1231)\
**Post date:** [March 1, 2021, 8:54am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2085 "2021-03-01T08:54:40Z")

</div>

> [@fhurtubise](#):
>
> Heads up,  
> The community GPU lightmass sadly seems to cause an engine crash whenever trying to paint vertex colors in both 4.26 and 4.26.1. Getting 100% repro rate in all projects, and no crash when GPU lightmass is uninstalled. Vertex paint in 4.25- with GPU lightmass works as intended.

I have the same problem.

---

<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:** [March 1, 2021, 8:34pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2086 "2021-03-01T20:34:17Z")

</div>

> [@WissamSader](#):
>
> Hello, I cant download this anymore, is there another page or link I could go to ?  
> Thank you

Works here.

---

<div class="post-metadata">

**Author:** ![lynnkillian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lynnkillian](https://forums.unrealengine.com/u/lynnkillian)\
**Post date:** [March 10, 2021, 3:50pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2087 "2021-03-10T15:50:11Z")

</div>

Hey ! Noob question : Do GPU baking work with indirect lighting intensity ? I set a value like 5000000 in a point light but makes no difference. Dunno if the question was post before ?

However thx for the good job you’ve already done !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_804b8a6d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_804b8a6d1](https://forums.unrealengine.com/u/anonymous_user_804b8a6d1)\
**Post date:** [March 14, 2021, 8:27pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2088 "2021-03-14T20:27:25Z")

</div>

Hello.  
It would be very difficult to implement this code to control the quality of the LQ LightMap. As this article describes.[https://www.zhihu.com/people/jalenzhou/posts](https://www.zhihu.com/people/jalenzhou/posts)  
I have tried but I don’t understand much and it gives me an error.

---

<div class="post-metadata">

**Author:** ![erkamm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erkamm](https://forums.unrealengine.com/u/erkamm)\
**Post date:** [March 17, 2021, 7:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2089 "2021-03-17T19:01:05Z")

</div>

I have a RX 580 graphics card but I have installed gpu lightmass but it gives ‘’ cuda driver version insufficient for cuda runtime version ‘’ error … what should I do …

---

<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:** [March 18, 2021, 6:30am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2090 "2021-03-18T06:30:59Z")

</div>

> [@erkamm](#):
>
> I have a RX 580 graphics card but I have installed gpu lightmass but it gives ‘’ cuda driver version insufficient for cuda runtime version ‘’ error … what should I do …

Cuda = NVidia.

From the first post of this topic:

" **Limitations:**

- Written in CUDA so **NVIDIA only**."

---

<div class="post-metadata">

**Author:** ![stavros95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stavros95](https://forums.unrealengine.com/u/stavros95)\
**Post date:** [March 24, 2021, 11:14am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2092 "2021-03-24T11:14:41Z")

</div>

Hello guys, am facing a problem with 's GPULightmass and Quixel Megascans. If I increase the light map resolution I get black spots. I import - export the same model in blender and this time i looks ok. I am using Rtx 3090.

---

<div class="post-metadata">

**Author:** ![kabulcreed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kabulcreed](https://forums.unrealengine.com/u/kabulcreed)\
**Post date:** [March 31, 2021, 11:15am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2093 "2021-03-31T11:15:46Z")

</div>

> [@Situx](#):
>
> I made a script that will automatically download and install GPULightmass on your binary installation folder, perform a batch of checks to avoid issues (like nvidia driver version and TdrDelay), and allow to change GPU bake quality among fast, medium, high, extreme, without the need to restart Unreal.
> 
> If it helps someone, just give me a “Like” below.
> 
> It’s currently working with the latest engine version (4.24.1). If you need it to work with a previous one, just replace UnrealEngineVersion variable in LightmassConfiguration.bat to the version you need (use only 4.xx notation, do not use 4.xx.yy here).
> 
> UPDATE 3/1/2020: Script got updated to 4.24.1
> 
> UPDATE 12/11/2018: Now updated to work with 4.21 (Unified Settings). Allows to chage settings on the fly between different BaseLightmap.ini configurations.
> 
> Now on : https://.com/sgeraldes/LightmassConfiguration/
> 
> DIRECT DOWNLOAD to the latest version: [LightmassConfiguration.zip](https://.com/sgeraldes/LightmassConfiguration/archive/master.zip)
> 
> **Instructions:**
> 
> 1. unzip [LightmassConfiguration.zip](https://.com/sgeraldes/LightmassConfiguration/archive/master.zip) to any folder (empty folder is better).
> 2. double click the .bat file and follow the instructions
> 
> **What it does:**
> 
> - The script will download GPU lightmass 4.20.2 from the OP into the same folder, backup CPU Lightmass for you, and install GPU on your choosen quality level.
> - It features an undo or “Restore CPU Lightmass” option.
> - On-the-fly switch of GPU Lightmass with UnrealEd running (no need to restart unreal).
> - It works with 4.21, but can easily be adapted for 4.20x and 4.19.x if needed by adjusting a few parameters inside the file (just edit with Notepad and change UnrealVersion variable to 4.20 or 4.19.
> 
> **What it does not:**
> 
> - Brew you some coffee
> 
> **Requirements** :
> 
> - Windows 10 (not tested in earlier versions, may work but no guarantees)
> - Admin privileges
> 
> **The script has the following features:**
> 
> 1. Show you the version of Nvidia drivers running (and any other display driver that’s running, i.e.: Intel HD) and warn if not sufficient
> 2. Check if you have TDR settings as recommended, IF NOT: the script will ask you to do the changes for you (optional)
> 3. Allows changing GPU Lightmass quality settings (fast preview, medium, high-ultra, extreme) without needing to restart unreal.
> 4. Backup CPU lightmass for you and give you the option to go restore it later
> 5. It will override BaseLightmass.ini on your Unreal folder (it will first backup in the zip archive the version you have and allow to restore at will).
> 6. Checks if GPU Lightmass is installed, if not…
> 
> - Download the latest version of GPU Lightmass for you from 's links
> 
> - Download 7Z.exe to quickly backup and perform decompression of the files in the archives
> 
> - Finds the installation directory of Unreal, and unzip the files there according to the quality you select (will prompt you for it)
> 
> 1. If UnrealEd is running, the script will disable the option to change GPU and CPU lightmass as it needs to access files that are in use to do so.
> 
> **Please note:** The script will give an error while copying when trying to change the quality settings with Unreal Ed running. That’s perfectly fine, the file is just been copied over to be sure it remains the same. I guess I could just copy GPULightmassKernel.dll instead of the whole bunch, but I just think it works as-is just fine. The copy of a single will fail but GPU Lightmass will work the same.
> 
> Also note: the script can’t change from CPU to GPU lightmass while the Unreal Editor is running, so the script will check for that and disable the option accordingly.
> 
> The only file that has the changes for quality, and the only file that is in any way different between the different packs, is GPULightmassKernel.dll (I did a binary compare of each file to be sure).
> 
> **Screenshot:**
> 
> [SPOILER]
> 
> [/SPOILER] [HR][/HR]UPDATE 12/11/2018: New Version 0.3.2. Updated to work with UnrealEd 4.21 (Unified Settings). Allows to chage settings on the fly between different BaseLightmap.ini configurations.  
> UPDATE 09/23/2018: Version 0.3.1 It now works with UnrealEd 4.20.3 and GPU Lightmass Unified Settings. Also created a menu to change Unified Settings quality choosing from the different presets. Fixed a bug with backup of CPU Lightmass that may not keep folder structure in the zip archive.  
> UPDATE 09/22/2018: It currently works with up-to 4.20.2 as binary distributions for GPU Lightmass 4.20.3 are not available. The installer doesn’t work either with Unified Settings, so I’m working on a new installer to work exclusively with it.  
> UPDATE 08/23/2018 v0.2: Modified to allow easier updates of the engine. Fixed some bugs. better detection of some parameters and added a fail-safe in case it fails.TDR settings now in decimal instead of hexa .  
> UPDATE 08/23/2018 v0.2.1: The script now actually checks for driver version and warns the user if the driver does not meet the requirement.

Can you Please update it for 4.26.1 ?  
I’m using an old GPU and if you update it, I will be very Glad.

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

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