# Screen Space Global Illumination (SSGI)

**URL:** <https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [March 10, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392 "2019-03-10T21:24:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bladerskb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bladerskb](https://forums.unrealengine.com/u/Bladerskb)\
**Post date:** [March 10, 2019, 9:24pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/1 "2019-03-10T21:24:28Z")

</div>

I haven’t heard any info on this. What’s the status, is this coming out of development and making the next release?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/e/0dec505b12e386c31f690ac6e6992a8068708941.jpeg "Unreal Engine SSGI") ](https://www.youtube.com/watch?v=0Rk5p7z9xtE)

Timelapse

[video][https://twitter.com/i/status/1102033507386314752[/video]](https://twitter.com/i/status/1102033507386314752%5B/video%5D)

---

<div class="post-metadata">

**Author:** ![rosegoldslugs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rosegoldslugs](https://forums.unrealengine.com/u/rosegoldslugs)\
**Post date:** [March 10, 2019, 9:52pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/2 "2019-03-10T21:52:05Z")

</div>

It’s currently available in the dev-rendering branch and will be in 4.23 per Tim. It’s been pretty fun to play around with. It takes the scene color, so you get GI from pretty much every material, but it’s still a bit expensive and you need a fairly high number of rays, otherwise TAA doesn’t do a good enough job at denoising.

The first one is with a baked skylight and a dynamic sun

---

<div class="post-metadata">

**Author:** ![Bladerskb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bladerskb](https://forums.unrealengine.com/u/Bladerskb)\
**Post date:** [March 12, 2019, 12:30am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/3 "2019-03-12T00:30:35Z")

</div>

wow thats actually pretty cool. I wonder why there isn’t more buzz around this…

---

<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:** [March 12, 2019, 12:54am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/4 "2019-03-12T00:54:38Z")

</div>

Definitely a nice addition. Just be aware that it comes with all the limitations and artifacts you’d expect from a screen space solution.

---

<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:** [March 12, 2019, 9:23am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/5 "2019-03-12T09:23:16Z")

</div>

> [@Bladerskb](#):
>
> wow thats actually pretty cool. I wonder why there isn’t more buzz around this…

Because it only works well for exterior scenes and it’s expensive. Seems pretty situational in it’s usefulness.

---

<div class="post-metadata">

**Author:** ![Pottuvoi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pottuvoi](https://forums.unrealengine.com/u/Pottuvoi)\
**Post date:** [March 12, 2019, 11:23am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/6 "2019-03-12T11:23:50Z")

</div>

> [@ZacD](#):
>
> Because it only works well for exterior scenes and it’s expensive. Seems pretty situational in it’s usefulness.

It works with lightmaps and it should be decent way to give some dynamic bounce for the scenes.  
Apparently it also replaces SSAO, so it is step to the right way and reduces the horrible dark corners look.

Cannot wait to get my hands on it for testing.

---

<div class="post-metadata">

**Author:** ![amoser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amoser](https://forums.unrealengine.com/u/amoser)\
**Post date:** [March 13, 2019, 8:49am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/7 "2019-03-13T08:49:13Z")

</div>

So this is really cool. I’ve been wondering whether this would be possible for a long time, since it’s a seemingly natural analogue to screen space reflections (albeit a worst case with rays traveling in every direction). I started playing around with this, and the results are indeed pretty similar to static indirect light in cases where everything is onscreen. I’ve got a bunch of thoughts, but since I’ve made no effort to look into how this particular implementation works, they may turn out to be stupid thoughts:

-Is there (or could there be?) any pre-filter/blur of the buffer that’s being sampled from, to reduce noise? It occurs to me that this might actually work with SSR as well, at least for surfaces

-Is it possible to make this effect only apply to dynamic lights, or to be toggled on a per-light basis? From my limited test, it seems like the SSGI only falls back to baked lighting for rays that “miss” the render target\*, but I haven’t found a way to make a static light used baked lighting exclusively. This would be super useful in situations where most of the lights are baked, since SSGI still doesn’t perfectly match the quality of baked lighting.

-In the same vein as how SSR and reflection captures are mixed, it would be really neat for this to be able to fall back to these [localized diffuse captures](https://forums.unrealengine.com/development-discussion/rendering/1493669-localized-ibl-implementation) in situations where baked lighting isn’t practical.

I’m hoping that this will at least reduce the number of games where even extremely bright flashlights inexplicably fail to produce any bounce lighting.

\*(edit) Actually, apparently it just applies the SSGI on top of the static indirect light. I thought this behavior was “incorrect,” but as long as the indirect occlusion component is applied to the baked lighting before the additive bounce light, the overall should be (roughly) conserved. Being able to apply the effect more selectively still seems like it would be extremely valuable.

I also notice that SSGI respects the “indirect lighting intensity” post-process value, meaning it can be used as a replacement for SSAO without any bounce lighting by setting the value to 0.

---

<div class="post-metadata">

**Author:** ![Bladerskb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bladerskb](https://forums.unrealengine.com/u/Bladerskb)\
**Post date:** [March 16, 2019, 9:46pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/8 "2019-03-16T21:46:12Z")

</div>

> [@ZacD](#):
>
> Because it only works well for exterior scenes and it’s expensive. Seems pretty situational in it’s usefulness.

seems like it and LPV is a good combination.

---

<div class="post-metadata">

**Author:** ![amoser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amoser](https://forums.unrealengine.com/u/amoser)\
**Post date:** [March 20, 2019, 6:16am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/9 "2019-03-20T06:16:03Z")

</div>

> [@Bladerskb](#):
>
> seems like it and LPV is a good combination.

I think this would work well in terms of visual fidelity, but I don’t think it would be the right combination in terms of performance.

I believe other techniques like image-based probes, volumetric lightmaps, or even raytracing would get a significant boost if they’re only applied to pixels that aren’t already accounted for by the SSGI, since their cost mostly scales with the actual number of pixels rendered. As far as I know, LPV wouldn’t be able to benefit from this, since its cost is dependent on the size of the volume, which would need to be computed in full regardless of how many pixels it affects.

---

<div class="post-metadata">

**Author:** ![Waroth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Waroth](https://forums.unrealengine.com/u/Waroth)\
**Post date:** [March 26, 2019, 5:01am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/10 "2019-03-26T05:01:13Z")

</div>

I tried it out. I threw in some emissive niagara particles and \*it just works \*(rtx didn’t…). You can tell that it’s limited to screen space but it’s nice to finally have a fast, realtime GI solution other than rtgi. I hope they add a denoiser similar to rtgi though, low light GI is extremely grainy even at Quality 4.

video: [Login • Instagram](https://www.instagram.com/p/BvcbBdxj5uI/)

[![](https://i.imgur.com/qnXxcQT.png) ](https://i.imgur.com/qnXxcQT.png)

---

<div class="post-metadata">

**Author:** ![rosegoldslugs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rosegoldslugs](https://forums.unrealengine.com/u/rosegoldslugs)\
**Post date:** [March 26, 2019, 5:37am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/11 "2019-03-26T05:37:45Z")

</div>

You can increase the number of rays and samples like with SSR, if you don’t care about performance, in ScreenSpaceDiffuseIndirect.usf. Increasing rays should improve the accuracy of the GI(around small features) and the samples will reduce the noise.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebccb018](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebccb018](https://forums.unrealengine.com/u/anonymous_user_ebccb018)\
**Post date:** [April 3, 2019, 3:39pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/12 "2019-04-03T15:39:39Z")

</div>

I really hope they include this on the next release.

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [July 11, 2019, 12:02pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/13 "2019-07-11T12:02:40Z")

</div>

According to [this post](https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1640558-unreal-engine-4-23-preview?p=1640761#post1640761), SSGI should officially appear in 4.24.  
I was hoping for 4.23, but it’s still very nice that they work on it.

---

<div class="post-metadata">

**Author:** ![rosegoldslugs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rosegoldslugs](https://forums.unrealengine.com/u/rosegoldslugs)\
**Post date:** [July 11, 2019, 3:53pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/14 "2019-07-11T15:53:37Z")

</div>

It is in 4.23, it just isn’t publicly listed. Still the same ssgi.quality cvar.

> [@Unreal Engine 4.23 Preview](https://forums.unrealengine.com/t/unreal-engine-4-23-preview/128539/27):
>
> It’s there for you to enable via console variable (like it before), but it’s not a feature we’re calling out for 4.23. Right now, it’s targeted at 4.24 and is still being worked on for performance and quality. As you’ve probably noticed, it’s still expensive to use.

​​​​​​​

---

<div class="post-metadata">

**Author:** ![amoser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amoser](https://forums.unrealengine.com/u/amoser)\
**Post date:** [July 14, 2019, 10:56am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/15 "2019-07-14T10:56:44Z")

</div>

> [@rosegoldslugs](#):
>
> It is in 4.23, it just isn’t publicly listed. Still the same ssgi.quality cvar.  
> ​​​​​​​

Although I did notice that there’s a regression in Preview 1 that completely breaks AO (in screen space, at least) when SSGI is active. I found a (\*very \*easy) fix and submitted a pull request at [https://github.com/EpicGames/UnrealEngine/pull/6032/files](https://github.com/EpicGames/UnrealEngine/pull/6032/files)

---

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [September 10, 2019, 2:30am UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/16 "2019-09-10T02:30:04Z")

</div>

Does anyone know if this feature made it into 4.23?

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [September 20, 2019, 8:38pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/17 "2019-09-20T20:38:34Z")

</div>

> [@StrangeLove13](#):
>
> Does anyone know if this feature made it into 4.23?

You can test it by typing “ssgi.quality 4” (or set the quality lower if you wish, 0 turns it off) in the console. So it’s not officially released (that’s planned for 4.24 after more optimization as far as I know), but it is here in 4.23.

---

<div class="post-metadata">

**Author:** ![VolumetricDog](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/volumetricdog/32/624243_2.png) [@VolumetricDog](https://forums.unrealengine.com/u/VolumetricDog)\
**Post date:** [September 23, 2019, 1:59pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/18 "2019-09-23T13:59:50Z")

</div>

Sry for asking but, what does it actually do?

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [September 23, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/19 "2019-09-23T15:32:20Z")

</div>

Does it work with forward shading ? In VR too ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11d606da](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11d606da](https://forums.unrealengine.com/u/anonymous_user_11d606da)\
**Post date:** [October 1, 2019, 10:36pm UTC](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392/20 "2019-10-01T22:36:54Z")

</div>

It does work in 4.23 by enabling through the CVars. However, it does not work very well with raytracing (surprise). So once SSGI is enabled, it disables your raytrace Ambient Occlusion and replaces it with its own screenspace AO - however there doesn’t seem to be a parameter to tweak that as all regular AO post process effects doesn’t change anything. The SSGI looks amazing, but it’s just not usable, basically like raytracing. In a couple of releases, combining these features will be very powerful I hope.

[Next page](https://forums.unrealengine.com/t/screen-space-global-illumination-ssgi/123392.md?page=2)
