Hello again,
in a game organized in sublevels with lighting scenarios, why do lighting scenarios which were created in one sublevel affect the geometry of another sublevel?
The main idea for behind all this is to be able to bake static lighting separately for each sub-level and to then load all sub-levels for the game together, without them having an influence on each other. Because in my actual project I do not have enough time to always build lighting for the whole game, also, I am running out of CPU power and RAM if I do the whole thing in one piece.
I have done my research into the normal way of achieving this and believe that “world composition” using levels and sub-levels is the way to go. Only I must be doing something wrong?
Now in more detail:
The test project is set up as follows:
One master level
“Persistent_Main”
- containing only a sky sphere
**three sublevels with geometry: **
“BoxHouse1”
“BoxHouse2”
“BoxHouse3”
two lighting scenarios were created inside each sublevel, containing a colored point light and a light source:
“BH1Green”
“BH1Red”
“BH2Green”
“BH2Red”
“BH3Pink”
“BH3Blue”
I first set up each of the “BoxHouse…” levels and baked two lighting scenarios in each of them. So each “BoxHouse…” level contains the persistent (geometry only) and two lighting scenarios. These, of course are created as level assets in the content browser.
Then I created the “Persistent_Main” level, only containing a sky sphere.
Then I dragged each of the “BoxHouse…” levels into the level window of “Persistent_Main”, thus creating the three sublevels.
Then I dragged all of the lighting scenarios I had created into the level window as well, thus ending up with the above outlined structure.
At this point, what I see is this, which makes sense to me and is what I would have expected:
But if I now switch on one of the lighting scenarios for one of the BoxHouses, the other BoxHouses are affected as well. I get this, for example (switching on a scenario for the middle BoxHouse):
For reference, when opening up the “BoxHouse2” level and switching on the lighting scenario there looks like this:
I could understand that the lights that belong to that lighting scenario affect the rest of the scene once they are made visible (although this would mean that the whole exercise is futile). But is that the intended result? Why would the lighting scenario have an effect on the whole scene? And more, why does the colored point light only affect the ceiling of the BoxHouse below, leave the rest of it unaffected and the light source illuminates the BoxHouse above completely?
My ultimate goal is to be able to bake static lighting on individual sub-levels, load them all into the scene at begin-play without any interference between them. Please let me know if I am missing a fundamental concept here…