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

<div class="post-metadata">

**Author:** ![DSuppo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DSuppo](https://forums.unrealengine.com/u/DSuppo)\
**Post date:** [November 27, 2021, 9:20pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2177 "2021-11-27T21:20:38Z")

</div>

Hello, I’m new on this forum I still don’t understand how to make a new post, so I have to make a reply…  
With standard Lightmass I can choose how many bounces (from skylight and indirect) I need,  
how to do the same with this plugin?  
I’ve tried to change these same parameters in Lithmass Settings, but it does not change at all…  
Many thanks!

---

<div class="post-metadata">

**Author:** ![StrayDorian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrayDorian](https://forums.unrealengine.com/u/StrayDorian)\
**Post date:** [November 29, 2021, 8:42pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2178 "2021-11-29T20:42:59Z")

</div>

Hello, I’m curious if anyone could help me figure out why my builds are failing on a specific map. I can compile other bigger maps, but this one map that doesn’t seem to be pushing the boundaries keeps failing during the build BVH stage. I’ve cleared and validated cache. I double checked my total lightmap memory use which is about 50-60% of other maps.

I get the following output from swarm:

> 12:30:43 PM: LogLightmass: Display: Lightmass Win64 started on: COMPUTER-1. Command-line: 284D85FD46C1B6F9FC8AADB979A48321  
> 12:30:43 PM: Failed to determine engine directory: Defaulting to  
> 12:30:43 PM: Failed to load ‘aqProf.dll’ (GetLastError=126)  
> 12:30:43 PM: File ‘aqProf.dll’ does not exist  
> 12:30:43 PM: Failed to load ‘VtuneApi.dll’ (GetLastError=126)  
> 12:30:43 PM: File ‘VtuneApi.dll’ does not exist  
> 12:30:43 PM: Failed to load ‘VtuneApi32e.dll’ (GetLastError=126)  
> 12:30:43 PM: File ‘VtuneApi32e.dll’ does not exist  
> 12:30:43 PM: Lightmass Win64 started on: COMPUTER-1. Command-line: 284D85FD46C1B6F9FC8AADB979A48321  
> 12:30:43 PM: LogLightmass: Display: Processing scene GUID: 284D85FD46C1B6F9FC8AADB979A48321 with 14 threads  
> 12:30:43 PM: Processing scene GUID: 284D85FD46C1B6F9FC8AADB979A48321 with 14 threads  
> 12:30:43 PM: Building static lighting…  
> 12:30:43 PM: [OpenConnection] Registering TCP channel …  
> 12:30:43 PM: [OpenConnection] Connecting to agent …  
> 12:30:43 PM: [TryOpenConnection] Testing the Agent  
> 12:30:43 PM: [TryOpenConnection] Opening Connection to Agent  
> 12:30:43 PM: [TryOpenConnection] Local Process ID is 708  
> 12:30:43 PM: [Job] Found a parent connection for PID 708  
> 12:30:43 PM: [Job] 6FF72C0E → 4B499305  
> 12:30:43 PM: [Interface:TryOpenConnection] Local connection established  
> 12:30:45 PM: Measured CPU frequency: 3.60 GHz  
> 12:30:45 PM: FStaticLightingSystem started using GKDOPMaxTrisPerLeaf: 4  
> 12:30:45 PM: Number of texture mappings: 5986  
> 12:30:45 PM: Number of fluid mappings: 0  
> 12:30:45 PM: Number of landscape mappings: 0  
> 12:30:45 PM: Number of BSP mappings: 0  
> 12:30:45 PM: Number of static mesh instance mappings: 5986  
> 12:30:45 PM: Reserving memory for 5986 meshes, 5178598 vertices, 6795892 triangles  
> 12:30:45 PM: Reserving memory for 0 meshes, 0 vertices, 0 triangles  
> 12:30:49 PM: Scene surface area calculated at 2276.241 million units (89.073% of the estimated 2555.480 million units)  
> 12:30:49 PM: Importance volume surface area calculated at 1732.928 million units (123.595% of the estimated 1402.099 million units)  
> 12:30:50 PM: Embree Build 0.5s  
> 12:30:50 PM:  
> 12:30:50 PM:  
> 12:30:50 PM: Collision Mesh Overview:  
> 12:30:50 PM: Num Triangles : 6555490  
> 12:30:50 PM: MeshInfos : 0.5Mb  
> 12:30:50 PM: UVs : 38.2Mb  
> 12:30:50 PM: LightmapUVs : 38.2Mb  
> 12:30:50 PM: Embree Used Memory : 494.4Mb  
> 12:30:50 PM:  
> 12:30:50 PM:  
> 12:30:54 PM: Processing…  
> 12:30:59 PM: GPULightmass Kernel: Importing mesh: 5009817 vertices, 6048250 triangles  
> 12:30:59 PM: Assertion failed: primitiveCount \> 0, file , line 61  
> 12:31:00 PM: [Job] Job has failed! Job executable didn’t exit cleanly. Exit code: -1073740791

Maps that build successfully report the same missing dll and failure to find engine directory. One thing that’s unique about this output I noticed is the surface area calculated looks a bit high at 89% and the importance volume area is at 123%. However other maps that compile use much more area but have a much higher total available and show a much lower percentage. Not sure what that means if anything.

Here’s the log from a map that builds successfully:

> 12:41:03 PM: Scene surface area calculated at 2869.551 million units (5.095% of the estimated 56325.316 million units)  
> 12:41:03 PM: Importance volume surface area calculated at 2148.854 million units (32.419% of the estimated 6628.356 million units)

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![StrayDorian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrayDorian](https://forums.unrealengine.com/u/StrayDorian)\
**Post date:** [November 30, 2021, 1:37am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2179 "2021-11-30T01:37:33Z")

</div>

So got this to work in the silliest way. Asked an engineer to review the error on line 61 and suggest some changes in content to get around the error. I was told BVH is a process of sub-dividing the world into small pieces and error appears to be caused when the world is divided up one half happens to have 0 meshes/primitives. I fixed this by throwing a cube mesh outside of the level bounds on all 6 sides.

Her suggested fix is to add:

args.canCreateLeaf = [](RTCThreadLocalAllocator, const struct RTCBuildPrimitive\*, size\_t primitiveCount) { return primitiveCount \> 0; };

On line 328 in EmbreeBVHBuilder.cpp

If anyone here regularly updates & compiles the binaries might be worth investigating.

---

<div class="post-metadata">

**Author:** ![metaphysique](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@metaphysique](https://forums.unrealengine.com/u/metaphysique)\
**Post date:** [December 3, 2021, 7:56pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2180 "2021-12-03T19:56:51Z")

</div>

Having an issue with Multi-GPU where the two separate GPU tile pools don’t blend with each other. This is resulting in sharp seams on large surfaces like walls etc. Please advise if there is a work-around or setting that needs to change. Thanks! Love the tool!

---

<div class="post-metadata">

**Author:** ![Avako](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/avako/32/1052594_2.png) [@Avako](https://forums.unrealengine.com/u/Avako)\
**Post date:** [December 8, 2021, 1:23pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2181 "2021-12-08T13:23:31Z")

</div>

I have something similar, it happens on all my machines when we build the light these strange “boxes” shadow shows up, all I can do is to delete the light that is the source of it and replace it with another static light, rebuild and pray for it not to show!

I really need to fix this, it delay my job many hours!

 ![erro1](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/e/fe2fb9de73163e1f67ad900f4d8830e3197c0afd.jpeg)  
 ![erro2](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/6/26c24f1676619a96c8889140f2562f1e77449ad2.jpeg)  
 ![erro4](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/1/317000112cf17130857fb80efa0bb9363c0fe566.jpeg)  
 ![erro5](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/5/e5a893606b1f3092f373fa4a2f623afa46bed1ff.jpeg)

---

<div class="post-metadata">

**Author:** ![shaguanwe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shaguanwe](https://forums.unrealengine.com/u/shaguanwe)\
**Post date:** [December 8, 2021, 1:53pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2182 "2021-12-08T13:53:10Z")

</div>

- I think your lights are way up there

---

<div class="post-metadata">

**Author:** ![Avako](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/avako/32/1052594_2.png) [@Avako](https://forums.unrealengine.com/u/Avako)\
**Post date:** [December 8, 2021, 2:12pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2183 "2021-12-08T14:12:59Z")

</div>

it is not, it is below, besides, even if I place a light in the middle of the room, still happens

---

<div class="post-metadata">

**Author:** ![Logtrix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Logtrix](https://forums.unrealengine.com/u/Logtrix)\
**Post date:** [December 11, 2021, 2:44pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2184 "2021-12-11T14:44:02Z")

</div>

I have the same problem. still i haven’t find a solution

---

<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 12, 2021, 11:27am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2185 "2021-12-12T11:27:57Z")

</div>

You can clean the project, keep only conflictive meshes, confirm the problem persists, and share that cleaned up project, so people can make a try 😉

Regards

---

<div class="post-metadata">

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

</div>

Maybe you could send me the file because I want to try out the problematic scenario

---

<div class="post-metadata">

**Author:** ![nelmselle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nelmselle](https://forums.unrealengine.com/u/nelmselle)\
**Post date:** [December 14, 2021, 4:32am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2187 "2021-12-14T04:32:49Z")

</div>

can someone share loushoung’s GPUlightmass for version 4.27.2

---

<div class="post-metadata">

**Author:** ![nelmselle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nelmselle](https://forums.unrealengine.com/u/nelmselle)\
**Post date:** [December 15, 2021, 11:48am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2188 "2021-12-15T11:48:00Z")

</div>

can you compile for unreal engine 4.27.2??

---

<div class="post-metadata">

**Author:** ![Marcio3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marcio3d](https://forums.unrealengine.com/u/Marcio3d)\
**Post date:** [December 17, 2021, 12:05am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2189 "2021-12-17T00:05:40Z")

</div>

Hi guys…please can someone share loushoung’s GPUlightmass for version 4.27.2…I am needing

---

<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 17, 2021, 9:53am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2190 "2021-12-17T09:53:50Z")

</div>

Our savior is @ , remember his name for his great contribution 😉

---

<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 20, 2021, 4:30am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2191 "2021-12-20T04:30:27Z")

</div>

**GPU Lightmass 4.27.2-release**

**[Download](https://www.dropbox.com/sh/fog19rn216h2lav/AAALRm46JGMjgLscLWwbNWwoa?dl=0)** binaries

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

---

<div class="post-metadata">

**Author:** ![nelmselle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nelmselle](https://forums.unrealengine.com/u/nelmselle)\
**Post date:** [December 20, 2021, 5:29am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2192 "2021-12-20T05:29:09Z")

</div>

thank you so much

---

<div class="post-metadata">

**Author:** ![HusamBnat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/husambnat/32/1177767_2.png) [@HusamBnat](https://forums.unrealengine.com/u/HusamBnat)\
**Post date:** [December 22, 2021, 10:15am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2193 "2021-12-22T10:15:15Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![michaelmonte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@michaelmonte](https://forums.unrealengine.com/u/michaelmonte)\
**Post date:** [January 8, 2022, 7:55pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2194 "2022-01-08T19:55:58Z")

</div>

Hello folks. Could you guys answer me a little question. I´ve been not working with Unreal for awhile. And I used to use gpu lightmass from in 4.24 version. But now I installed the 4.27 and I saw there is a native gpu lightmass. Howeverm, new version from the still here. I just wanna know why? I mean, is there any difference betweem them? Thanks

---

<div class="post-metadata">

**Author:** ![MikeArtist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeArtist](https://forums.unrealengine.com/u/MikeArtist)\
**Post date:** [January 11, 2022, 10:30am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2195 "2022-01-11T10:30:40Z")

</div>

thank u ever 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:** [January 21, 2022, 9:19am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/2196 "2022-01-21T09:19:17Z")

</div>

Yes, there is a major difference. Unreal is making a profit from forcing us to buy rtx cards. Instead, is a good man, that proves us that gpu lightbaking is something that should have always been a standard feature. It does not require rtx.

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

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