# 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:** 8

<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:** [March 21, 2019, 3:00pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/143 "2019-03-21T15:00:48Z")

</div>

if I remember correctly, you can still mark your door mesh actors’ component to not be “visible in reflection captures” so they will simply not be part of the capture

---

<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:** [March 21, 2019, 3:30pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/144 "2019-03-21T15:30:25Z")

</div>

Another thing I noticed with those translucent paper doors, when the capture overlap them they become dark. It looks like IBL will not check if it’s translucent or not right? For example, 2 doors in the middle are inside reflection capsule box:

---

<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:** [March 21, 2019, 3:41pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/145 "2019-03-21T15:41:33Z")

</div>

Btw, I just realized I said something wrong. I said they are “translucent” but in fact they are opaque subsurface! Sorry.

---

<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:** [March 21, 2019, 4:18pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/146 "2019-03-21T16:18:04Z")

</div>

Another thing, can you rebuild reflection captures at runtime?

---

<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:** [March 21, 2019, 4:22pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/147 "2019-03-21T16:22:23Z")

</div>

the IBL won’t check anything, it will just blend the skylight vs the probe cubemap  
I never really tried using subsurface materials but I can see how they behave when I make the 4.22 port, so I’ll probably understand better the problem you’re having

---

<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:** [March 21, 2019, 4:29pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/148 "2019-03-21T16:29:12Z")

</div>

> [@scha](#):
>
> Another thing, can you rebuild reflection captures at runtime?

no this doesn’t do anything in that regard.  
captures cannot be built at runtime because on cooked builds the engine expects the captures to come from a static texture that’s built into the level. there’s other threads that discuss this

---

<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 1, 2019, 2:06pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/149 "2019-04-01T14:06:04Z")

</div>

alright the pull request was finally rejected: [https://github.com/EpicGames/UnrealEngine/pull/4856](https://github.com/EpicGames/UnrealEngine/pull/4856)

TL;DR:

> [@](#):
>
> There were a couple reasons that were provided:
> 
> - We have a volume lightmap that can already fix some of these issues (static baked lighting, dynamic sky/sun).
> - This would add another option that has the potential to confuse artists about what is needed to achieve their visual goals.

I mean what :rolleyes:

---

<div class="post-metadata">

**Author:** ![Nerdsbeware](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nerdsbeware/32/897578_2.png) [@Nerdsbeware](https://forums.unrealengine.com/u/Nerdsbeware)\
**Post date:** [April 1, 2019, 2:10pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/150 "2019-04-01T14:10:09Z")

</div>

Wow… that’s disappointing. This would have been an excellent addition.

edit: and I mean, come on, volume light mapping can’t even be streamed in and out like normal lightmaps so how does that work with dynamic sun?

---

<div class="post-metadata">

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

</div>

> [@](#):
>
> This would add another option that has the potential to confuse artists about what is needed to achieve their visual goals.

Interesting. So no choice is better than having one.

---

<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 1, 2019, 2:17pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/152 "2019-04-01T14:17:27Z")

</div>

> [@](#):
>
> - We have a volume lightmap that can already fix some of these issues (static baked lighting, dynamic sky/sun).

What do they mean by that?

---

<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:** [April 1, 2019, 3:00pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/153 "2019-04-01T15:00:14Z")

</div>

> [@scha](#):
>
> What do they mean by that?

This: [https://docs.unrealengine.com/en-us/Engine/Rendering/LightingAndShadows/VolumetricLightmaps](https://docs.unrealengine.com/en-us/Engine/Rendering/LightingAndShadows/VolumetricLightmaps)

But it only fixes the issue where you can bake lighting.

---

<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 1, 2019, 3:56pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/154 "2019-04-01T15:56:12Z")

</div>

> [@ZacD](#):
>
> This: [Volumetric Lightmaps in Unreal Engine | Unreal Engine 5.3 Documentation](https://docs.unrealengine.com/en-us/Engine/Rendering/LightingAndShadows/VolumetricLightmaps)
> 
> But it only fixes the issue where you can bake lighting.

Sorry, maybe I don’t understand something, but if you can bake lighting you don’t need the IBL, no? I don’t understand what they mean by “static baked lighting AND dynamic sky/sun”.

---

<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:** [April 1, 2019, 4:24pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/155 "2019-04-01T16:24:48Z")

</div>

I think you could technically bake lighting in interior areas and still use a dynamic sun, I haven’t tested blending the two. Like imagine you had a game like PUBG with lots of houses but a large open map. Obviously you couldn’t bake the lighting on the terrain, but you could bake lighting within the buildings.

---

<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 1, 2019, 4:33pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/156 "2019-04-01T16:33:59Z")

</div>

> [@ZacD](#):
>
> I think you could technically bake lighting in interior areas and still use a dynamic sun, I haven’t tested blending the two. Like imagine you had a game like PUBG with lots of houses but a large open map. Obviously you couldn’t bake the lighting on the terrain, but you could bake lighting within the buildings.

I see. I wonder if there is some documentation on that, because i don’t really understand how to use baked light and the movable light together. I don’t really understand if movable skylight will use lightmaps correctly. Also, how it works with world composition (for large world). We tried something like this: [https://www.youtube.com/watch?v=oz9oRyuJTfs](https://www.youtube.com/watch?v=oz9oRyuJTfs) , but it uses 2 skylights in the same level, probably will break something.

---

<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 1, 2019, 9:45pm UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/157 "2019-04-01T21:45:05Z")

</div>

interesting.

so it seems you can use a Stationary SkyLight and a Movable DirectionalLight together. After baking the lighting you’ll get the skylight baked into lightmaps + volumetric lightmaps, but you’ll be free to change the SkyLight color+intensity (since it’s stationary), as well as the DirectionalLight entirely (since it’s movable)

here’s a quick experiment with a cave entrance. the Skylight is fully visible outside with a natural transition towards the inside.

With The Skylight being Stationary I could change the color+intensity to simulate different times of day. And since the DirectionalLIght is fully dynamic it could be a rotating sun light.

[![](https://i.imgur.com/LSTIuBj.gif) ](https://i.imgur.com/LSTIuBj.gif)

this setup seems useful for mostly static scenes with changing lighting conditions, which is really the same setup that the Localized IBLs work best at

---

<div class="post-metadata">

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

</div>

> [@](#):
>
> interesting.
> 
> so it seems you can use a Stationary SkyLight and a Movable DirectionalLight together. After baking the lighting you’ll get the skylight baked into lightmaps + volumetric lightmaps, but you’ll be free to change the SkyLight color+intensity (since it’s stationary), as well as the DirectionalLight entirely (since it’s movable)
> 
> here’s a quick experiment with a cave entrance. the Skylight is fully visible outside with a natural transition towards the inside.
> 
> With The Skylight being Stationary I could change the color+intensity to simulate different times of day. And since the DirectionalLIght is fully dynamic it could be a rotating sun light.
> 
> [https://i.imgur.com/LSTIuBj.gif](https://i.imgur.com/LSTIuBj.gif)
> 
> this setup seems useful for mostly static scenes with changing lighting conditions, which is really the same setup that the Localized IBLs work best at

That does’t change the reflection environment though, does it? Meaning that even though the diffuse lighting might be correct the specular reflections would be wrong.

---

<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, 6:46am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/159 "2019-04-02T06:46:18Z")

</div>

> [@jonimake](#):
>
> That does’t change the reflection environment though, does it? Meaning that even though the diffuse lighting might be correct the specular reflections would be wrong.

that is correct. but the same applies to Localized IBL with a rotating DirectionalLight - the rotating sun won’t modify the IBL  
(unless you try the trick of capturing several probes per time-of-day with different lighting and blending them in/out as the time cycle goes, but you’ll quickly reach the 341 probe limit)

---

<div class="post-metadata">

**Author:** ![eobet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eobet/32/465239_2.png) [@eobet](https://forums.unrealengine.com/u/eobet)\
**Post date:** [April 2, 2019, 8:45am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/160 "2019-04-02T08:45:32Z")

</div>

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

Very disappointing. So both Unity and Unreal have very poor real-time gi, and in both cases, the community is trying to make up for it while the official channels seem to be just relying on Nvidia to do the work for them?

I don’t get this on Epic’s part, because they want to be AAA and many AAA titles have real-time GI today.

---

<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, 10:00am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/161 "2019-04-02T10:00:19Z")

</div>

> [@eobet](#):
>
> Very disappointing. So both Unity and Unreal have very poor real-time gi, and in both cases, the community is trying to make up for it while the official channels seem to be just relying on Nvidia to do the work for them?
> 
> I don’t get this on Epic’s part, because they want to be AAA and many AAA titles have real-time GI today.

just to be double clear: my Localized IBL system does not produce real-time GI in any way. it relies on pre-baked probes that cannot be recomputed at runtime.

---

<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, 10:23am UTC](https://forums.unrealengine.com/t/localized-ibl-implementation/112710/162 "2019-04-02T10:23:51Z")

</div>

> [@eobet](#):
>
> I don’t get this on Epic’s part, because they want to be AAA and many AAA titles have real-time GI today.

Because everybody will have real time raytracing on gpu soon, including real time GI? (\<- btw, that’s my noob guess)

> [@](#):
>
> … but you’ll quickly reach the 341 probe limit

Could you put those captures in dynamically loaded sublevels, like lighting scenarios?

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

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