Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Who can explain of "Lighting Scenario" feature ?

Please anybody explain of "Lighting Scenario" feature... How it works? How to setup, how to use? Thanks

Product Version: UE 4.14 Preview
more ▼

asked Oct 22 '16 at 12:00 PM in Using UE4

avatar image

Pirate Tony
93 4 8 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Tony,

If you've used Level streaming this is a very similar process to that. Not very hard to pick up on.

  1. Create your level with your geometry for starters. Then open the Levels panel (Window > Levels)

  2. Make a sub-level named "Day" or whatever type of lighting scenario you want. Do the same for a second level for "Night" or whatever you'd like.

  3. In the Level's panel, Right-click on your Day and Night levels and select Lighting Scenario > Change to Lighting Scenario.

  4. Hide one of the levels for Day/Night.

  5. In this level add your lights and things needed for day light settings. (In my example, I added a Skylight, Directional Light, and BP_SkySphere).

  6. Build Lighting for this scenario. With the Night Level visibility turned off (click the visibility eye). You'll get a warning about building with a hidden level. Click Yes, so it'll build lighting with the other hidden and then click the Build in button in the next warning. The lighting Build will now commence.

  7. Once the Light Build finishes. Hide the Day Level and Unhide the Night level. Add your Lights and setup for the night lighting here. Build lighting and do the same things from step 6.

  8. Once that completes you now have the lighting scenarios for both set up for use.

  9. Open the Persistent Level Blueprint and use the Load Stream Level and Unload Stream Level nodes to load and unload the Day/Night levels. The lighting data for each is carried with them.

In the end, you should see something similar to this for the lighting changes if you've set up a day/night switch.

alt text

The benefit here is that with a lighting scenario you can build the static lighting for a level and it's only loading the lightmap data and not having to switch out the environment meshes or do some form of hacky level tricks to get different lighting scenarios.

Only one lighting scenario should be loaded at a time.

I hope this helps and if you have any follow-up questions something isn't working exactly for you feel free to ask.


EDIT: You don't need to hide the levels when you go to build lighting. If both are shown it will build them separately. The only time you need to hide is when you're adding lighting to these specific Scenarios. It makes it easier to see what you've got with the preview lighting.

daynight.gif (252.0 kB)
more ▼

answered Oct 24 '16 at 09:08 PM

avatar image

Tim Hobson ♦♦ STAFF
49.4k 884 87 861

avatar image Pirate Tony Oct 24 '16 at 09:56 PM

That is what i need. Very good explanation. Thank you so much.

avatar image huanghuihu Nov 18 '16 at 05:54 AM

Thx!That's very clear!

avatar image enop_astorm Feb 03 '17 at 06:14 AM

Thanks!. There is one more question.

When using level streaming and light scenario at the same time, When is the non-streamed level's lightmap loaded?

At switching light scenario? or at loading the non-streamed level?


avatar image Pirate Tony Feb 03 '17 at 09:39 AM

It works only with streaming methods. Few Levels used like lightmap switch for another unhidden levels. Be care - it consume more memory.

avatar image Tim Hobson ♦♦ STAFF Feb 03 '17 at 02:53 PM

Both are loaded and just switched when called. As PirateTony mentions it will consume more memory, so you have to be careful.

avatar image gelliott Apr 05 '17 at 09:02 PM

Hi Tim. I have 3 Lighting Scenarios in my level. When I bake with all of them turned on the scenarios end up looking different than if I turn each on and bake individually. Mostly brighter.

Each lighting scenario currently contains a SkyLight and a directional light as well as Height Fog and a Skydome static mesh since those change values with the different times of day and the sky dome contributes to the SkyLight capture.

In each scenario the directional light has different rotation, intensity and color, The Skylight has different intensity and indirect lighting intensity.

I'll try and put together a repro case but maybe you know of something I'm doing with these that is incorrect - like having "non-lights" in my lighting scenarios for instance.

avatar image Jordan.Harvey Feb 11 '17 at 07:27 AM

Will this method only work with baked lighting? What if I have skeleton meshes animating through a scene that require dynamic lighting? WIll the dynamic lights from a hidden level still interact with the active level? I seem to be having some funny issues with the sky light in my scene. I haven't quite nailed down what it is just yet, but this information is very helpful. Thanks for the response here, coming from a VFX lighting background I can see some really great potential in the new persistent level/lighting scenario workflow.

avatar image Tim Hobson ♦♦ STAFF Feb 11 '17 at 07:23 PM


The idea behind these Lighting Scenarios was a way to use the same geometry for the level with different static lighting without having to make a copy of the level. That's the main benefit of lighting scenarios here. With dynamic lighting you could really just use a sub-level that houses your different dynamic lights and swap those out. That's not to say you cannot just put these dynamic lights in your lighting scenarios either, but again, the original purpose of them was to easily swap out static lighting for the level's geometry.

avatar image kaddouri mohamed Feb 23 '17 at 09:21 PM

hi tim and thanks for the explanation, but i tryed what you said and it works in the viewport when toggling on and off sublevels but in game it load the night scenario instead of day any idea why?

avatar image zaksi Apr 13 '17 at 08:47 AM

I did this and there are no Volume Lighting Samples for either the main level or the sub-levels. And I have movable objects in the scene, that are independent from the sub-levels. Since the Volume lighting samples are not generated the movable objects look completely dark.

avatar image Prouticus Apr 24 '17 at 04:25 PM

Hi Tim - is it possible to use Lighting Scenarios in combination with World Composition? We're not seeing the "Lighting Scenarios" option in the right-click menu in the Layers tab.

avatar image neutraldigital Apr 26 '17 at 05:07 PM

When doing lighting scenarios, which world settings are used? The ones on the main level or the ones on the Lighting scenario level. In robot recall it seems the one on the main level is used , but practically it would be better if the ones on the Lighting scenario level are used. Anyone knows about this?

avatar image zaksi Apr 26 '17 at 05:25 PM

I'm pretty sure that the main level's world settings are used. I also think that you can bake the lighting independently for each level (using different world settings for each level) and then make them lighting scenario sublevels. However I cannot confirm the latter, since I'm not at the PC atm.

avatar image Panda Studios May 13 '17 at 04:49 PM

I've just tried this, with 6 simple static points lights per level, however upon building the second level after the first level it invalidates the first level. So I constantly have to rebuild the other level. Anyone ever had this and knows how to solve that?

UE 4.15

Edit: If i build with both on it still tells me to build lighting in one of the two.

avatar image pmlvl Mar 07 '18 at 11:40 PM

Thank You!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question