Lightmass: multi-bounced sky lighting

Very impressive work with the new lightmass. I thought Luochang’s Lightmass was good but this is even nicer.
I’m one of those people who like to find a good setting for things and then don’t feel any need to experiment with them. Would the “standard” 4.18 Lightmass give me the most correct result (without changing the lightmass.ini) or would that be different from case to case?

Just use the stock one. When Daniel and me were working together we used some offline renderer (Mitsuba Renderer) as reference and it showed very similar results. The only thing you may want to tweak is the option I mentioned at #222 if you have tons of memory and want to make it faster. Basically when bUseFilteredCubemapForSkylight is turned off it doesn’t mean using a non-filtered cubemap, but not using a cubemap at all (it will use a super blurry SH representation of skylight which loses most of directionality and is not physically correct). So unless you want to intentionally make the environment lighting more ‘averaged out’, you probably never need that option.

I did some tests:

1) UE4 17.2 with multibounce tweaked UnrealLigthmass.exe
Quality=MEDIUM / SLLS=0.2 / NILB=13 / NSLB=n/a / ILS=0.75

UE4-17-1-tweaked-[Q=MED, SLLS=0,2 NILB=13, NSLB=na, ILS=0,75].jpg

2) UE4 18.1 Prev 1 - stock lightmass
Quality=MEDIUM / SLLS=0.2 / NILB=13 / NSLB=1 / ILS=0.75
Time=1000sec (36 CPU threads)

UE4-18-0P1-cam0[Q=MED, SLLS=0,2 NILB=13, NSLB=1, ILS=0,75]-1000sec.jpg

3) UE4 18.1 Prev 1 - stock lightmass
Quality=MEDIUM / SLLS=0.2 / NILB=13 / NSLB=13 / ILS=0.75
Time=1013sec (36 CPU threads)

UE4-18-0P1-cam0[Q=MED, SLLS=0,2 NILB=13, NSLB=13, ILS=0,75]-1013sec.jpg

I have to say that 18.1P1 with NILB & NSLB>10 gives very nice results

SLLS - Static Lighting Level Scale
NILB - Num Indirect Lighting Bounces
NSLB - Num Sky Lighting Bounces
ILS - Indirect Lighting Smoothness

Just one thing: in UE4 18.1 option r.ScreenPercentageEditor=1 do not affect at all to the image ( even ScreenPercentage value changes nothing - I usually override it to 200).
But quality looks like Editor has this option enabled with some higher value cause the orange object outlines are very thin and objects are very sharp.

And this is version with better HDRI parameters ( contrast ) and lower Global Brightness
Now all hdri-sky light colours are visible on the wall. ( HDRI represents sunset )

What lightmass settings did you use there? That lighting its awesome!!

I did a comparison between 4.17 and 4.18 version. I have noticed a strong black shadow on the corners and intersections.

Nothing special,

on the Skylight; Skylight set to Static
Static lighting scale of 0.1
15 light bounces (4.18 preview has 15 on the sky lighting)
Lighting Quality of

BaseLightmass.ini was modified : NumShadowRaysScale=**16 , **NumPenumbraShadowRaysScale=**64 , **NumHemisphereSamplesScale=32

These settings don’t really have much impact on the style of the final look, as the renderings merely illustrate how nice “true” multi-bounce HDRI Skylighting looks like (Thanks to Daniel and Luoshuang) and why it is so exciting to finally have this in UE4 for Arch-Viz.

In order to get a more stylized look (more like Luoshuang’s mod). as stated in #249 you can disable “Filtering on the Skylight” using **“bUseFilteredCubemapForSkylight=false” **in the Baselightmass.ini, Although the Default set to true is more physically accurate.

If you are looking to get a better understanding of Lightmass, Check out rafareis123 in-depth tutorial :…rkflow-part-1/

The black shadow in corners is due to too much biasing by Lightmass when tracing gather rays. With point and spot lights, only the first bounce uses a gather and is affected by this bug, while the rest of the bounces come from photon mapping which is not affected. With multibounce skylight, all bounces are gathers and are affected by this bug so the artifact is much more noticeable.

This is completely solvable but I just ran out of time for 4.18. It’s high on my priority list.

Thanks for the answer! The multi-bounce HDRI Skylighting it´s just awesome!! Thanks Daniel and Luoshuang…-lightmap.html same bug?

Edit: Looks like not.

Higher indirect lighting quality reduces noise and splotchiness in lightmaps, but increases render times significantly. Cranking it up past 4 generally doesn’t do much at all besides increases render times. Even 4 is a bit high if your scene isn’t super clean/empty, such has having textured walls.

Any known workaround? Any tips of settings combinations to avoid for 4.18? If it is on gathering, is it correct to assume the more bounces in NSLB the deeper the effect of the bug?


I haven’t figured out a workaround yet =( Something like VisibilityTangentOffsetSampleRadiusScale or VisibilityNormalOffsetDistance is probably relevant but I didn’t get time to play with it before I had to switch to a higher priority task.

The brighter the 2nd and up bounce of skylight is, the more severe the artifact. Scenes with very bright diffuse (.7 and above) with 90 degree corners have it the worst. Adding a bevel may work around it.

I have tested the settings that you suggested, playing with different values. It is only noticeable when you are close to it.

You use those settings with production high or medium quality ?


Full settings described for that scene in #260

Hey guys,

First of all I would like to thank you and congratulate you for your awesome job on pushing UE’s lightmass further.

I am facing a dilemma : the project I am working on has a deadline next week. So UE4.18 full release + substance plugin update probably won’t be in time. Is it possible to use 4.18’s Lightmass on 4.17? Or is there some trick to make substance plugin on 4.18?

Just use the bounced lighting exe in this thread for 4.17. You’re not going to get all the 4.18 improvements, but it’s better than nothing.

The livestream talked about the new lightmass features here 4.18 Preview | Feature Highlight | Unreal Engine Livestream - YouTube

sounds like doors and other moveable objects will be much better integrated.