Lightmap question

Hi All,

I have several separate rooms in a mobile dungeon crawler connected with corridors, something like below. When the user is in room A, I disable rooms B,C and D to maximize performance. As the player moves between rooms, only the room he/she is in is enabled, the rest are disabled.

I would like to be able to create a separate lightmap for each room and then turn them on/off as I enable/disable rooms, how would you recommend accomplishing this please?

If I create one large lightmap it takes a very long time to bake each time, even with a low lightmap resolution. Plus I think it would just be better for me if I could carefully work on one room at a time and know I’m not affecting the other rooms.

Thanks,

Vanz

You should ask this in a more specific sub-forum. General Discussion is not a help channel for Unity technical questions.

I’m no expert on this, but I would make each room a scene, and bake it individually.
Then use additive scene loading to load additional room scenes as needed.

Also check out Bakery on the asset store. Really good for baking scenes in Unity.

hmm thanks Meltdown, is there a significant delay in loading/unloading scenes?

Bakery looks great, been thinking about that for awhile now…

Thanks,

V

Why don’t you try it and see, you can load scenes asynchronously?

I believe the only way to do it would be to implement each room as a separate scene. Because lightmaps are saved per-scene.

You can additively load them all in the beginning, and the disable the ones you don’t need later.