x

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"

UE4 Lighting scenario baking with multiple streaming sub-levels

Hi there,

I am trying to bake multiple levels with lighting scenario, but the levels don't bake at all. I put the lights and other non geometry stuff in persistent level, the sub levels consists of individual buildings, exterior landscape and interior apartments. The interior have their lights, except sun and sky lights, in their own levels.

After enabling Lighting Scenario and setting the sub-levels streaming method to blueprint no matter what I do none of the sub-levels get bake. Is there something I am doing wrong or is there a workaround for this. Any help is appreciated.

Product Version: UE 4.14
Tags:
more ▼

asked May 15 '18 at 10:12 AM in Using UE4

avatar image

nitron64
8 1 2 9

avatar image davi211 Apr 01 '19 at 02:59 PM

Hello, I know it has been a while, but I have a similar problem as you had. I have a small flat with 5 rooms. Each room could have two states (lighting scenarios) and at the start of the game, I need to select them. but if I activate all rooms the engine will throw an error that there are multiple lighting scenarios active at the same time, even though they don't really overlap as they are actually different rooms in different sublevels. How did you fix yours? any chance you would know a solution for my case?

Many thanks

avatar image nitron64 Apr 01 '19 at 06:05 PM

I am guessing the two lighting scenarios are day and night. For that I would have done something like this.

  1. Move all geometry to the persistent level.

  2. Move the lights used in first lighting scenario(Daylight) to a sub-level and same with the second lighting scenario(NightLight), and change the streaming method to blueprint.

  3. Set both sub-levels as lighting scenario and bake the lighting. Ignore the Multiple skylight error.

  4. Switch between the two lighting scenario through persistent level Blueprint.

avatar image davi211 Apr 01 '19 at 06:13 PM

Hi, thanks so much for the answer I need to preset the work and I'm kind of stuck on this ^^', unfortunately, I can't really follow your advice: Here is my situation, is not day and night, each room of the flat has two states in one everything is nice and organised and the second one it's all messy and dirty. At the start of the game, the room state is selected randomly. therefor I can't really move the room content in the persistent level as their content has to vary. Any Idea what I could do?

avatar image nitron64 Apr 01 '19 at 07:12 PM

By states are you referring to objects position and/or location inside each room which is randomly placed?

In a given scene, only one lighting scenario can be active at a time. You don't have to move your objects to persistent level but you will have to move your dirty and clean lights to their own sub-levels. You can only switch between those two sub-levels not the levels containing your objects as lighting scenario is only meant for switching between different type of lighting setup. Switching sub-levels other than those two will invalidate the whole built lighting.

Some screenshots would be nice to understand what exactly you are trying to achieve.

avatar image davi211 Apr 02 '19 at 07:50 AM

Hi, I made a simple image to give you an idea I hope is clear enough, again thanks for sticking with me :)

alt text

EDIT: No idea why it always uploads it with funny colors, but it should still make sense.

help.jpg (1.4 MB)
avatar image nitron64 Apr 02 '19 at 10:15 AM

I don't think lighting scenario will work in this case. As I said only 1 scenario can be active at any given time.

Start a new thread. You will have a better chance of getting help that way.

avatar image davi211 Apr 02 '19 at 10:22 AM

I did and they advise me to use lighting scenarios, so I opened another with more details and I didn't have much luck. Such a silly thing to get stuck onto. Well thank you for looking at it tho, I really appreciate it.

avatar image nitron64 Apr 02 '19 at 10:27 AM

I have a few ideas you could try to solve this, but am swamped with work so I can't really test those out before the weekend. If you can wait I will post the result on weekend.

avatar image davi211 Apr 02 '19 at 10:39 AM

That would be the best thing ever, I have a couple of plan B in the case is impossible but it would be amazing to achieve something like what I described. I will need something done in 2 weeks so I have plenty of time as this is basically the only feature is really holding me back. Looking forward to hearing from you in a few days and if I find something too I will let you know. All the best with your work. :)

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

2 answers: sort voted first

i think you may be using lighting scenarios the wrong way around.

you are generally supposed to put lights with different settings in the lighting scenarios.

So you have a persistant level.. some sub levels with your geo and then seperate "Lighting Scenerio" sublevels containing lights with the settings for like different times of day or whatever.

For baking turn on all your sub levels and one lighting scenario... bake. Do this for each scenario. (baking them all at once doesnt work properly)

Then when you play the game for whatever lighting scenario you want you turn that individual LS sub level on and turn off the others.

more ▼

answered May 16 '18 at 03:48 PM

avatar image

gelliott
283 7 8 18

avatar image nitron64 May 16 '18 at 05:56 PM

Actually I have tried doing that but maybe the way I am approaching this is incorrect,

I have a persistent level with triggers and navigation volumes. The first sub-level has like all the landscapes and exterior stuff with 8 high-rise tower and their interior within their own sub-levels. Their is a lift door BP at the the parking area of each tower which unloads the sub-level the tower belong to and stream loads and teleport the player to the interior of that tower. The exterior remains loaded at all times.

I want to switch to the interior without it invalidating the light-data of the exterior level so I can view the exterior view from the interior.

avatar image gelliott May 16 '18 at 06:20 PM

Do you need lighting scenarios for like different times of day? That's usually what you would use them for. So you can bake the same sub-levels with different lighting conditions and just swap out the lighting scenarios when you want to go from Day to Night for instance.

Based on your description i think you have 2 options

1) No lighting scenarios. Turn on all levels and bake. Stream in levels as needed. You could have problems with lights affecting sub levels.

2) Create two lighting scenarios. One called "Outside" one called "Inside"... For "Outside" turn on all your sub-maps you want to see when you are outside AND the "Outside" scenario sub-level. Hit bake. Then turn off "Outside" turn on "Inside" and turn on all the sub-levels you want to see when you are inside and bake those. Including the exterior. When you get into the lift... hide the "Outside" lighting scenario and turn on the "Inside" when you teleport to the interior.

avatar image nitron64 May 16 '18 at 09:42 PM

Hmm, sounds like that will do do the trick. Will try when I got time.

Thanks for the help.

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

I dont know much about this but are both the lights and the geometry youre trying to bake lighting for set to be Static and not Movable or Dynamic?

more ▼

answered May 15 '18 at 10:13 PM

avatar image

mightyenigma
3.8k 18 23 20

avatar image nitron64 May 16 '18 at 06:45 AM

The directional Light and the skylight are set to be stationary, All the geometry are static except some animated characters. I think the problem is that I am using lighting scenario and blueprint to switch between streaming sub-levels with their own lights and those lights are affecting the rest of the sub-levels Here's a screenshot of the levels panel,alt text

levels-shot.png (52.8 kB)
avatar image mightyenigma May 16 '18 at 01:52 PM

Sorry, it looks like you already know more than i do (I've never used those features). I hope someone can help you with this.

(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