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

<div class="post-metadata">

**Author:** ![C3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@C3D](https://forums.unrealengine.com/u/C3D)\
**Post date:** [March 8, 2020, 2:19am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1757 "2020-03-08T02:19:52Z")

</div>

Thank you for this release! Works for me.

Could somebody clarify what is going on at the moment with GPU Lightmass?

is not working on this particular GPU Lightmass Lightmap renderer anymore himself?

But he is working on an official DXR GPU Lightmass Renderer that will be part of an official UE4 release in the future (4.26 maybe)?

Is this correct?

---

<div class="post-metadata">

**Author:** ![fco3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fco3d](https://forums.unrealengine.com/u/fco3d)\
**Post date:** [March 9, 2020, 1:59am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1758 "2020-03-09T01:59:03Z")

</div>

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

Thank you very much for this.  
I can’t access the Sources code, I get an 404 error every time I do have a basic account in , there is something I am missing?  
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:** [March 9, 2020, 6:29am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1759 "2020-03-09T06:29:23Z")

</div>

> [@fco3d](#):
>
> Thank you very much for this.  
> I can’t access the Sources code, I get an 404 error every time I do have a basic account in , there is something I am missing?  
> Thank you

You have to link your epic account to your account.  
See here:

> **[Downloading Unreal Engine Source Code](https://docs.unrealengine.com/5.3/en-US/downloading-unreal-engine-source-code/)**
>
> Steps for connecting to the source code repository and downloading the latest build of Unreal Engine.

---

<div class="post-metadata">

**Author:** ![fco3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fco3d](https://forums.unrealengine.com/u/fco3d)\
**Post date:** [March 9, 2020, 2:21pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1760 "2020-03-09T14:21:06Z")

</div>

Thank you @**[NiukNiuk](https://forums.unrealengine.com/member/666596-niukniuk)**  
**Thanks much.**

---

<div class="post-metadata">

**Author:** ![DsyD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DsyD](https://forums.unrealengine.com/u/DsyD)\
**Post date:** [March 9, 2020, 2:24pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1761 "2020-03-09T14:24:44Z")

</div>

> [@C3D](#):
>
> Thank you for this release! Works for me.
> 
> Could somebody clarify what is going on at the moment with GPU Lightmass?
> 
> is not working on this particular GPU Lightmass Lightmap renderer anymore himself?
> 
> But he is working on an official DXR GPU Lightmass Renderer that will be part of an official UE4 release in the future (4.26 maybe)?
> 
> Is this correct?

That’s pretty much correct, as far as I know.

It seems that dev-rendering is the only branch that currently has the upcoming DXR GPULightmass on it. You can follow its commits here (obviously includes a lot of non-GPULM stuff) https://.com/EpicGames/UnrealEngine/commits/dev-rendering

---

<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:** [March 10, 2020, 3:52pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1762 "2020-03-10T15:52:19Z")

</div>

> [@svv3d](#):
>
> If you want to test the GPULightmass prototype:
> 
> - Download \*\*dev-rendering \*\*branch from and build it.
> 
> - Enable ray tracing (including switching default RHI to DX12 and check ‘ray tracing’. And having a DXR capable graphics card with Win10 version \>= 1809).
> 
> - Enable **virtual texture** and **virtual texutured lightmaps** in project settings (optional, yet without this realtime preview in editor will be unavailable).
> 
> - Enable **GPULightmass plugin** and restart the editor currently no UI has been setup, so just a bunch of console commands **r.GPULightmass.xxxx** controls parameters and finally, **ToggleLightmapPreview** to start **GPULightmass** in editor.
> 
> - GPULightmass throttles itself when the level editor viewport is realtime. To make it run at full speed, uncheck ‘realtime’ in the viewport options.
> 
> P.S.:I tested this on my GTX 1070. Everything is working fine.

**HI thank you [svv3d](https://forums.unrealengine.com/member/13430-svv3d)!  
it worked , but how can i reduce noise for scene ?**

---

<div class="post-metadata">

**Author:** ![Jimmy\_HUA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jimmy\_HUA](https://forums.unrealengine.com/u/Jimmy_HUA)\
**Post date:** [March 11, 2020, 7:56am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1763 "2020-03-11T07:56:22Z")

</div>

I got the GPULightMass for verision 4.24.1. However, I got a result with a lot of noise even I set the lighting quality to product level. Also, I increased some parameters in BaseLightmass.ini, and it was the same. So, need I change any other parameters? or It is the GPULightmass algorithm defect?  
Thanks

---

<div class="post-metadata">

**Author:** ![ArsitekVisual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArsitekVisual](https://forums.unrealengine.com/u/ArsitekVisual)\
**Post date:** [March 12, 2020, 12:55am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1764 "2020-03-12T00:55:26Z")

</div>

Can someone advice me how to solve this ?

I am using unreal engine version 4.24.2

GTX zotact 1070.

I have installed gpu lightmass as instructed for version 4.24.2

My GPU only works at 4%-5%

How to make it work 100% using GPU lightmass ?

 ![Screenshot_2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/1/41b666b5f10619f013201743328c655fdf20b94f.jpeg)

---

<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 12, 2020, 6:31am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1765 "2020-03-12T06:31:45Z")

</div>

> [@ArsitekVisual](#):
>
> Can someone advice me how to solve this ?
> 
> I am using unreal engine version 4.24.2
> 
> GTX zotact 1070.
> 
> I have installed gpu lightmass as instructed for version 4.24.2
> 
> My GPU only works at 4%-5%
> 
> How to make it work 100% using GPU lightmass ?
> 
> ![Screenshot_2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/1/41b666b5f10619f013201743328c655fdf20b94f.jpeg)

[https://forums.unrealengine.com/deve…htmass/page101](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page101)

EDIT: woops sorry, didn’t see your last screenshot ☹

---

<div class="post-metadata">

**Author:** ![ArsitekVisual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArsitekVisual](https://forums.unrealengine.com/u/ArsitekVisual)\
**Post date:** [March 13, 2020, 9:38pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1766 "2020-03-13T21:38:41Z")

</div>

> [@NiukNiuk](#):
>
> [https://forums.unrealengine.com/deve…htmass/page101](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page101)
> 
> EDIT: woops sorry, didn’t see your last screenshot ☹

Hi, Thank You for the solution. I have change it to cuda as seen on the attached screenshot, but my issue is that on the left side of task manager under performance tab, my GPU is still working at 5% power, not showing around 90% of its power.

I have played this GPU lightmass before in unreal engine 4.19. and everything was fine. but now I have no idea after updating my windows 10 and unreal engine to 4.24

Thanks.

---

<div class="post-metadata">

**Author:** ![Farshid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/farshid/32/874107_2.png) [@Farshid](https://forums.unrealengine.com/u/Farshid)\
**Post date:** [March 14, 2020, 12:18pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1767 "2020-03-14T12:18:22Z")

</div>

watch?v=M34teBiaGBQ

---

<div class="post-metadata">

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

</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:**
> 
> ![LightmassConfigurationv0.2.1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/2/624cf1b3ec50c7a8ed035321b8b3846eb1f71832.png)  
> [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.

This is just awesome. thank so much

---

<div class="post-metadata">

**Author:** ![Grigorescu\_Marian\_Stelian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grigorescu\_Marian\_Stelian](https://forums.unrealengine.com/u/Grigorescu_Marian_Stelian)\
**Post date:** [March 19, 2020, 8:34am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1769 "2020-03-19T08:34:01Z")

</div>

YOOOO ! HOOOOLD ON!! WHAT if i don’t want to use raytracing and I just want simple gpu lightmass. I mean why do you press us to buy RTX graphics? I don’t need that now. AND RTX IS JUST A HUUUUGE OBTUSITY, WHY CAN’T YOU SEE IT. UGLY SHADOWS AND PLAIN LOOKS. WORLD STILL NEEDS QUALITY!

---

<div class="post-metadata">

**Author:** ![AmrSrour](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amrsrour/32/465284_2.png) [@AmrSrour](https://forums.unrealengine.com/u/AmrSrour)\
**Post date:** [March 19, 2020, 9:04am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1770 "2020-03-19T09:04:50Z")

</div>

any links for Gpu Lightmass For Unreal 4.25

---

<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:** [March 19, 2020, 7:32pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1771 "2020-03-19T19:32:56Z")

</div>

**GPU LIGHTMASS CRITICAL ERROR NOTICE:**  
I have discovered that you can have critical error when starting to bake when you have nothing static to bake (known problem) or **when you have problems with your object.**  
Recently I had problems with mesh of one of the static objects and got GPU lightmass critical error when starting to bake.

The problem was multiple overlaying of the same faces on each others ( not my model, some free one ).  
There was about 7 stacked faces groups in the mesh and even they had own islands in UV map for LM then GPULM had problems with it ( when the positions of their vertex were shared ).

**So keep in mind that when you will get this critical error you will have to find problematic object ( by elimination - moving to hidden level by groups or object by object ).**

---

<div class="post-metadata">

**Author:** ![DigiTecK3D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DigiTecK3D](https://forums.unrealengine.com/u/DigiTecK3D)\
**Post date:** [March 22, 2020, 4:22am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1772 "2020-03-22T04:22:57Z")

</div>

I’ve been working on getting Rect light support into GPULightmass, I’ve got it working and picking up the lights. At the moment I’m simply treating the Rect light as a point light in the GPULightmass radiance gather code until I can figure out what the right equation looks like.

 ![image_186517.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/8/b8b2105ad6260d24532f7878bb87356a8205ec27.jpeg)

---

<div class="post-metadata">

**Author:** ![hectorz\_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hectorz\_2](https://forums.unrealengine.com/u/hectorz_2)\
**Post date:** [March 23, 2020, 6:44am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1773 "2020-03-23T06:44:57Z")

</div>

hello i have this problem when i build the light : " GPUlightmass Kernel: lines 103: cudaCheckError: out of memory "

i have a 1080ti 16 ddr4 of ram and a ryzen 7, i use the megascan library to texture the scene also some static meshe like the grass and decoration, the geometry was imported from revit through datasmith with default settings.  
did some body knows whats happening?

---

<div class="post-metadata">

**Author:** ![A-J-K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A-J-K](https://forums.unrealengine.com/u/A-J-K)\
**Post date:** [March 23, 2020, 7:06pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1775 "2020-03-23T19:06:19Z")

</div>

> [@Grigorescu\_Marian\_Stelian](#):
>
> Your problem is that you are a spoiled noob user with a 1080ti that doesn’t know that you cant bake light with grass meshes because of the huge amount of tris… 🙂

You serious dude ? Instead of telling him what exactly the problem is you’re calling him a spoiled noob with a 1080ti? Like what is this toxic behavior…

---

<div class="post-metadata">

**Author:** ![fco3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fco3d](https://forums.unrealengine.com/u/fco3d)\
**Post date:** [March 23, 2020, 7:26pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1776 "2020-03-23T19:26:22Z")

</div>

> [@hectorz\_2](#):
>
> hello i have this problem when i build the light : " GPUlightmass Kernel: lines 103: cudaCheckError: out of memory "
> 
> i have a 1080ti 16 ddr4 of ram and a ryzen 7, i use the megascan library to texture the scene also some static meshe like the grass and decoration, the geometry was imported from revit through datasmith with default settings.  
> did some body knows whats happening?

When using anything GPU related you need to keep an eye in memory usage.  
I also work with geometry coming from REVIT or Grasshopper,/Rhino, they usually will be more than Unreal or any other realtime tool can handle.

You need to first clean up your geometry, create instances and review textures, usually from REVIT you’ll end up with thousands of textures in all sizes that are actually no need it or can be optimized.  
Also, landscaping, trees plants, and mostly grass have to be optimized, in some cases, realtime lighting can be a better choice rather than baking light, but of course, quality is sacrificed.  
You need to find a balance of quality and performance in everything realtime related. For example, you could only bake light for your building and leave everything else movable or realtime lighting.

Now if you only need still images, then you may want to try the Raytracing features.

---

<div class="post-metadata">

**Author:** ![edgarbelem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edgarbelem](https://forums.unrealengine.com/u/edgarbelem)\
**Post date:** [March 31, 2020, 4:21am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1778 "2020-03-31T04:21:42Z")

</div>

how do i solve this?

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

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