- Home /
Lightmap Culling Mask woes.
Hey guys thanks for taking the time to read this, I'm at my wits end here,
I am currently creating a set of four environments, linked by portals (All in the same scene). It has been my ambition to give these four environments their own lighting setups, I have created four culling masks and have applied those to the relevant objects and lights. My issue currently is that there is no way to actually bake using these culling masks.
I have looked into the Lightmap Manager 2 plugin as part of the MXD Bundle however it is throwing me various issues and is generally non-compliant. I have contacted the devs to no avail and I have found no work-around with the issues it presents.
One alternative avenue I explored was using spotlights, since the primary issue is that directional lights have no falloff and will bake -everything- in the scene. This however presented me with very low resolution bakes and didn't really cut it. If there is some way of creating culling volumes for directional lights that'd be splendid.
I am wondering if anyone has any alternative ideas how I can either bake each scene separately whist preserving the lightmaps. Or find some other way of mitigating this problem.
Thanks very much for any advice or suggestions, my project is pretty much pivoting on this working.
Cory.
Answer by Tanshaydar · Oct 21, 2014 at 02:12 PM
You can use "Bake Selected" by selecting specific directional lights and specific parts together in hierarchy view. Once finished, select another set of environment and directional light and hit "Bake Selected".
This way, lightmapper will ignore the rest and bake only selected parts together.
Huh, well, that was a lot simpler than I was making it, huh?
I am still getting an issue with dual lightmaps, which is what initially caused me some confusion. I have seen a lot of topics on this particular issue so I won't take up any more time trying to troubleshoot it (unless you are feeling generous).
In my excitement and confusion I forgot to say thank you very much for replying, you've helped me a great deal Tanshaydar, cheers.
Your answer
![](https://koobas.hobune.stream/wayback/20220613165530im_/https://answers.unity.com/themes/thub/images/avi.jpg)