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

<div class="post-metadata">

**Author:** ![janek.kubosek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@janek.kubosek](https://forums.unrealengine.com/u/janek.kubosek)\
**Post date:** [June 15, 2020, 12:19pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1865 "2020-06-15T12:19:58Z")

</div>

Dear ,  
It there going to be some update for 4.23 and later?

---

<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:** [June 18, 2020, 7:04am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1866 "2020-06-18T07:04:39Z")

</div>

Hi!  
Do you know why if I disable static shadows for all of my foliage, they are still built in the lighting?  
Is there a way to fix this?

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6534de141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6534de141](https://forums.unrealengine.com/u/anonymous_user_6534de141)\
**Post date:** [June 18, 2020, 3:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1867 "2020-06-18T15:58:04Z")

</div>

> [@Avi\_Aggarwal](#):
>
> I am having a problem when I build lights. It is giving me an error “Invalid device symbol”. I am attaching a screenshot of my problem. Please help.

Hola, Como lo solucionaste?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6534de141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6534de141](https://forums.unrealengine.com/u/anonymous_user_6534de141)\
**Post date:** [June 18, 2020, 3:59pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1868 "2020-06-18T15:59:35Z")

</div>

[CITA = Avi Aggarwal; n1585066] Tengo un problema cuando construyo luces. Me está dando un error “Símbolo de dispositivo no válido”. Adjunto una captura de pantalla de mi problema. Por favor ayuda. / QUOTE]  
hola … Como lo solucionaste?

https://forums.unrealengine.com/filedata/fetch?id=1585068

---

<div class="post-metadata">

**Author:** ![spereku](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spereku/32/1204610_2.png) [@spereku](https://forums.unrealengine.com/u/spereku)\
**Post date:** [June 20, 2020, 2:41pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1869 "2020-06-20T14:41:20Z")

</div>

Hello! Tell me, is there an opportunity to use the second graphics card? Now only 1 works, the second is idle.  
(sorry for my English)  
Thanks

---

<div class="post-metadata">

**Author:** ![usagui](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usagui](https://forums.unrealengine.com/u/usagui)\
**Post date:** [June 21, 2020, 5:37pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1870 "2020-06-21T17:37:48Z")

</div>

> [@Perekupenko](#):
>
> Hello! Tell me, is there an opportunity to use the second graphics card? Now only 1 works, the second is idle.  
> (sorry for my English)  
> Thanks

hi, i have same situation , 2 - 1080ti and one 2070s ,  
how many card support?  
Sorry for my english x2

---

<div class="post-metadata">

**Author:** ![Daciansolgen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daciansolgen](https://forums.unrealengine.com/u/Daciansolgen)\
**Post date:** [June 21, 2020, 6:52pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1871 "2020-06-21T18:52:35Z")

</div>

when i build light with models imported with datasmith they all getting grainy/ noisy also it looks like there is light leak on the edge. i drawn arrows were the problems are. i uses sky light & portals and post process with custom exposure. can some one help me??

---

<div class="post-metadata">

**Author:** ![Adrian92es](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adrian92es](https://forums.unrealengine.com/u/Adrian92es)\
**Post date:** [June 25, 2020, 2:15am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1872 "2020-06-25T02:15:38Z")

</div>

Need Help, i’ve been all day installing and reinstalling path of epic games, still have the same problem

Also when i run the CMD Lightmass\_Installer

File not found - HASH.TXT  
ERRO: CPU Lightmass Kernel version is unknown.

File not found - HASH.TXT  
INFO: EDITOR HASH: 3f5fee308af0fda374e7f6bbc5f0cc79

 ![123.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/7/270f4aaa41fd8385e183da1f8faeeb83f8b9057e.jpeg)

---

<div class="post-metadata">

**Author:** ![mashna1364](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mashna1364](https://forums.unrealengine.com/u/mashna1364)\
**Post date:** [June 26, 2020, 1:53am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1873 "2020-06-26T01:53:59Z")

</div>

> [@Makigirl](#):
>
> Your lightmap UVs is not ideal: too many seamscuts where you see the black pathes! Those are the edges of the given lightmap uv!  
> You should try to create your own lightmap, keeping the full fabric (visible part) as one island!

Thank you. when i changed UV channel 1 to 0 its fixed

---

<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 6, 2020, 12:16pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1876 "2020-07-06T12:16:47Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.25.1**
> 
> Binaries [download](https://www.dropbox.com/sh/usufp98yy7oq82j/AACKyfX8NxHO1HNwrxbNm1Tsa?dl=0)
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.25.1-release)

Thank you!!!

I got just one question…I used to use gpulightmass with that script where you where able to choose quality…my question is, to do it without it, the only quality settings are to set at production quality in the editor and change in the “Baselightmass.ini” the “NumPrimaryGISamples=xxx and NumSecondaryGISamples= xx” is that right??

thank you

---

<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:** [July 6, 2020, 1:03pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1877 "2020-07-06T13:03:32Z")

</div>

> [@Idgi](#):
>
> Thank you!!!
> 
> I got just one question…I used to use gpulightmass with that script where you where able to choose quality…my question is, to do it without it, the only quality settings are to set at production quality in the editor and change in the “Baselightmass.ini” the “NumPrimaryGISamples=xxx and NumSecondaryGISamples= xx” is that right??
> 
> thank you

Yes that’s basically it.  
If you look at what the old “auto install script” did, it changed the values to the files you mentioned based on some quality presets (UniFast, UniMedium, UniUltra, UniExtreme and UniInsane):

LightmassConfiguration.bat opened with Notepad++:

```auto

:UniFast
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumPrimaryGISamples=.*','NumPrimaryGISamples=16' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumSecondaryGISamples=.*','NumSecondaryGISamples=8' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
IF !_LOOP! EQU 1 GOTO :Settings
EXIT /B

:UniMedium
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumPrimaryGISamples=.*','NumPrimaryGISamples=32' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumSecondaryGISamples=.*','NumSecondaryGISamples=16' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
IF !_LOOP! EQU 1 GOTO :Settings
EXIT /B

:UniUltra
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumPrimaryGISamples=.*','NumPrimaryGISamples=64' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumSecondaryGISamples=.*','NumSecondaryGISamples=16' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
IF !_LOOP! EQU 1 GOTO :Settings
EXIT /B

:UniExtreme
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumPrimaryGISamples=.*','NumPrimaryGISamples=128' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumSecondaryGISamples=.*','NumSecondaryGISamples=32' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
IF !_LOOP! EQU 1 GOTO :Settings
EXIT /B

:UniInsane
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumPrimaryGISamples=.*','NumPrimaryGISamples=256' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
powershell -Command "(Get-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini') | ForEach-Object { $_ -replace 'NumSecondaryGISamples=.*','NumSecondaryGISamples=64' } | Set-Content '!pInstallDir!\Engine\Config\BaseLightmass.ini'"
IF !_LOOP! EQU 1 GOTO :Settings
EXIT /B

```

---

<div class="post-metadata">

**Author:** ![MY58](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MY58](https://forums.unrealengine.com/u/MY58)\
**Post date:** [July 7, 2020, 5:37am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1878 "2020-07-07T05:37:45Z")

</div>

- Hello! Can someone help me figure out if I can’t load these apis

13:32:27: [Interface:TryOpenConnection] Local connection established  
13:32:28: [Job] Accepted Job 126C50C6-4DE2FA1F-A30F46B4-3AF292C1  
13:32:30: [Job] Launched Job UnrealLightmass\_2020-05-07\_00-27-09\_1152000-64bit.exe  
13:32:30: [Job] PID is 5660  
13:32:30: [Job] GUID is “126C50C6-4DE2FA1F-A30F46B4-3AF292C1”  
13:32:30: LogLightmass: Display: Lightmass Win64 started on: SHAO. Command-line: 126C50C64DE2FA1FA30F46B43AF292C1  
13:32:30: Failed to determine engine directory: Defaulting to …/…/…/Engine/  
13:32:30: Failed to load ‘aqProf.dll’ (GetLastError=126)  
13:32:30: File ‘aqProf.dll’ does not exist  
13:32:30: Failed to load ‘VtuneApi.dll’ (GetLastError=126)  
13:32:30: File ‘VtuneApi.dll’ does not exist  
13:32:30: Failed to load ‘VtuneApi32e.dll’ (GetLastError=126）

---

<div class="post-metadata">

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

</div>

I’m having a problem where my Mrays/sec go down to crawl on my 2070 Super. I usually get between 200-350Mrays/sec when baking, however relatively frequently, my rays drop to only 5-10Mrays/sec. Sometimes just stopping the bake and starting over fixes the problem, however I have a current project where that doesn’t seem to help, but sometimes restarting unreal all together solves it. There doesn’t really seem to be a consistent fix.

I thought the problem was initially that I was getting very close to the VRAM limit, but my current problematic scene is well under the VRAM limit. so I don’t think that is the cause.

My colleague with a 1080 has never encountered this problem, even with the same scenes.

The screenshot below maybe explains the cause of the slow down, instead of the CUDA usage being steady and the 3D usage being close to 0, which I see when the Mrays/sec are 200-350, the CUDA usage constantly spikes up and down and 3D usage is quite high.

Has anyone experienced this before or has some insight to the problem?

 ![image.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/3/936e5e4bc965acdcc5f65198937b75acb82c0722.png)

---

<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 20, 2020, 12:08pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1880 "2020-07-20T12:08:20Z")

</div>

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.

---

<div class="post-metadata">

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

</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.

Thanks for the recommendations, turning off Realtime in the editor seems to have fixed it, but I’m sure I was also getting this issue when running the bake via cmd. Anyway, time will tell I guess!

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [July 21, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1882 "2020-07-21T13:26:32Z")

</div>

Try to free up as much vram as possible before baking. That could mean closing other applications (like Substance painter or other 3d apps), turning off realtime viewport, setting engine scalability settings to low.

---

<div class="post-metadata">

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

</div>

Hi,  
I have a doubt that would like it to be clarified.  
's GPULightmass works with any of these cards?  
Nvidia tesla k10, k40, k80  
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:** [July 23, 2020, 7:14pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1884 "2020-07-23T19:14:00Z")

</div>

I wanted to try the tool with v4.25, as I noticed a loss of quality when using it on 4.22. The best results (I think) was obtained using v4.20, lot of months ago.

This is 4.20:

 ![420 gpu.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/3/a37df5e19fcf8da54e1a2787a91319c8557c7326.jpeg)

And this is 4.25:

 ![425 gpu.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/8422dc7d55c64d4829c3fb3144f950fa4ee2014a.jpeg)  
(You can download both and, for example, paste it into photoshop, and enable/disable one of the layers, so you can quickly compare). For me, on 4.20, global illumination bounces and ambient occlusion were better.

Regards!

---

<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 25, 2020, 1:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1885 "2020-07-25T13:58:42Z")

</div>

Hi everyone! I have a problem with the 4.25.1 version of the GPU Lightmass plug. So Im doing an interior, not too complex. Optimized it in 3dsmax, exported it with Datasmith, set the materials and all. Switched off ForceNoPrecomputed Lighting, running it hybrid, raytrace reflection, AO, mode, no RTX GI running. After 2 days of trying I finally managed to downgrade the lightmaps and run a lighting bake. I get a ton of UV lightmap overlap errors and also my scene looks like there is no light being cast from the windows. I need some pointers to what environment i should set up, should I use a skydome, does the GPU lightmass support rectangle lights for window portals and basically how can I get a decent bake from this. I have posted images to how it looks AFTER baking the light.  
Ignore the lightbake warning, i turned off some light properties.

If anyone can help or give me a step by step or pointers what to do and what not to use, lightmap uv generation etc. That would be grand!

 ![viewportgrab1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/4/d4b2ae87a28a868ffcfa97b07f0775421e38a740.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 26, 2020, 8:11pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1886 "2020-07-26T20:11:16Z")

</div>

> [@petermayer1129](#):
>
> Hi everyone! …

What about simply using a static Sky light and a static or stationary Directional light?

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

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