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

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [July 13, 2023, 5:52pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2425 "2023-07-13T17:52:53Z")

</div>

hi @3darchstuffs.com

I have had requests for LGPU 5.4 preview with support for Substrate in LightingMesh with the new material ThinSurface.  
There are NOT any binary files as this is 5.4 Preview .  
This is a long distance from 5.3 and a AAA game developer wanted to test with RTX 4000 series graphics card with the add Nvidia CUDA core and says it works well for the future which they this will be using in about 8 months time  
The download for 5.4 Preview and instructions are here

[UnrealEngine-5/README.md at Luoshuangs-GPULightmass-5.4-preview · jimshalo10/UnrealEngine-5 · GitHub](https://github.com/jimshalo10/UnrealEngine-5/blob/Luoshuangs-GPULightmass-5.4-preview/README.md)

There wont be a 5.2 version due to problems over lighting shadows as previously mentioned

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [July 15, 2023, 7:50am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2426 "2023-07-15T07:50:25Z")

</div>

Hi, @Miguel1900@maxbrown @3darchstuffs.com @Olegsbr etc all in this thread

_**Announcement of Luoshuang’s GPULightmass (LGPU) 5.4 as downloadable Preview BINARY.**_

Update the original was deleted by someone as “Anyone Can Edit” was left on the share setting and some un charitable person deleted so the link is now updated to the **SAME** archive, just the link is set to Anyone can view

Looking for [Luoshuang’s GPU 5.3.2 binary patches Announcement](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2489)

UPDATE: Recent feedback indicated that this _will only work on Windows 10_

Epic Games Launcher must have been downloaded and installed

**NOT Windows 11 due path conflict errors in template files**

Further Windows 11 contains Direct X Ultimate 12 Drivers which cause crashes in **ALL versions of UE4 and up to UE5.3**.

These problems ONLY fixed in Windows 11 22H2 or higher at least and Unreal 5.4.1 production binary dated (29th April 2024).

_ **NOTE NEW LICENCING requirement for Production BINARY and Release software updated and described on 1st May 2024, for non-games users like the ArchViz community for 5.4 onward** _

This version is not affected by licensing as its based on 5.4  
If you can afford a RTX 30XX or 40XX you can afford a Windows 10 licence, for Multi version boot. even works on Windows 10 Home.

This has, after some 260 hours or more of work, finally been achieved.

The whole package is just over 27 Gigabytes in WinRAR format.

Uses Microsoft One Drive for public uses, not GitHub which is limited to binary to 2GB.

Installation instructions  
You must first have the  
[Download the Epic Games Launcher From the Epic Games Store](https://store.epicgames.com/en-US/download)  
installed, without this you will get obscure confusing errors when to run the LGPU 5.4 BINARY.

Download from  
[OneDrive LGPU 5.4 binary LocalBuilds.rar](https://1drv.ms/u/s!AlJOF7sKlcuriuNvYsciXoXxefnJCQ?e=TCBlKK)

If you have problems downloading, then send me a private message and I will send a personal link.

This will download from a Microsoft site and your Windows 10 always works.

Windows 11 system will challenge you to continue downloading and WONT WORK.

When the download which is called “LocalBuilds.rar” has been completed

- \*_Make a directory path C:\Users\Owner\source\repos\*_

The “Owner” is replaced with your username.

Go into the download Directory Right Click on “LocalBuilds.rar”. Select “Open with WinRAR”

When WinRAR opens there is a check on file integrity and in the Status-bar is the size of the archive.

If there is an error, you will need to reload the whole archive again.

Click on “ **Extract to** ” and in the picture click the + to open each directory to the

**“Directory path C:\Users\Owner\source\repos\”** Then Click “OK”

Open Windows File Explorer and navigate to

**C:\Users\Owner\Source\Repos\LocalBuilds\Engine\Windows\Engine\Binaries\Win64**

The “Owner” is replaced with your username.

Find the file “ **UnrealEditor.exe** ” and right-click and Select “Send to” then Select “Desktop (create Shortcut)”

On the Desktop right-click and Select “Rename” Replace with “LGPU 5.4 BIN UnrealEditor”

Double click on the icon just made “LGPU 5.4 BIN UnrealEditor”.

The LGPU 5.4 Binary will start the Shaders have already been compiled.

Download the test project

[BUG-Lumen\_shadows\_dissapear 5.4.rar](https://1drv.ms/u/s!AlJOF7sKlcurir4Y0hiB3ri-Au_5DQ?e=WW548J)

Right-click and extract the example test

In LGPU 5.4 UE Editor click Recent then click Browse the extracted location. This should open without the need for shader compiling.

Follow the instructions for setting up Swarm for Local Processing in the post

[Swarm Setup for local LGPU Processing](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2277)

In the UE file menu Build → Build Lighting

If you are wondering where the Progress bar has gone it’s in a separate download

[ProgressBar.rar](https://1drv.ms/u/s!AlJOF7sKlcurir4VvP2Mp8fdMQAs1Q?e=9ZKyzI)

In Windows Explorer browse to extract to **C:\Users\Owner\Source\Repos\LocalBuilds\Engine\Windows**

Use WinRAR to extract LGPUprogress.rar

The file should be found in

**C:\Users\Owner\Source\Repos\LocalBuilds\Engine\Windows\Engine\Binaries\DotNET\ProgressReporter.exe**

When setting up a new project remember to follow the documentation in

[GPU Lightmass Global Illumination](https://docs.unrealengine.com/5.3/en-US/gpu-lightmass-global-illumination-in-unreal-engine/)

The reason why this was made

Many months ago, some people asked for a BINARY version of Luoshuang’s GPULightmass referred to as the LGPU code.

The requirements were:-

Compiled with the latest version of the UE source code.

LGPU source code was added as the standard Lightmass builder.

LGPU could run in the background.

LGPU Progress reporter is optional because some build takes many hours and is distracting.

Therefore, the UE Editor Screen looks like a CPU Lightmass build.

The installation would be easy, and the download would be relatively small compared to the version built from the source code.

The WinRAR new compression is from 76GB to 27GB, with an amazing binary compressor.

Download times vary but mine averages about 70 minutes.

Many years ago, I bought a personal licence for WinRAR for use on 5 Windows 10 PC with lifetime updates from

[https://www.win-rar.com/start.html?&L=0](https://www.win-rar.com/start.html?&L=0)

You can use the free version with 22-language support.

WinZip delivers a 56GB package and took far slower longer to pack and compress.

---

<div class="post-metadata">

**Author:** ![H\_MITRO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H\_MITRO](https://forums.unrealengine.com/u/H_MITRO)\
**Post date:** [July 21, 2023, 9:17pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2427 "2023-07-21T21:17:00Z")

</div>

Hi Abdulloh can you send the link of luoshuang gpu lightmass download please

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [July 21, 2023, 9:46pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2428 "2023-07-21T21:46:22Z")

</div>

Hi @H_MITRO ,

You need to use 5.3 which is most stable

> [@Luoshuang's GPULightmass](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2429):
>
> Hi @3darchstuffs.com , [LGPU 5.4 BINARY is discussed in post] [Luoshuang’s GPU 5.4 BINARY announcement](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2428)

VS 2022 community edition is no longer available for free. Please use VS 2026 Community Edition

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [July 21, 2023, 9:56pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2429 "2023-07-21T21:56:55Z")

</div>

Hi @3darchstuffs.com ,

[LGPU 5.4 BINARY is discussed in post]  
[Luoshuang’s GPU 5.4 BINARY announcement](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2428)

---

<div class="post-metadata">

**Author:** ![3darchstuffs.com](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3darchstuffs.com](https://forums.unrealengine.com/u/3darchstuffs.com)\
**Post date:** [July 26, 2023, 8:46am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2430 "2023-07-26T08:46:25Z")

</div>

> [@Jimbohalo10](#):
>
> LGPU 5.4 BINARY is discussed in post]

Thank You Dear. Jimbohalo

---

<div class="post-metadata">

**Author:** ![Olegsbr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Olegsbr](https://forums.unrealengine.com/u/Olegsbr)\
**Post date:** [August 16, 2023, 4:20pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2431 "2023-08-16T16:20:35Z")

</div>

Hi Jimbohalo10!  
I hope you are well!  
Does this GPULightmass version works with a new UE 5.3 preview ?  
I tried to add the Engine (downloaded from Github) folder to the main UE 5.3 folder but with no luck it doesn’t goes forward…

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [August 16, 2023, 5:38pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2432 "2023-08-16T17:38:20Z")

</div>

hi @Olegsbr  
The better version is the LGPU 5.4 BINARY I have built described in  
[Luoshuang’s GPULightmass - Development / Rendering - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2428)

---

<div class="post-metadata">

**Author:** ![Olegsbr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Olegsbr](https://forums.unrealengine.com/u/Olegsbr)\
**Post date:** [August 16, 2023, 7:38pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2433 "2023-08-16T19:38:50Z")

</div>

Thank you Jimbohalo10!

---

<div class="post-metadata">

**Author:** ![Olegsbr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Olegsbr](https://forums.unrealengine.com/u/Olegsbr)\
**Post date:** [August 23, 2023, 11:00am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2434 "2023-08-23T11:00:08Z")

</div>

Hi Jimbohalo10, I went through all your instructions and it is working, thank you!  
Now I opened the project in 5.4 version, but if I will open it in 5.3 preview version will it works? Also maybe you know why panoramic capture in Render Quene doesn’t work?  
Thank you

---

<div class="post-metadata">

**Author:** ![sudo.juan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sudo.juan](https://forums.unrealengine.com/u/sudo.juan)\
**Post date:** [August 24, 2023, 12:49pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2435 "2023-08-24T12:49:08Z")

</div>

Does this works in Linux?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [August 24, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2436 "2023-08-24T17:01:36Z")

</div>

hi @sudo.juan. Sorry no it does not, its Windows 10/11 only. The underlying CUDA for Nvidia does not exist for Linux/\*nix.Many people use the Linux source to build Unreal 5

---

<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:** [August 27, 2023, 1:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2437 "2023-08-27T13:58:59Z")

</div>

is there any Direct Link For Download GPULightmass For Unreal 5.3 ?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [August 27, 2023, 6:08pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2438 "2023-08-27T18:08:36Z")

</div>

hi @Olegsbr ,  
I have tried this video to make sure I did everything right in 5.4 binary and it worked 750 frames created and working as per video  
The black screen only lasts until the shaders etc and pictures have been created. Watch the numbers on left for time mines was 45 minutes for 750.

[Unreal Engine 5 360 Panoramic EASY! | No coding No Plugins - YouTube](https://www.youtube.com/watch?v=SpkP1XCF_mE&t=1s)

Dont forget to add the plugins!!.

---

<div class="post-metadata">

**Author:** ![Unreal\_ArchViz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unreal\_ArchViz](https://forums.unrealengine.com/u/Unreal_ArchViz)\
**Post date:** [August 31, 2023, 10:06am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2439 "2023-08-31T10:06:00Z")

</div>

Hello @KaraevElmin1 , did you got a solution for your CPU usage only problem?  
I have the same problem too and my RTX 4090 like yours is not used at all and my CPU is used the most.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [August 31, 2023, 6:07pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2440 "2023-08-31T18:07:30Z")

</div>

hi @Unreal_ArchViz@KaraevElmin1@ATNeo  
ln the LGPU lightmass rect lights (Rectangular Area Light) unfinished:  
only that kind of light is not baking any Global Illumination indirect lighting, only direct one.

This means you will use CPU for Rect Lights.

from documentation

> The following lights settings are not yet supported with GPULM:  
> Indirect Lighting Intensity  
> Source Texture (with exception of Rect Lights)

> Some of these settings can be used partially with Stationary lights. The baked GI will not honor the feature, but the dynamic direct lighting from the light source will.

> There are many settings to tweak the results of lightmass for the CPU-based workflow. Most of these settings are not used with GPULM and do not have equivalent features or settings.

> **[GPU Lightmass Global Illumination](https://docs.unrealengine.com/5.1/en-US/gpu-lightmass-global-illumination-in-unreal-engine/)**
>
> Learn about the GPU-based system for generating precomputed lighting data.

> **[Rectangular Area Lights](https://docs.unrealengine.com/5.2/en-US/rectangular-area-lights-in-unreal-engine/)**
>
> The basics of undestanding rectangular area lights.

There is possible workaround. You have to make a surface with the same dimensions of the Rect Light, with an Emissive material attached

[Using the Emissive Material Input | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/RenderingAndGraphics/Materials/HowTo/EmissiveGlow/#:~:text=To%20accomplish%20this,and%20clicking%20on%20it)

All lights are described in  
[Light Types and Their Mobility in Unreal Engine | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/5.2/en-US/light-types-and-their-mobility-in-unreal-engine/#:~:text=Point%20Lights%20act%20as%20a,rectangular%20surface%20in%20a%20direction).

---

<div class="post-metadata">

**Author:** ![Unreal\_ArchViz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unreal\_ArchViz](https://forums.unrealengine.com/u/Unreal_ArchViz)\
**Post date:** [September 7, 2023, 6:09pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2441 "2023-09-07T18:09:51Z")

</div>

Thanks @Jimbohalo10, this resolved my issue.

When would you upload LuoGPULightmass for Unreal 5.3 as it is released now?

---

<div class="post-metadata">

**Author:** ![Scratchtsure](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Scratchtsure](https://forums.unrealengine.com/u/Scratchtsure)\
**Post date:** [September 8, 2023, 6:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2442 "2023-09-08T18:01:20Z")

</div>

What about 5.3?  
Author skiped 5.2, because he supposedly already did for 5.3… so where is 5.3?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [September 9, 2023, 6:11am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2443 "2023-09-09T06:11:27Z")

</div>

hi @Unreal_ArchViz @Scratchtsure I have 5.3 preview ready for a while  
[jimshalo10/UnrealEngine-5 at Luoshuangs-GPULightmass-5.3 (github.com)](https://github.com/jimshalo10/UnrealEngine-5/tree/Luoshuangs-GPULightmass-5.3)  
The final version for 5.3.2 binary update files was completed by end of October 2023 as I said in May 2023.  
See Posting  
[Release of Luoshuang’s GPULightmass 5.3.2 Binary Patch](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2489)

---

<div class="post-metadata">

**Author:** ![Casper\_AP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Casper\_AP](https://forums.unrealengine.com/u/Casper_AP)\
**Post date:** [September 14, 2023, 11:27am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2444 "2023-09-14T11:27:39Z")

</div>

I can’t seem to be able to get this to work. After downloading I run the setup.bat through Git CMD and it gives back the following error:

```auto
$ ./setup.bat
Checking dependencies...
Updating dependencies: 0% (0/97340)...
Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-18966385/00b99f0240e4a4e89f9cb877cc7b7ff64e496f52': InvalidDataException: The archive entry was compressed using an unsupported compression method.
   at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
   at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
   at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
   at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
   at System.IO.Compression.DeflateStream.ReadCore(Span`1 buffer)
   at System.IO.Compression.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Compression.GZipStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at GitDependencies.Program.ExtractFilesFromRawStream(Stream RawStream, IncomingFile[] Files, SHA1 RawStreamHasher)Wrapped by CorruptPackFileException: Can't read from pack stream
   at GitDependencies.Program.ExtractFilesFromRawStream(Stream RawStream, IncomingFile[] Files, SHA1 RawStreamHasher)
   at GitDependencies.Program.ExtractFilesThroughCache(Stream InputStream, String FileName, Int64 CompressedSize, String ExpectedHash, IncomingFile[] Files)
   at GitDependencies.Program.DownloadAndExtractFiles(String Url, Uri Proxy, String CacheFileName, Int64 CompressedSize, String ExpectedHash, IncomingFile[] Files, Double HttpTimeoutMultiplier, NotifyReadDelegate NotifyRead)Wrapped by AggregateException: One or more errors occurred. (Can't read from pack stream)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at GitDependencies.Program.DownloadWorker(ConcurrentQueue`1 DownloadQueue, AsyncDownloadState State, Double HttpTimeoutMultiplier, Int32 MaxRetries, CancellationToken CancellationToken)
Press any key to continue . . .

```

How do I fix this?

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

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