# Separate lighting between streamed levels

**URL:** <https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740>\
**Category:** Rendering\
**Tags:** Level-Streaming, unreal-engine, Rendering, question\
**Created:** [April 12, 2015, 6:59am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740 "2015-04-12T06:59:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcelDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelDev](https://forums.unrealengine.com/u/MarcelDev)\
**Post date:** [April 12, 2015, 6:59am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/1 "2015-04-12T06:59:59Z")

</div>

Hi,

I’d like to prevent certain lights to affect other levels, which are streamed into the persistent level.

The _UDK_ used to have option like _Lighting Channels_ aswell as the option _Only Affect Same And Specified Levels_ in the light properties, which would do the job I guess, but aren’t available in the UE4 yet.

I am trying to achieve something like this:

 ![38445-lights_1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/8/0087a2d3f74c37c33348806d328cdac3aa4156c2.jpeg)

which is done by baking the lighting in each level separately, which then leads to an error, telling me to rebuilt lighting, when streaming all these into the persistent level.

If I then rebuild the lighting in the persistent level, even when trying to disable levels by toggling the visibility off in the _Levels Panel_, I get this:

 ![38446-light_unwanted_bleeding.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/c/25c5fe8431131dc8f8183495be8765d740006222.jpeg)

No _bake lighting_ error, but unwanted light bleeding from the directional light in the left box (which would be the sunlight in my real level, the other boxes would be rooms the player can enter, which should not be affected by the sunlight).

Is there any workaround for that?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 13, 2015, 4:01pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/2 "2015-04-13T16:01:12Z")

</div>

Hi railgunspecialist,

Lighting channels are not possible with UE4 due to deferred rendering.

You also need to remember that anything in the persistent level will be in any sub-levels.

For instance, you’re directional light source that is in your persistent level (“real level”) will bake into any other levels, even if they are not visible.

In order to do this, you will need to have 4 levels using your example.

- Persistent Level: Do not put anything in here that you don’t want to be visible or baked in any other sub-levels
- Level 1: Meshes and Light Red
- Level 2: Meshes and Light Green
- Level 3: Meshes and Light Blue

When you build lighting you’ll need to do these all individually. Since the persistent no longer has anything in it, you will be able to make only the level 1-3 visible and then build lighting specifically for these levels. Hide and repeat for the next level.

When all is said and done you’ll have no lighting errors.

I hope this helps,

Tim

---

<div class="post-metadata">

**Author:** ![MarcelDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcelDev](https://forums.unrealengine.com/u/MarcelDev)\
**Post date:** [April 13, 2015, 8:05pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/3 "2015-04-13T20:05:33Z")

</div>

Hi, thanks for your reply!

This is actually exactly what I already did in my example. But I have to bake the levels by opening each map individually. Which then leads to the “Lighting needs to be rebuilt” error, when playing the Persistent Level after baking them. If I try to bake the lighting of each level from the Persistent level (by hiding every level but the one I want to bake the lighting of), even through the directional light is in the Level 1 only, it still bleeds through the other two levels.

Using version 4.7.5.

My Test-Level:  
link text

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 15, 2015, 8:10pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/4 "2015-04-15T20:10:07Z")

</div>

I am able to get the lighting needs to be rebuilt. Currently there are no plans to make this functionality better supported than the first method I described. Even though there is minimal light leaking.

One way to get around this though is to use the console command for “DisableAllScreenMessages.” While the Lighting needs to be rebuilt will not be cleared, it will no longer display on the screen now.

If you know that you’re lighting has been built the way you like this can be one way to get around a “warning” message like that.

You can find more on this page with the setup to use this. [[Bug, Feedback] How do I get rid of the Lightning Needs To Be Rebuild message? - Rendering - Epic Developer Community Forums](https://answers.unrealengine.com/questions/81689/bug-feedback-how-do-i-get-rid-of-the-lightning-nee.html)

---

<div class="post-metadata">

**Author:** ![berna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@berna](https://forums.unrealengine.com/u/berna)\
**Post date:** [September 15, 2015, 7:30am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/5 "2015-09-15T07:30:45Z")

</div>

Hi,  
I’m fighting against the same problem for my level.  
I have some oversized “rooms” and want to light the areas separately.  
I’ve put all lights in streamed levels, nothing in the persistent except the streaming volumes, but I still have all lights affecting all levels when I open the main level.  
I tried both methods to build my lightmaps: doing it in the main level, hiding the sublevels one at time and opening the sublevels. Nothing works.

This is a big problem for us, because the light building is very long and we are still not able to obtain the desired effect. ☹

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 15, 2015, 5:15pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/6 "2015-09-15T17:15:23Z")

</div>

With deferred rendering it is not really possible to keep the light from affecting other areas. Using the methods touched on above is the only way, but you will still have the “lighting needs to be rebuilt” warning, although this can be overridden with the console command listed above as well.

---

<div class="post-metadata">

**Author:** ![berna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@berna](https://forums.unrealengine.com/u/berna)\
**Post date:** [September 15, 2015, 5:36pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/7 "2015-09-15T17:36:20Z")

</div>

Hi Tim… I suspected it, bu could you please clarify one thing? How having the “lighting needs to be rebuilt” warning affect performance at runtime? I always supposed that in that case UE uses a sort of dynamic ligthing… so we’ll have a lot of MIA (missing in action) fps 🙂

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 15, 2015, 5:56pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/8 "2015-09-15T17:56:52Z")

</div>

In the instance above it doesn’t affect lighting at run time because the error message generated from a workaround and no lighting actually needs to be rebuilt.

It’s also not a bug, since it’s a hacky way of getting the above method to work. If there were legitimately objects that didn’t have shadows build in the scene these would use dynamic lighting and cause performance issues.

This is a break down of how I did it above, which may or may not work in your case. It can be an involved setup.

All Lighting is Static/Stationary

4 levels/maps:

- Persistent: nothing is placed in this level
- Level 1: Couple of meshes and Red Light.
- Level 2: Couple of meshes and Blue Light
- Level 3: Couple of meshes and Green Light.

Since I knew these levels would be loaded/streamed in via my Persistent level I couldn’t just hide a level and build lighting for each with the light bleed from other levels. To get around this you can open each level individually by double-clicking on them in the Content Browser and then build lighting for each, save and close.

After this, going back to the original Persistent Level and loading in will produce the clean light builds as seen above, but the persistent level will assume lighting has not been built for these levels. It’s not going to default back to dynamic preview lighting, but the warning will be there thus the need to remove the warning with “DisableAllScreenMessages”.

I hope this make sense. 🙂

---

<div class="post-metadata">

**Author:** ![MasterOfShapes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MasterOfShapes](https://forums.unrealengine.com/u/MasterOfShapes)\
**Post date:** [March 12, 2016, 3:04am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/9 "2016-03-12T03:04:47Z")

</div>

I’m having a similar issue in 4.11 preview 7. I have an empty persistant level and have setup like you suggested, but I’m getting a performance hit even though on the individual levels im at 120fps 8ms draw. Pretty much my lighting looks correct but when I start the level I get a lighting unbuilt error and I drop frame rate by about 30% is there a way to tell if I am silenty switching to dynamic preview lighting? My setup is

1. persistent level -empty minus my main character
2. Room level- indoor baked lighting directional light set to stationary and a few static lights and a skylight.
3. Desert level-outdoor baked lighting directional light and a sky light

Im trying to do a day night transistion from the room level to the desert level

Thanks

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [March 21, 2016, 6:31pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/10 "2016-03-21T18:31:22Z")

</div>

I mention the warning being displayed in one of the earlier posts. When you build lighting by opening these levels independently, the persistent level can’t know that lighting was already built for these sub-levels, so you’ll get the warning. If you know that it’s working the way you’d like you can always disable the warning by using the CVar “DISABLEALLSCREENMESSAGES” to not have the warning show when you play your game.

You can also use the command DumpUnbuiltLightInteractions to see if you see anything in the output log window that would indicate some issues.

One thing you need to keep in mind when trying to get around the lighting system this way is that you are 1) breaking PBR workflow and 2) this is not an intended workflow so you are likely to run into some or many issues doing this.

Don’t forget that the Post Process Volumes in your level can be a powerful tool as well since you can directly use these to control your baked Global Illumination by adjusting the color and intensity.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5047b908](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5047b908](https://forums.unrealengine.com/u/anonymous_user_5047b908)\
**Post date:** [March 23, 2017, 8:02pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/11 "2017-03-23T20:02:11Z")

</div>

Hi Tim,

I had a very similar issue to what Railgunspecialist initially described.

And a few months back I saw this post, and tested your solution of separating the different bakes per level and then toggle the visibility of those levels until everything is baked.  
That solution worked fine in 4.13 but with the update to 4.14 it seems that it no longer works!

If you download the lighttest.zip (that railgunspecialist posted), opened it with 4.14 and do what you described previously you will see what I am talking about.  
Using the persistent to bake light per level seems to work. But once you make all levels visible, only the last level baked will be correct (all the other ones will be blacked out).

Does this new behavior have anything to do with the introduction of the BuildData file?

Do I need to go back to 4.13, to be able to properly bake light per level?

Any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![AnaCarolina\_Art](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnaCarolina\_Art](https://forums.unrealengine.com/u/AnaCarolina_Art)\
**Post date:** [April 26, 2017, 6:35pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/12 "2017-04-26T18:35:56Z")

</div>

Hope this helps 🙂

- Remove any lights from the persistent  
level
- Put all lighting that will affect  
each sub-level in its own sub-level
- Put each sky sphere in its own level
- Open each sublevel map (from the  
content browser)
- In each one, add the proper light  
level and sky level as a sub-level
- Build each map and save
- The baked lighting will show up on  
“Main” for each sub level.
- You won’t need to have any light  
sub-levels in “Main” level (must test  
and decide whether or not to remove)

IG: AnaCarolina\_Art  
ArtStation: [https://www.artstation.com/artist/anacarolinapereira](https://www.artstation.com/artist/anacarolinapereira)

---

<div class="post-metadata">

**Author:** ![Hyagohhn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hyagohhn](https://forums.unrealengine.com/u/Hyagohhn)\
**Post date:** [September 29, 2018, 5:06am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/13 "2018-09-29T05:06:24Z")

</div>

I have the exact same problem, I think that would be great if we could specify volumes that the lights affect or levels. I have to do a four plan house and 32gb of ram isn’t enought to build everything together.

---

<div class="post-metadata">

**Author:** ![anthonyr87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anthonyr87](https://forums.unrealengine.com/u/anthonyr87)\
**Post date:** [October 7, 2018, 3:17am UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/14 "2018-10-07T03:17:18Z")

</div>

how can epic have no plans to fix something that is such a major handicap? im making a vr game that relies on baked lighting and whenever a new level streams in it destroys the baked lighting in other areas. its crazy to think that unreal has no ability to lock baked lighting so they dont bleed over into other sub levels, yet that is reality. this is a major handicap to what we are trying to do

---

<div class="post-metadata">

**Author:** ![WellWeldedGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wellweldedgames/32/1002652_2.png) [@WellWeldedGames](https://forums.unrealengine.com/u/WellWeldedGames)\
**Post date:** [November 18, 2018, 2:47pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/15 "2018-11-18T14:47:29Z")

</div>

What about reflection captures? Should they be putted in geometry or in lighting sub- levels?

---

<div class="post-metadata">

**Author:** ![Annwn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Annwn](https://forums.unrealengine.com/u/Annwn)\
**Post date:** [November 20, 2018, 7:24pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/16 "2018-11-20T19:24:19Z")

</div>

The solution to not getting the “lighting needs to be rebuild error” is that once you’ve built your lighting separately, uncheck “affects world” on each light.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2a795e73](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2a795e73](https://forums.unrealengine.com/u/anonymous_user_2a795e73)\
**Post date:** [April 11, 2022, 2:07pm UTC](https://forums.unrealengine.com/t/separate-lighting-between-streamed-levels/314740/17 "2022-04-11T14:07:25Z")

</div>

Hello . just want to ask if you ever bumped into this problem ? I have multiple levels. main level for house and 4 levels for grass and foliage . I also have level which contains all the lights ( directional, sky, spot, rec ) . on my main level I have a movable objects ( doors ) I set this to movable because I want it to be interactable within click . I also set detail cell in world settings to 2 so that the appearance of the movable objects looks like a static object right after bake . the problem is after I baked all of the levels one by one and streaming them together, the movable objects ( even the third person mesh which is obviously movable) turned back to its bright appearance . please refer to the image below .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/d/4dd132c7acf4f91e1289e7d2e42ad24b759597fd.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/7/ef7708daa16319a20e2c1bd59c1910cd9e149817.jpeg)

have a wonderful day
