# Epic's GPUlightmass

**URL:** <https://forums.unrealengine.com/t/epics-gpulightmass/139357>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [March 5, 2020, 12:52pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357 "2020-03-05T12:52:56Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ElectricNZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ElectricNZ](https://forums.unrealengine.com/u/ElectricNZ)\
**Post date:** [March 16, 2020, 9:32pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/21 "2020-03-16T21:32:56Z")

</div>

> [@PrizmIzm](#):
>
> Thanks for the response, and good to known about the progress, I’m sure other people will want to know about these things. I’ll try and answer the best I can.
> 
> 1. With CPU Lightmass you can bake a skylight in stationary mode and then adjust it’s own intensity + Indirect Lighting Intensity within a post process volume - that gives the effect of fading in / out a baked daylight scene. There are several limitations to doing this 1. When you fade down ‘Indirect Lighting Intensity’ in the postprocess volume, it fades out the influence of all baked lighting and volumetric light probes in the level - so if you’ve baked any other lights, they’re gone also. 2. This method can only contain one lightbake and not several different ones; so if you wanted to bake a day scene, an evening scene, and a night scene, and fade between them then you’re stuck. 3. CPU Lightmass is hugely inefficient and slow. I personally want to bake lighting for an open world town (indoors and outdoors), but the quickest I can get it down to (without loosing too much quality) is about 3 minutes per building! 4. CPU LM doesn’t allow me to just rebake the area I’m working on, so the idea of re-baking a whole town every time I change a single light is unthinkable.
> 2. This is VERY encouraging - such a simple fix would save thousands of people, thousands of hours!
> 3. This is a shame - the most simple system I could think that would cure a lot of woes would use the same probes that are in the editor right now, but just allow the drawing of a simple volume and for there to be a vertical and horizontal density slider which would populate the volume with a grid of probes. Another massive addition would be the ability to darken / lighten those probes after bake - this would allow artists to be able to exclude volumetric fog from indoor areas (another huge feature for a relatively simple change).
> 4. Awesome! I figured that would be a priority. My GPUs are ready.
> 
> Bugs
> 
> 1. Editor was not compiling and I was using an SLS cubemap (not a captured scene) so there’s no way for me to recapture.
> 
> I hope all this helps. I can see real potential here once all your algos are in and the efficiency is up. I was a big fan of your independent GPULM, I’ve used it a lot.

Seconded on point #2

This alone would increase productivity and help scheduling massively.

---

<div class="post-metadata">

**Author:** ![Luoshuang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luoshuang](https://forums.unrealengine.com/u/Luoshuang)\
**Post date:** [March 17, 2020, 10:34pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/22 "2020-03-17T22:34:13Z")

</div>

We’ve just implemented Intel Open Image Denoise for lightmap GI denoising in Dev-Rendering. Denoising in preview is not supported as the latency is very high. However you should be able to get way less noise in baked lightmaps. Still, to get good quality with this brute force renderer you’ll need very high sample counts (16k). The denoiser may be able to reduce that to 512 - 1k though.

---

<div class="post-metadata">

**Author:** ![techtuts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@techtuts](https://forums.unrealengine.com/u/techtuts)\
**Post date:** [March 18, 2020, 12:25am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/23 "2020-03-18T00:25:35Z")

</div>

Is it possible to add support for the Two-sided foliage model in lightmass? eg. light scattering through leaves to the area below.  
Would be really nice for forest environments

---

<div class="post-metadata">

**Author:** ![AE\_3DFX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ae_3dfx/32/1194637_2.png) [@AE\_3DFX](https://forums.unrealengine.com/u/AE_3DFX)\
**Post date:** [March 18, 2020, 10:02am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/24 "2020-03-18T10:02:04Z")

</div>

Probably EPIC knows but just in case. [Change log for March 17, 2020 Vulkan 1.2.135 spec update: · KhronosGroup/Vulkan-Docs@18caa8e · GitHub](https://github.com/KhronosGroup/Vulkan-Docs/commit/18caa8e0b823981992e6df876ec56d4cfa8bc89f)

---

<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:** [March 20, 2020, 8:28am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/25 "2020-03-20T08:28:20Z")

</div>

> [@Luoshuang](#):
>
> We’ve just implemented Intel Open Image Denoise for lightmap GI denoising in Dev-Rendering…However you should be able to get way less noise in baked lightmaps. Still, to get good quality with this brute force renderer you’ll need very high sample counts (16k). The denoiser may be able to reduce that to 512 - 1k though.

Nice! With 1k settings for both sample counts the same project as before (page 1, 4th post) now results in this image. A big visual improvement.

 ![200320_01-denoiser.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/88735a06c02f0c7ba67f9d4305d37f6009ce9f52.jpeg)

---

<div class="post-metadata">

**Author:** ![Nocturness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocturness](https://forums.unrealengine.com/u/Nocturness)\
**Post date:** [March 20, 2020, 2:40pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/26 "2020-03-20T14:40:11Z")

</div>

> [@Luoshuang](#):
>
> We’ve just implemented Intel Open Image Denoise for lightmap GI denoising in Dev-Rendering. Denoising in preview is not supported as the latency is very high. However you should be able to get way less noise in baked lightmaps. Still, to get good quality with this brute force renderer you’ll need very high sample counts (16k). The denoiser may be able to reduce that to 512 - 1k though.

compiling… Just realease the kraken 😃

another test without denoiser  
[https://youtube.com/watch?v=u1c2TonsAzE](https://youtube.com/watch?v=u1c2TonsAzE)]([https://www.youtube.com/watch?v=u1c2TonsAzE](https://www.youtube.com/watch?v=u1c2TonsAzE))

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [March 20, 2020, 6:13pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/27 "2020-03-20T18:13:12Z")

</div>

This is so awesome. Cant wait until its in an actual build ready to use 🙂

Does it handle hlods well? Luoshuangs old one used to not handle those and take the hlods into account into lighting the rest of the envrionment leaving awkward lighting where hlods would intersect.

---

<div class="post-metadata">

**Author:** ![Luoshuang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luoshuang](https://forums.unrealengine.com/u/Luoshuang)\
**Post date:** [March 20, 2020, 8:39pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/28 "2020-03-20T20:39:01Z")

</div>

> [@kurylo3d](#):
>
> This is so awesome. Cant wait until its in an actual build ready to use 🙂
> 
> Does it handle hlods well? Luoshuangs old one used to not handle those and take the hlods into account into lighting the rest of the envrionment leaving awkward lighting where hlods would intersect.

HLOD and LODs are not implemented currently, but shouldn’t be very hard on top of the new system (with proper instance management)

---

<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 21, 2020, 3:38am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/29 "2020-03-21T03:38:43Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/9/ad9964ba817bda7ae67b8e5e1b45ca24a4896643.jpeg "Unreal Engine 4.26 DevRendering Branch / DXR GPU Lightmass first test!") ](https://www.youtube.com/watch?v=B6fr6DJEvw8)

my try in sample 8k…still some noise, any suggestion? do i need re compile dev render again?

---

<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:** [March 21, 2020, 7:37am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/30 "2020-03-21T07:37:48Z")

</div>

@tc22 some things I would try to improve quality;

- use 3d geometry you modeled yourself with proper lightmaps in 3dsMax/Maya/Blender
- using higher lightmap sizes
- disabling lightmapp compression in the world settings

---

<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 21, 2020, 7:51am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/31 "2020-03-21T07:51:59Z")

</div>

> [@maxbrown](#):
>
> @tc22 some things I would try to improve quality;
> 
> - use 3d geometry you modeled yourself with proper lightmaps in 3dsMax/Maya/Blender
> - using higher lightmap sizes
> - disabling lightmapp compression in the world settings

Thank you Maxbrown!

i rebuild devrendering again , it seem less noise in viewport!  
and add denoise gi option! see attachment!

seem in shadow there still had movement noise , i don’t know why it happen !

---

<div class="post-metadata">

**Author:** ![Luoshuang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luoshuang](https://forums.unrealengine.com/u/Luoshuang)\
**Post date:** [March 21, 2020, 8:22am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/32 "2020-03-21T08:22:33Z")

</div>

Note that when you enable ray tracing, realtime ray traced shadows will be on automatically. You probably want to set r.RayTracing.ForceAllRayTracingEffects=0 to disable all realtime ray tracing effects.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [March 21, 2020, 11:11am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/33 "2020-03-21T11:11:15Z")

</div>

great work Luoshuang (and the rest of the team), really looking forward to this once it’s released

also it’s great that you’re reacting to feedback on this thread. so a couple of questions from me:

1. will this work on non-RTX cards?
2. any chance the whole thing could work at runtime? thinking of a scenario like building a procedural level and then building static lights, all under a loading screen

---

<div class="post-metadata">

**Author:** ![Nocturness](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nocturness](https://forums.unrealengine.com/u/Nocturness)\
**Post date:** [March 21, 2020, 1:29pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/34 "2020-03-21T13:29:51Z")

</div>

@**[Luoshuang](https://forums.unrealengine.com/member/27540-luoshuang)**  
shader compiler is incredibly slow. 😃 is it normal or just for me? also visual studio compile takes 3.5 hour(other branchs max takes 1 hour) lol 😃 thats need patience work definitely.

rests incredible. denoiser working good. thx for you and your team works.

i will share the results of denoiser with single material.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/0/8a0be126b4e82f1763571fd23a564e0679870fd6.jpeg "UE4.26 | DXR GPULightmass with denoiser | devrendering") ](https://www.youtube.com/watch?v=uXYNAtux_94)

---

<div class="post-metadata">

**Author:** ![KoTbonda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KoTbonda](https://forums.unrealengine.com/u/KoTbonda)\
**Post date:** [April 1, 2020, 5:00pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/35 "2020-04-01T17:00:15Z")

</div>

I beg for help! I have been trying to build ue4 dev-render for a month now. I just can’t solve this problem - the engine has assembled with errors and does not start. can someone know how to solve this? I will be very grateful for any help!

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/3/83e85c321229102b6abd788b1c681d1d0f2629c2.jpeg)[/SPOILER]

---

<div class="post-metadata">

**Author:** ![fear13th](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fear13th/32/965911_2.png) [@fear13th](https://forums.unrealengine.com/u/fear13th)\
**Post date:** [April 1, 2020, 9:07pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/36 "2020-04-01T21:07:47Z")

</div>

> [@KoTbonda](#):
>
> I beg for help! I have been trying to build ue4 dev-render for a month now. I just can’t solve this problem - the engine has assembled with errors and does not start. can someone know how to solve this? I will be very grateful for any help!
> 
> ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/3/83e85c321229102b6abd788b1c681d1d0f2629c2.jpeg)[/SPOILER]

Yes, I also faced the same problem in VS2017, decided to use VS2019 (no errors, no warning)

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [April 4, 2020, 5:06pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/37 "2020-04-04T17:06:29Z")

</div>

@Luoshuang It’s just a small thing but you could rename “ToggleLightMapPreview” to “r.GPULightmass.ToggleLightMapPreview”. Would be nice to have all the relevant commands in one place.

---

<div class="post-metadata">

**Author:** ![Luoshuang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luoshuang](https://forums.unrealengine.com/u/Luoshuang)\
**Post date:** [April 4, 2020, 9:19pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/38 "2020-04-04T21:19:45Z")

</div>

> [@The\_Distiller](#):
>
> @Luoshuang It’s just a small thing but you could rename “ToggleLightMapPreview” to “r.GPULightmass.ToggleLightMapPreview”. Would be nice to have all the relevant commands in one place.

Well that’s because ToggleLightmapPreview belongs to FStaticLightingSystemInterface - an interface allowing ppl to implement their own lightmap baking system beyond GPULightmass

---

<div class="post-metadata">

**Author:** ![The\_Distiller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Distiller](https://forums.unrealengine.com/u/The_Distiller)\
**Post date:** [April 4, 2020, 10:29pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/39 "2020-04-04T22:29:55Z")

</div>

I see. Thanks for clarifying!

---

<div class="post-metadata">

**Author:** ![StefanLukacs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StefanLukacs](https://forums.unrealengine.com/u/StefanLukacs)\
**Post date:** [April 7, 2020, 8:31am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/40 "2020-04-07T08:31:31Z")

</div>

Hi,  
ineed help.  
I played last week with dev-rendering build and gpulightmass, worked fine. Now I downloaded the latest one, and it is not working anymore. By “ToggleLightmapPreview” Command I got this error:

![gpulmerror.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/9/c9897d22d96ddac90575b7e7a85cb033b3e05309.jpeg)

Sorry for my bad Englich 🙂

Thanks

[Previous page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=1)

[Next page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=3)
