# Lumen GI and Reflections feedback thread

**URL:** <https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108>\
**Category:** Rendering\
**Tags:** Staff-Pick-UE, unreal-engine, Lumen\
**Created:** [February 22, 2022, 9:01pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108 "2022-02-22T21:01:05Z")\
**Posts on this page:** 20\
**Page:** 34

<div class="post-metadata">

**Author:** ![Unrealist23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unrealist23](https://forums.unrealengine.com/u/Unrealist23)\
**Post date:** [February 3, 2023, 4:21pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/676 "2023-02-03T16:21:51Z")

</div>

Hi. I can’t get Raytraced reflections to work in Unreal 5.1. See screenshot. The glass statue looks good but the reflection of the spheres is wrong. Is there something more I need to do?

 ![Unrealss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/5/13596a35d19a2da244e0bf3d64e719c6796a795a.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:** [February 3, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/677 "2023-02-03T16:38:16Z")

</div>

You’ll always get bad results trying to use standalone raytraced reflections with Lumen. They are not designed to work well together.

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [February 3, 2023, 5:28pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/678 "2023-02-03T17:28:50Z")

</div>

To build on that, it won’t even make things look better in all circumstances. When I was testing UE5.1 with thin, mostly occluded emissives, I noted that reference mode made the scene look notably _worse_. If you’re dealing with smoothly transitioning indirect lighting, it gives more accurate results, but it can compromise emissive scenes quickly.

For context, a default screen probe will trace 64 rays (last time I checked the presentation at least). 1024 is _16x_ that ray count, and it will kill performance in anything but trivial scenes. It’s meant as, well, reference, not gameplay tech.

---

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [February 3, 2023, 5:37pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/679 "2023-02-03T17:37:41Z")

</div>

Yes, I am pretty sure it’s meant for comparisons with the path tracer, which has been used as the reference for lumen. They probably use it to exclude light transport inaccuracy caused by the low ray count interpolated result, when comparing the lumen output with the path tracer output.

---

<div class="post-metadata">

**Author:** ![unreal\_dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unreal\_dev](https://forums.unrealengine.com/u/unreal_dev)\
**Post date:** [February 3, 2023, 7:54pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/680 "2023-02-03T19:54:08Z")

</div>

Are there any plans to add Lumen support for scene capture cubes soon? I take it from the Lumen support commit for the scene capture 2D that it wasn’t added for performance reasons. Would Lumen be unusable with cube captures with the current implementation?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [February 3, 2023, 9:55pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/681 "2023-02-03T21:55:37Z")

</div>

It is indeed possible in the current state of the engine. It would require you to build from source and make some minor modifications to the scene capture cube component. I have tested it and confirmed it worked with a previous version, but haven’t tried it in 5.1.

> [@Scene Capture Component not capturing Lumen Global Illumination](https://forums.unrealengine.com/t/scene-capture-component-not-capturing-lumen-global-illumination/249871/13):
>
> I continued looking around in the source and found that Lumen is explicitly disallowed for scene captures. I made some changes and was able to get it working pretty quickly: I submitted a [pull request](https://github.com/EpicGames/UnrealEngine/pull/9074) today that allows scene captures to explicitly opt into Lumen (You’ll have to sign in to view the pull request). Hopefully they’ll approve it. I’ll keep this thread updated on its status. In the meantime, I’ll detail what I learned below for those who are interested. Feel f…

The performance cost was quite heavy as it requires a second lumen scene, but it can still be useful for baking cube-maps for use in a variety of things. I would like to see it added in the same manner as the 2d capture moving forward. 2d captures also allow you to down-res the lumen scene to manage costs. I think it’s critical feature to add, as without it, manually baked environment captures will not accurately reflect the in game scene.

My engine ran stable with the above modifications, but I wouldn’t want to try and capture every frame for any real time application with it.

---

<div class="post-metadata">

**Author:** ![unreal\_dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unreal\_dev](https://forums.unrealengine.com/u/unreal_dev)\
**Post date:** [February 4, 2023, 5:34pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/682 "2023-02-04T17:34:17Z")

</div>

Hmm. I already tried the solution in that thread and it didn’t work for me, at least for the cube capture. The original solution was intended for the 2D capture.

If it’s worked for you, would you mind sharing a patch? I’ll give it another go in the meantime.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [February 4, 2023, 6:36pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/683 "2023-02-04T18:36:02Z")

</div>

I’m pretty sure I don’t have the build anymore, but if I remember correctly I just adapted the same changes to the cube component as I saw in the SC2D. I’m on vacation this week so I won’t have a chance to take a look.

---

<div class="post-metadata">

**Author:** ![AVLX0510](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AVLX0510](https://forums.unrealengine.com/u/AVLX0510)\
**Post date:** [February 5, 2023, 9:38pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/684 "2023-02-05T21:38:15Z")

</div>

What is the CVars to reduce this flickering effect, I’m using Raytracing along with the following commands

r.Lumen.ScreenProbeGather.FullResolutionJitterWidth = 5

r.Lumen.ScreenProbeGather.ReferenceMode = 1

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/4/8844f8a2fbbf8bf655cbbd2208226e438c25986a.jpeg)

Also, when I put in the commands from above, I get this temporal effect, whenever I move the camera in the editor environment? Is there a CVars for reducing this effect?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/f/c8f7176706176826f9551057a679bb1336387d10.jpeg)

---

<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:** [February 6, 2023, 9:26am UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/685 "2023-02-06T09:26:56Z")

</div>

Have you tried using Cinematic scalability settings?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [February 6, 2023, 12:25pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/686 "2023-02-06T12:25:14Z")

</div>

Usually ghosting like that means lumen is working only in screen space, make sure your lumen scene debug views look like a close proxy to the actual scene.

---

<div class="post-metadata">

**Author:** ![AVLX0510](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AVLX0510](https://forums.unrealengine.com/u/AVLX0510)\
**Post date:** [February 6, 2023, 9:28pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/687 "2023-02-06T21:28:41Z")

</div>

Using these prompts seems to resolve this issue for me

r.Lumen.ScreenProbeGather.ImportanceSample = 0

r.Lumen.ScreenProbeGather.ReferenceMode = 0

r.Lumen.ScreenProbeGather.ScreenSpaceBentNormal = 0

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/5/9755ce8479694920a2cb8b8d659e1f64e74b74ae.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/e/95e7fe63afd3d3af4ee85c4769228f2a625fe2dc.jpeg)

Although, has anyone managed to find a way to tweak the graphical fidelity of indirect shadows to make them close to pathtracing? GI bounces? They seem to appear to not meet with the corners of walls like this one for example

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/5/0b56066155a3cc7dc450a3b5e55f8f3cae1f4a92.jpeg)

---

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [February 7, 2023, 11:30am UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/688 "2023-02-07T11:30:24Z")

</div>

r.Lumen.ScreenProbeGather.ReferenceMode defaults to 0, so you can just omit it completely. Just don’t set it to 1 (non default) in the first place.

Once you are sure reference mode is off, are you really certain that turning off the importance sampling with r.Lumen.ScreenProbeGather.ImportanceSample makes the things better, not worse?

r.Lumen.ScreenProbeGather.ScreenSpaceBentNormal set at 0 is actually one of the things that destroys the contact shadows, so that could be part of the issue why your contact shadow is off.

But even if it wasn’t, for a realtime GI, that amount of accuracy is honestly already very impressive.

You seem to be just randomly turning cvars on and off and then using a “bro science” to arrive to some random combination of cvars, half of which have the opposite effect of what you are trying to achieve.

Anyway, for performance reasons, lumen doesn’t run at full screen resolution, so if you are interested in indirect shadow accuracy, your best bet is probably to find settings related to downsampling and fiddling with those:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/d/46d15f69a3ecde80314b0ed66bb2447bc9386eb5.png)

I’d suggest trying to reduce r.Lumen.ScreenProbeGather.DownsampleFactor. It defaults to 16. You should be able to get more accurate indirect shadowing by lowering that value.

---

<div class="post-metadata">

**Author:** ![Rawalanche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rawalanche/32/906578_2.png) [@Rawalanche](https://forums.unrealengine.com/u/Rawalanche)\
**Post date:** [February 7, 2023, 3:08pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/689 "2023-02-07T15:08:03Z")

</div>

> [@5.1.1 Hotfix Released](https://forums.unrealengine.com/t/5-1-1-hotfix-released/765638):
>
> The 5.1.1 Hotfix is now live, with over 350 fixes for Unreal Engine 5.1! Feel free to discuss this release on the [5.1 Forum thread](https://forums.unrealengine.com/t/unreal-engine-5-1-released/691237). If you experience a bug with the 5.1.1 Hotfix, please follow the [How to Report a Bug](https://www.unrealengine.com/support/report-a-bug) guide to report it on the [Bug Submission Form](https://epicsupport.force.com/unrealengine). Issue Summary UE-168544 Audio works with only one Media Plate Actor UE-168879 OnlineSubsystemEOS lobby attribute user ID spoofing UE-171277 FOnlineStatsEOS::QueryStats only works to retrieve local user stats UE-173047 P…

> UE-170986 SkyLight is not affecting the volumetric fog

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/4/d34da4a940068ad836513df6f93a8f48a16ed703.png)

---

<div class="post-metadata">

**Author:** ![znall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@znall](https://forums.unrealengine.com/u/znall)\
**Post date:** [February 7, 2023, 7:26pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/690 "2023-02-07T19:26:01Z")

</div>

Hello everybody,

I updated to 5.1.1 and there is a lot of noise appearing in my scene, which was not the case in 5.1.0

---

<div class="post-metadata">

**Author:** ![znall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@znall](https://forums.unrealengine.com/u/znall)\
**Post date:** [February 8, 2023, 10:08am UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/691 "2023-02-08T10:08:05Z")

</div>

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/9/5891e6f32322fd64c728f6766894b9951c368f4d.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/9/5891e6f32322fd64c728f6766894b9951c368f4d.mp4)

Hello,  
In addition to my previous message, here is a video that illustrates my problem, a lot of noise appeared without changing parameters just with the update 5.1.1, why?

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [February 8, 2023, 3:44pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/692 "2023-02-08T15:44:15Z")

</div>

I couldn’t be sure, but you may want to look at your lumen scene for any differences in behavior.

I will say though, that is a very unoptimal scene for lumen GI. That corner with both the thin geometry and the emissive lighting will be pushing the solver very hard.

---

<div class="post-metadata">

**Author:** ![znall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@znall](https://forums.unrealengine.com/u/znall)\
**Post date:** [February 8, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/693 "2023-02-08T16:01:29Z")

</div>

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/8/c08d82f25402549e0b12224184baac83c9f3eeb6.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/8/c08d82f25402549e0b12224184baac83c9f3eeb6.mp4)
  
Look the scene before update…  
This scene worked perfectly before the 5.1.1 update and ran at 60fps without problem or noise…I don’t understand why this happens, all the parameters are the same.

---

<div class="post-metadata">

**Author:** ![unreal\_dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@unreal\_dev](https://forums.unrealengine.com/u/unreal_dev)\
**Post date:** [February 8, 2023, 7:06pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/694 "2023-02-08T19:06:01Z")

</div>

In addition to the modifications in the 2D screen capture PR, I had to add a couple of flags to force Lumen lighting and reflections for the cube capture:

```auto
diff --git a/Engine/Source/Runtime/Renderer/Private/SceneCaptureRendering.cpp b/Engine/Source/Runtime/Renderer/Private/SceneCaptureRendering.cpp
index 8967cdbddaa..c295279af3c 100644
@@ -1153,6 +1154,8 @@ void FScene::UpdateSceneCaptureContents(USceneCaptureComponentCube* CaptureCompo
                                bCaptureSceneColor, &PostProcessSettings, 0, CaptureComponent->GetViewOwner(), faceidx);

                        SceneRenderer->ViewFamily.SceneCaptureSource = CaptureComponent->CaptureSource;
+ SceneRenderer->Views[0].FinalPostProcessSettings.DynamicGlobalIlluminationMethod = EDynamicGlobalIlluminationMethod::Lumen;
+ SceneRenderer->Views[0].FinalPostProcessSettings.ReflectionMethod = EReflectionMethod::Lumen;

                        FTextureRenderTargetCubeResource* TextureRenderTarget = static_cast<FTextureRenderTargetCubeResource*>(TextureTarget->GameThread_GetRenderTargetResource());
                        FString EventName;

```

Curious I didn’t see a performance drop with Lumen turned on.

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [February 8, 2023, 8:55pm UTC](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108/695 "2023-02-08T20:55:11Z")

</div>

Huh, that is indeed baffling. I think filing a bug report would be in order, assuming all other variables are unchanged.

[Previous page](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108.md?page=33)

[Next page](https://forums.unrealengine.com/t/lumen-gi-and-reflections-feedback-thread/501108.md?page=35)
