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

<div class="post-metadata">

**Author:** ![diegoramirez](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/diegoramirez/32/1168899_2.png) [@diegoramirez](https://forums.unrealengine.com/u/diegoramirez)\
**Post date:** [December 12, 2020, 9:59pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2030 "2020-12-12T21:59:59Z")

</div>

> [@AVLX0510](#):
>
> Does anybody know a work around this issue I’m having with indirect lighting? It seems that I’m having indirect lighting artifacts in my scene. When I’m far away from the object a “banding” artifact is very apparent. And when I get closer to the object, the banding disappears. I’m currently running GPU lightmass on 4.25 with raytraced reflections only, and an HDRI backdrop blueprint witht the skylight mobility set to stationary.
> 
> ![Image 2.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/2/f2ea38a9b877ffbb52fefe51edfedff08bbea5de.jpeg)

Disable “Compress Lightmaps” in World Settings

---

<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:** [December 13, 2020, 4:38am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2031 "2020-12-13T04:38:13Z")

</div>

**GPU Lightmass 4.26.0**

**[Download](https://www.dropbox.com/sh/7dgzdedpkb6a5zc/AACUhZP6wOd37I7R7CQDYzXha?dl=0)** binaries

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

---

<div class="post-metadata">

**Author:** ![enoes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enoes](https://forums.unrealengine.com/u/enoes)\
**Post date:** [December 13, 2020, 7:00am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2032 "2020-12-13T07:00:07Z")

</div>

> [@thundermax1979](#):
>
> Any news 4.26 version his gpu lightmass is much better than the ue4 much cleaner and faster

New lm is use the path tracer and path tracer much much quality the ray tracing and of course slow. İ dont understand why loushang is the best for you?

---

<div class="post-metadata">

**Author:** ![Vrender](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vrender](https://forums.unrealengine.com/u/Vrender)\
**Post date:** [December 14, 2020, 10:59am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2033 "2020-12-14T10:59:36Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.26.0**
> 
> **[Download](https://www.dropbox.com/sh/7dgzdedpkb6a5zc/AACUhZP6wOd37I7R7CQDYzXha?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.26.0-release)

You are my hero! Thanks!!!

---

<div class="post-metadata">

**Author:** ![d\_4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@d\_4](https://forums.unrealengine.com/u/d_4)\
**Post date:** [December 14, 2020, 1:09pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2034 "2020-12-14T13:09:35Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.26.0**
> 
> **[Download](https://www.dropbox.com/sh/7dgzdedpkb6a5zc/AACUhZP6wOd37I7R7CQDYzXha?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.26.0-release)

OH GOD YES! Thank you so much!

---

<div class="post-metadata">

**Author:** ![Lord\_Pol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lord_pol/32/736974_2.png) [@Lord\_Pol](https://forums.unrealengine.com/u/Lord_Pol)\
**Post date:** [December 14, 2020, 9:22pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2035 "2020-12-14T21:22:08Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.26.0**
> 
> **[Download](https://www.dropbox.com/sh/7dgzdedpkb6a5zc/AACUhZP6wOd37I7R7CQDYzXha?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.26.0-release)

Naaaaaaah…  
You rrrrrock !!! Master of The Universe! .

---

<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:** [December 15, 2020, 6:25am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2036 "2020-12-15T06:25:10Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.26.0**
> 
> **[Download](https://www.dropbox.com/sh/7dgzdedpkb6a5zc/AACUhZP6wOd37I7R7CQDYzXha?dl=0)** binaries
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.26.0-release)

Thank you!

---

<div class="post-metadata">

**Author:** ![ffm32206600](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ffm32206600](https://forums.unrealengine.com/u/ffm32206600)\
**Post date:** [December 15, 2020, 4:30pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2037 "2020-12-15T16:30:56Z")

</div>

> [@tc22](#):
>
> Thank you!

does it fork for u on 4.26 ?  
i get this error:

![Screenshot_4.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/e/ded4bf4ff0a515879f8a2752a6c0bce9a6921dcb.png)

---

<div class="post-metadata">

**Author:** ![xmasjazzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xmasjazzy](https://forums.unrealengine.com/u/xmasjazzy)\
**Post date:** [December 22, 2020, 10:19am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2039 "2020-12-22T10:19:30Z")

</div>

Does anyone know how to fix this weird shadow bug?. I’m sure it’s not the lightmap’s bug. Thanks

---

<div class="post-metadata">

**Author:** ![HAppleknocker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HAppleknocker](https://forums.unrealengine.com/u/HAppleknocker)\
**Post date:** [December 22, 2020, 2:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2040 "2020-12-22T14:58:00Z")

</div>

This is my first time installing this. When i replace the Engine folder the launcher wants to repair the engine. Is this normal?

---

<div class="post-metadata">

**Author:** ![HAppleknocker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HAppleknocker](https://forums.unrealengine.com/u/HAppleknocker)\
**Post date:** [December 22, 2020, 3:49pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2041 "2020-12-22T15:49:00Z")

</div>

This is my first time installing this. When i replace the Engine folder the launcher wants to repair the engine. Is this normal?

---

<div class="post-metadata">

**Author:** ![iDeal3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iDeal3d](https://forums.unrealengine.com/u/iDeal3d)\
**Post date:** [December 23, 2020, 8:39am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2042 "2020-12-23T08:39:07Z")

</div>

> [@xmasjazzy](#):
>
> Does anyone know how to fix this weird shadow bug?. I’m sure it’s not the lightmap’s bug. Thanks

What GPU are you using? I have the same artifacts on 2080ti. But on my home PC with 1080ti there are no problems

---

<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:** [December 23, 2020, 1:31pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2043 "2020-12-23T13:31:12Z")

</div>

> [@xmasjazzy](#):
>
> Does anyone know how to fix this weird shadow bug?. I’m sure it’s not the lightmap’s bug. Thanks

Are you using Stationary lights instead of Static?

---

<div class="post-metadata">

**Author:** ![xmasjazzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xmasjazzy](https://forums.unrealengine.com/u/xmasjazzy)\
**Post date:** [December 24, 2020, 8:21am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2044 "2020-12-24T08:21:34Z")

</div>

> [@iDeal3d](#):
>
> What GPU are you using? I have the same artifacts on 2080ti. But on my home PC with 1080ti there are no problems

My GPU is RTX 3080. Before that i used 2080 also had the same situation.

---

<div class="post-metadata">

**Author:** ![xmasjazzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xmasjazzy](https://forums.unrealengine.com/u/xmasjazzy)\
**Post date:** [December 24, 2020, 8:22am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2045 "2020-12-24T08:22:47Z")

</div>

> [@Miguel1900](#):
>
> Are you using Stationary lights instead of Static?

I have tried both but still get the above error. Black streaks move from one position to another

---

<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:** [December 24, 2020, 9:35am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2046 "2020-12-24T09:35:39Z")

</div>

> [@xmasjazzy](#):
>
> I have tried both but still get the above error. Black streaks move from one position to another

I used to get this error with earlier versions. Just delete the light and create a new one, then bake again.

---

<div class="post-metadata">

**Author:** ![Peleias](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peleias/32/494475_2.png) [@Peleias](https://forums.unrealengine.com/u/Peleias)\
**Post date:** [December 31, 2020, 4:39pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2047 "2020-12-31T16:39:55Z")

</div>

How are you guys? A doubt.  
I am having 1 month having problems with cudaCheckError: out of memory.  
Also in Unreal 4.26 new gpu render … without memory.

What is my limit that I can render? How can I find out what is in excess? I’ve tried everything. (TDA, unreal in cmd to render, 1k textures).  
If I share (swarm) the process with another notebook (same configuration) can I circumvent this lack of memory?

[FONT=Courier New]Intel Core i7-9750h, 32GB RAM, NVIDIA RTX 2060 NVIDIA® GeForce® RTX 2060 [FONT=Courier New]Skylight import processing 1.724s with CubemapSize 2048  
FStaticLightingSystem started using GKDOPMaxTrisPerLeaf: 4  
Number of texture mappings: 6454  
Number of static mesh instance mappings: 6454  
Scene surface area calculated at 19211.600 million units (6.714% of the estimated 286131.531 million units)  
Importance volume surface area calculated at 678.918 million units  
Collision Mesh Overview:  
Num Triangles : 13134666  
MeshInfos : 0.5Mb  
UVs : 82.8Mb  
LightmapUVs : 82.8Mb  
Embree Used Memory : 964.0Mb  
EmitDirectPhotons complete, 0.918 million photons emitted in 0.2 seconds  
Built photon segment map in 0.0 seconds  
EmitIndirectPhotons complete, 3.259 million photons emitted in 1.0 seconds  
Marking Irradiance Photons complete, 0.117 million photons marked in 0.1 seconds  
Caching Irradiance Photons complete, 53.814 million cache samples in 136.8 seconds  
Calculate Irradiance Photons complete, 0.094 million irradiance calculations in 10.4 seconds  
Radiosity Setup 2711.2s

---

<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 5, 2021, 8:02am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2048 "2021-01-05T08:02:30Z")

</div>

> [@](#):
>
> **GPU Lightmass 4.26.0**

The new GPU lightmass build for 4.26 works nicely. For testing purposes, I also enable Epics GPU lightmass & rhi12 & raytracing in the same project. I get quite some crashes due to this combo when trying to play the level. Does this error make sense to you? GpuLightmass related OR Epics new GPU lightmass related OR maybe just the combo?‘’  
Edit; disabling Epics new plugin, rhi back to default and no raytrace = no crashes for the last hour.  
Edit2: when reverting to a clean Epic Launcher build, no crashes. Must be the combo somehow.

```auto

Assertion failed: (void*)((&ElementData[InstanceIndex]) + 1) <= (void*)(InstanceTransformDataPtr + CurrentSize) [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Public\StaticMeshResources.h] [Line: 1618]

UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Renderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

```

---

<div class="post-metadata">

**Author:** ![Minos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Minos](https://forums.unrealengine.com/u/Minos)\
**Post date:** [January 8, 2021, 3:10am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2051 "2021-01-08T03:10:51Z")

</div>

Hey everyone! First of all, thanks for this amazing tool! It’s a huge time saver! However, I’ve been scracthing my head over this problem and I can’t find a solution. I’ve spent hours reading this thread, trying different settings, but I can’t figure out what’s causing these red splotches everywhere:

 ![splotches.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/1/b12f66b205f86a5b401ee8972fa9b44ecd22680e.jpeg)

Anyone has any pointers? Any help would be greatly appreciated! Thanks!

---

<div class="post-metadata">

**Author:** ![Minos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Minos](https://forums.unrealengine.com/u/Minos)\
**Post date:** [January 9, 2021, 2:57am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2052 "2021-01-09T02:57:49Z")

</div>

> [@Minos](#):
>
> Hey everyone! First of all, thanks for this amazing tool! It’s a huge time saver! However, I’ve been scracthing my head over this problem and I can’t find a solution. I’ve spent hours reading this thread, trying different settings, but I can’t figure out what’s causing these red splotches everywhere:
> 
> Anyone has any pointers? Any help would be greatly appreciated! Thanks!

So, I figured out what was the problem. Turns out that the baker wasn’t recognizing my skybox, since I enabled “Is Sky?” in the material flags. When I turned this off, the red splotches were almost gone, but I was still getting some. After realizing that the hole at the bottom of my custom dome was exposed to the void, I realized that these “rogue” splotches were being spawned from there. After completely encapsulating the dome, and changing the FireflyThreshold option to 10, I got a perfect bake! Here’s how the scene looks like now:

 ![sampa.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/a/1ab9155e67792fb7a50baa6e3d335259d87e1c45.jpeg)

Thank you so much for this amazing tool!

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

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