# A dispersion like artefact when using CPU lightmass

**URL:** <https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075>\
**Category:** Rendering\
**Tags:** unreal-engine, lighting-problem, directional-light, Lighting, UE4-27, question\
**Created:** [October 2, 2022, 9:40pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075 "2022-10-02T21:40:06Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 2, 2022, 9:40pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/1 "2022-10-02T21:40:06Z")

</div>

Hey there, I am using UE4.27.2 and have faced with such a problem. When I bake the lighting CPU lightmass it seems like light is splitting into separate rays reminding dispersion effect. I have only one directional light and skylight in my scene. I have tried to reinstal Engine client and test it in UE4.26, but result was the same. It is interesing that when I am using GPU lightmass everything is ok.

 ![SharedScreenshot2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/5/aa5590843a800bba6b65f9e18d5fa372333e90a4.jpeg)  
 ![SharedScreenshot1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/d/4ad264f748f5f694dbe82d8197b1478484bd23ce.jpeg)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 2, 2022, 9:43pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/2 "2022-10-02T21:43:14Z")

</div>

Not sure if this is the exact same effect but this tutorial talks about weird banding effects with baking. Might be helpful

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/d/21d4ef070f9c7fd86271721cedfa73ee6555146d.jpeg "HTF do I? Fix weird banding issues in shadows on meshes") ](https://www.youtube.com/watch?v=_eruvJhZ460)

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 10:59am UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/3 "2022-10-04T10:59:00Z")

</div>

Thank you for this tutorial, but undortunatelly it didnt help. Ive tried to set the quality to production in the Bake button menu, but its only make the result a little bit crispier. Increasing indirect lighting quality and other World settings parameters didnt help.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 11:18am UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/4 "2022-10-04T11:18:14Z")

</div>

Are you encompassing the room in a lightmass importance volume?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 11:25am UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/5 "2022-10-04T11:25:28Z")

</div>

Have you tried going into world settings and turning off compress lightmaps? Maybe it’s a compression artifact?

I pumped up my lightmass settings and getting rather good results. Lumen turned off so it’s just lightmass.  
Added importance volume too.

 ![light1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/a/34a5c3c858990eb0d3f701d71cb079c7843730b0.jpeg)  
 ![light2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/3/7930602dfbdaf52af059c2c08da843d26e48c38e.jpeg)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [October 4, 2022, 1:00pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/6 "2022-10-04T13:00:52Z")

</div>

First off, make sure you’re building your lighting on production. Area lights won’t resolve well on lower quality bakes. If that fails you may have to raise your ray count.

When you have a light with a very large source radius it will require a lot of shadow rays to resolve. By default Lightmass uses 16 penumbra shadow rays on Production Quality for area lights, which is good enough for most realistic source sizes, but not for larger ones. For that you’ll have to bump the ray count up, sometimes by a very large amount.

You can increase the penumbra rays by editing the setting in the Lightmass ini file in your engine (or more ideally, project) directory. This will probably affect bake times and memory consumption during the bake, but I don’t know how big the impact will be.

![UE4_LightmassShadowPenumbraRaysIniFile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/8/0f88fbab8eb39bde4841b53e7093d726b229af7f.jpeg)

 ![UE4_LightmassShadowPenumbraRaysComparison](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/7/b3792b3ce544f479d506b3d23e6e1eb64e70dd2d.jpeg)

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/7 "2022-10-04T14:39:11Z")

</div>

Ive turned off compress lightmaps and placed an importance volume into the scene, but still no result

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 2:49pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/8 "2022-10-04T14:49:35Z")

</div>

Have you tried changing lightmass setting in the world settings?

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 4:16pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/9 "2022-10-04T16:16:24Z")

</div>

Yeah, actually Ive played with the ìndirect lighting intnsity`, `num skylight bounces and indirect lighting bouces`and `static lighting level scale`as well. It gets nothing but the tiny improvements.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 4:17pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/10 "2022-10-04T16:17:58Z")

</div>

If the level is small then could you upload it for tests. I’ve got a 32 core cpu that can chew through lighting pretty fast dialing in parameters.

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 5:03pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/11 "2022-10-04T17:03:28Z")

</div>

Wow, I’ve got only 16 cores. I send you a similar scene that I tested on the office computer with the same troubles. That’s what I get using CPU and GPU Lightmass.

 ![HighresScreenshot00001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/f/47ffc8dcb9633c7271e2ff87bbde227af6320609.jpeg)  
 ![HighresScreenshot00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/4/434a8eacb09d18e64273970e64329e279317c001.jpeg)

> **[T1.rar](https://drive.google.com/file/d/1mUroZEsaA1B4zCLTQAs98M_k5RWs61p7/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 5:09pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/12 "2022-10-04T17:09:49Z")

</div>

I’ve turned to production quality and then increase the number of penumbra rays up to 256. It really improved the result and I am already satisfied but do you see these small bandings? Maybe its the way the Engine works cause I turned down the indirect lighting intensity to zero in PostProcessVolume to see the result just of the direct lighting. Maybe its supposed to blend these bandings with indirect lighting further?

 ![HighresScreenshot00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/1/f21aa0531e4e5d463e5e981967f43ab408cc8c29.jpeg)

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 5:21pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/13 "2022-10-04T17:21:26Z")

</div>

And @3dRaven when You will check the scene, please sure that the ligth source angle up to 10-15, button `Use Area Shadows for Stationary light` is on and the type of `Directional Light` is set to `Stationary`. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [October 4, 2022, 5:42pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/14 "2022-10-04T17:42:38Z")

</div>

Some banding is unavoidable, on surfaces with materials it will be unnoticeable. You can try disabling lightmap compression if you haven’t already, but it probably won’t help very much (and will be extremely expensive)

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 4, 2022, 5:46pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/15 "2022-10-04T17:46:23Z")

</div>

Thanks a lot for your answer.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 6:14pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/16 "2022-10-04T18:14:31Z")

</div>

- Added lightmass importance volume
- boosted the samples
- reduced the static light level (less is better)
- turned off compression  
still getting banding. It seems the post process is making it seem a lot worse though

 ![lightmass1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/0/5e0e8d9b9982aebd7e2f092f62dca9e0ba88287d.jpeg)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 4, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/17 "2022-10-04T19:21:05Z")

</div>

Found what is causing the banding. It’s because you are scaling the GI value. It seems Unreal probably clamps the value or reduces it’s bit depth in the process or it could just be a bug.

 ![contribute](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/2/9724d5cad28ab6657e1a89ef7e175b6abb162dd7.jpeg)

Boosted packed light and shadow map texture size, indirect light quality, volumetric lightmap detail.

 ![lightmassOK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/d/37dc398edfdae2eb9a3320198437b6764eb42459.jpeg)

---

<div class="post-metadata">

**Author:** ![Vlaskes1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vlaskes1](https://forums.unrealengine.com/u/Vlaskes1)\
**Post date:** [October 5, 2022, 6:51am UTC](https://forums.unrealengine.com/t/a-dispersion-like-artefact-when-using-cpu-lightmass/661075/18 "2022-10-05T06:51:35Z")

</div>

Thank you very much, for resolving this problem, It really gave me more knowledge about how Unreal works.
