# Localized-IBL implementation

**URL:** <https://forums.unrealengine.com/t/localized-ibl-implementation/112710>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [June 25, 2018, 9:45pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710 "2018-06-25T21:45:17Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![Sn\_a\_ke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sn\_a\_ke](https://forums.unrealengine.com/u/Sn_a_ke)\
**Post date:** [April 2, 2019, 2:43pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/163 "2019-04-02T14:43:48Z")

</div>

> [@scha](#):
>
> Because everybody will have real time raytracing on gpu soon, including real time GI?

ray tracing is almost useless for global illumination …  
there is not enough power even for top-end video cards, while medium-sized player configurations will not be enough.  
you can not even think about it in the coming years (5-10).  
I think for ray tracing there will be more intellectual applications than letting beams in all directions and counting every rebound for light…

---

<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:** [April 2, 2019, 2:59pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/164 "2019-04-02T14:59:28Z")

</div>

> [@scha](#):
>
> Could you put those captures in dynamically loaded sublevels, like lighting scenarios?

I’ve never tried this but I doubt probes have any loading/unloading capabilities

> [@Sn\_a\_ke](#):
>
> ray tracing is almost useless for global illumination …

it’s actually happening already. just look up UE4 RTGI and you’ll see what’s already possible.  
but I agree from “what’s just now possible on high end hardware” until “technology is mature and the majority of users have adopted it” we are still quite some years away

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [April 2, 2019, 4:46pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/165 "2019-04-02T16:46:53Z")

</div>

> [@](#):
>
> I’ve never tried this but I doubt probes have any loading/unloading capabilities

I tried now, it seems to work. Reflection captures data is stored in the same “BuilrData” uasset file as the lightmaps, and the light scenarios basically are mede to load a “builtdata” to a level. So, I created 2 light scenarios for my Japanese rooms and just put a capture in each. One capture has an offset and the brightness different from the other. And it looks like on screenshots (1 is without light scenarios, 2 and 3 is with different scenarios enabled.) It’s very easy to setup, you can try that yourself.

---

<div class="post-metadata">

**Author:** ![Nick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nick](https://forums.unrealengine.com/u/Nick)\
**Post date:** [April 8, 2019, 5:45pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/166 "2019-04-08T17:45:58Z")

</div>

> [@](#):
>
> alright the pull request was finally rejected: [https://github.com/EpicGames/UnrealEngine/pull/4856](https://github.com/EpicGames/UnrealEngine/pull/4856)
> 
> I mean what :rolleyes:

Well that’s frigging aggravating. Volumetric lightmaps are \*\*not a solution as long as they don’t work with level streaming. \*\*I can’t believe the person who rejected that is so unfamiliar with the engine they don’t get that.

Right now now there’s a huge gulf in UE4s lighting when it comes to interiors that aren’t fully static or fully dynamic (which look poor), and they keep refusing to implement anything to get a decent middle ground like other engines have been using since last generation like local, controllable IBLs. You either go all static with dense lightmaps where nothing can move (unless it looks like a Scooby Doo prop that sticks out where the lighting doesn’t match well because level streaming forces you to use the old UE3 style dynamic ambient lighting tech) or your project has to run on space hardware from the future for fully raytraced lighting that can’t run on modern consoles or the bulk of Steam users’ mid range PCs.

This solution or if they bothered to support volumetric lightmaps to implement level streaming would have filled in that middle ground between fully dynamic and fully static to be in line with other engines, but I guess they stubbornly don’t want anyone targeting that spec without investing in rewriting parts of the engine in a new branch.

God this is stupid and frustrating.

---

<div class="post-metadata">

**Author:** ![scrcro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scrcro/32/1008648_2.png) [@scrcro](https://forums.unrealengine.com/u/scrcro)\
**Post date:** [April 8, 2019, 8:56pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/167 "2019-04-08T20:56:50Z")

</div>

I guess on the upside, even if they aren’t going to implement it as an official engine feature you can always use 's branch instead.

---

<div class="post-metadata">

**Author:** ![JoeWintergreen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joewintergreen/32/1194565_2.png) [@JoeWintergreen](https://forums.unrealengine.com/u/JoeWintergreen)\
**Post date:** [April 9, 2019, 3:03am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/168 "2019-04-09T03:03:19Z")

</div>

Wow, that really really sucks. I wish you could appeal a pull request. I really was expecting this to be accepted.

Any level where it’s not feasible to have any baked lighting, but which has interiors/non-broad-daylight areas, could have benefited hugely from this. Volumetric lightmaps have nothing to do with anything! Plus, volumetric lightmaps don’t work with level streaming!

---

<div class="post-metadata">

**Author:** ![IOchair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IOchair](https://forums.unrealengine.com/u/IOchair)\
**Post date:** [April 9, 2019, 6:30am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/169 "2019-04-09T06:30:36Z")

</div>

Just tried SSGI in the dev-rendering branch here.  
SSGI provide an awesome AO and screen-space indirect diffuse effect. But it still failed at the interior case sometimes.  
If we can have a fallback to IBL diffuse when SSGI indirect diffuse failed, it will just like a dream come true.

---

<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:** [April 9, 2019, 7:03am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/170 "2019-04-09T07:03:09Z")

</div>

> [@JoeWintergreen](#):
>
> Wow, that really really sucks. I wish you could appeal a pull request. I really was expecting this to be accepted.
> 
> Any level where it’s not feasible to have any baked lighting, but which has interiors/non-broad-daylight areas, could have benefited hugely from this. Volumetric lightmaps have nothing to do with anything! Plus, volumetric lightmaps don’t work with level streaming!

This also applies to big landscape scenes. Everyone knows lightmass will c-rap itself above a certain landscape size, and the runtime memory cost is also huge.

So I really don’t get how Volumetric Lightmaps help with anything except a small landscape with no foliage and no grass (basically no use case out there)

---

<div class="post-metadata">

**Author:** ![DennG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DennG](https://forums.unrealengine.com/u/DennG)\
**Post date:** [April 9, 2019, 7:41am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/171 "2019-04-09T07:41:44Z")

</div>

> [@IOchair](#):
>
> Just tried SSGI in the dev-rendering branch here.  
> SSGI provide an awesome AO and screen-space indirect diffuse effect. But it still failed at the interior case sometimes.  
> If we can have a fallback to IBL diffuse when SSGI indirect diffuse failed, it will just like a dream come true.

Awesome. Please provide some screenshots for SSGI.. I’d really like to see it.

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [April 9, 2019, 8:09am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/172 "2019-04-09T08:09:43Z")

</div>

I see I’m not the only one who didn’t understood their answer. Being a noob I hoped there is some hidden checkbox somewhere 🙂

I’m wondering if the IBL can be packed as as plugin?

@ do you plan to make 4.22 version?

---

<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:** [April 9, 2019, 9:04am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/173 "2019-04-09T09:04:29Z")

</div>

> [@scha](#):
>
> I’m wondering if the IBL can be packed as as plugin?

no. the changes I made to the engine are completely wired into the rendering, which isn’t in any way extensible as a plugin

> [@scha](#):
>
> @ do you plan to make 4.22 version?

yes I am. I already got it working locally and it was easy. Then I got caught up with trying to improve it by adding shadow/occlusion, and other real life stuff came in so I left it aside for a bit.  
I could update the 4.22 as it is with the same features, but mostly it’s just that updating the branch (rebasing it to the latest, etc) is just really time-consuming and I haven’t got around to do it yet

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [April 9, 2019, 9:34am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/174 "2019-04-09T09:34:29Z")

</div>

> [@](#):
>
> no. the changes I made to the engine are completely wired into the rendering, which isn’t in any way extensible as a plugin

Is this new “render graph” thingie can help in cases like this one? (btw, i have no idea what it is, just remembered reading somewhere you could have modular rendering pipeline with it or something)

> [@](#):
>
> yes I am. I already got it working locally and it was easy. Then I got caught up with trying to improve it by adding shadow/occlusion, and other real life stuff came in so I left it aside for a bit.  
> I could update the 4.22 as it is with the same features, but mostly it’s just that updating the branch (rebasing it to the latest, etc) is just really time-consuming and I haven’t got around to do it yet

Great, I will beta test it when it’s released 🙂

---

<div class="post-metadata">

**Author:** ![IOchair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IOchair](https://forums.unrealengine.com/u/IOchair)\
**Post date:** [April 9, 2019, 9:54am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/175 "2019-04-09T09:54:58Z")

</div>

> [@](#):
>
> Then I got caught up with trying to improve it by adding shadow/occlusion, and other real life stuff came in so I left it aside for a bit.

AO probe?Great idea!  
I must admit that at some point I also dream of applying the principle of SSGI to the cubemap.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe2d247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe2d247](https://forums.unrealengine.com/u/anonymous_user_fbe2d247)\
**Post date:** [April 9, 2019, 10:28am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/176 "2019-04-09T10:28:31Z")

</div>

Force reflection captures to use fully rough material. Done all in the base pass.  
[https://github.com/EpicGames/UnrealEngine/commit/af569c3471efbf8de904304b9a333d5a3fd5b566](https://github.com/EpicGames/UnrealEngine/commit/af569c3471efbf8de904304b9a333d5a3fd5b566)

These changes might be useful for your implementation.

---

<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:** [April 9, 2019, 1:03pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/177 "2019-04-09T13:03:32Z")

</div>

> [@scha](#):
>
> Is this new “render graph” thingie can help in cases like this one? (btw, i have no idea what it is, just remembered reading somewhere you could have modular rendering pipeline with it or something)

I don’t think the new render graph is making the rendering pipeline more modular in a way that can be plugin’d, at least not yet.  
I hear Unity is great at this btw.

> [@IOchair](#):
>
> AO probe?Great idea!  
> I must admit that at some point I also dream of applying the principle of SSGI to the cubemap.

yeah would be nice

> [@Kalle\_H](#):
>
> Force reflection captures to use fully rough material. Done all in the base pass.  
> [https://github.com/EpicGames/UnrealEngine/commit/af569c3471efbf8de904304b9a333d5a3fd5b566](https://github.com/EpicGames/UnrealEngine/commit/af569c3471efbf8de904304b9a333d5a3fd5b566)
> 
> These changes might be useful for your implementation.

yep, that’s part of my code since some time ago, thanks 🙂

 ![pull5109.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/9/f934e67ef9b693814cc6c5943c2f1cb5b3b7041d.png)

but now I see the code was changed by Epic. but well, since they integrated your PR I can stick to this code until they merge it, then eventually (4.23 maybe) I’ll get the conflict and update to the new function.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe2d247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe2d247](https://forums.unrealengine.com/u/anonymous_user_fbe2d247)\
**Post date:** [April 9, 2019, 1:55pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/178 "2019-04-09T13:55:50Z")

</div>

> [@](#):
>
> I don’t think the new render graph is making the rendering pipeline more modular in a way that can be plugin’d, at least not yet.  
> I hear Unity is great at this btw.
> 
> yeah would be nice
> 
> yep, that’s part of my code since some time ago, thanks 🙂
> 
> ![pull5109.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/9/f934e67ef9b693814cc6c5943c2f1cb5b3b7041d.png)
> 
> but now I see the code was changed by Epic. but well, since they integrated your PR I can stick to this code until they merge it, then eventually (4.23 maybe) I’ll get the conflict and update to the new function.

Epic change also optimized reflection capture rendering by bit because it now skips applying reflection captures when rendering reflection captures.

---

<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:** [April 14, 2019, 3:45am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/179 "2019-04-14T03:45:02Z")

</div>

> [@IOchair](#):
>
> AO probe?Great idea!  
> I must admit that at some point I also dream of applying the principle of SSGI to the cubemap.

> [@](#):
>
> (…)Then I got caught up with trying to improve it by adding shadow/occlusion, and other real life stuff came in so I left it aside for a bit.  
> I could update the 4.22 as it is with the same features, but mostly it’s just that updating the branch (rebasing it to the latest, etc) is just really time-consuming and I haven’t got around to do it yet

Any chance you’ve already found a way to store/read scene depth information from reflection captures? This seems like something that could open up a huge number of interesting possibilities.

---

<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:** [April 14, 2019, 7:40am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/180 "2019-04-14T07:40:57Z")

</div>

> [@amoser](#):
>
> Any chance you’ve already found a way to store/read scene depth information from reflection captures? This seems like something that could open up a huge number of interesting possibilities.

I did already. what kind of interesting possibilities? 🙂

---

<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:** [April 14, 2019, 12:43pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/181 "2019-04-14T12:43:39Z")

</div>

alright the 4.22 version is live: [https://github.com//UnrealEngine/tree/4.22](https://github.com//UnrealEngine/tree/4.22)

at this point it contains no further improvements, those might come later

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [April 14, 2019, 1:15pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/182 "2019-04-14T13:15:15Z")

</div>

Great! Downloading.  
We just made a [demo](https://inugames.itch.io/modular-japanese-house-demo) with those Japanese rooms I used for testing, so I plan to rebuild it with your mod and see what it does “out of the box” 🙂  
Then if it looks good I’ll try to see if “time of day” can be supported somehow (light scenario maybe)

[Previous page](https://forums.unrealengine.com/t/localized-ibl-implementation/112710.md?page=8)

[Next page](https://forums.unrealengine.com/t/localized-ibl-implementation/112710.md?page=10)
