Day/night switch – unity3d lightmaps switching made simple and easy
I have recently made a research on day/night cycle Unity assets. There are plenty of them both commercial and free. The most interesting and advanced one can be seen on this demo: http://youtu.be/YWLBMqY2SRQ. https://www.assetstore.unity3d.com/en/#!/content/5674 and one of the free ones based on runtime shadows and skybox transitions can be found here: http://www.galawana.com/unity3d-day-night-cycle-and-transition/ However there were no free assets based on unity3d lightmaps switching or transitions at runtime. Instead I have found a LightMapSwitcher script on wiki and that was the starting point. A case was I had two scenes: a day one with day lights and day lightmaps and a night with night lights and night lightmaps. The lightmaps have to be baked with the lock atlas option. I packed everything into three streamed scenes:- a loading scene with all the scripts
- a day scene with all the models and day lightmaps and day light and
- a night scene with night lights and lightmaps only

1 Comment
Leave a Reply
You must be logged in to post a comment.
Hi there,
Very nice article, thanks !
I’m just wondering, isnt the change of lightmap a bit abrupt ?
Doesnt seem smooth to me. Am i wrong ?