Hi,
I’m pretty new to Unity (professional software dev with 15+ years experience, trying some new stuff as a passionate hobbyist), and for the last couple weeks I tinkered with Unity. I’ve build some maps, played with the editor, saw some progress - all the exciting stuff you experience when trying new things.
Now, I thought about building a story driven game with a low-poly open world environment, day-night cycle and some bells and whistles over the next three years.
The map should have 1000x1000 units. The house in the attached screenshot is roughly 25x25x25 units. I already worked on a prototype map before and experienced some issues, mainly about the correct light. That’s why I stepped back a little bit and made a simple scene to try everything out again.
I’ve attached a screenshot. The asset pack has an atlas for the buildings, and I would like the windows to be lit at night, so I created an emissive mask (which is black, and only has a white spot where the color for the windows is).
The downside is that all windows are lit. If you look outside your window (and if you have some houses around you at night), you will notice that there is barely a house which has all lights on.
Because I’m a dev, I’d like to write a script I can attach to a building, provide it the current game time and let the “house” decide, which lights to turn on and off.
From a 3d artist perspective - how would I need to modify the given asset? What would be the best and easiest way? I could think of two options:
- Make a texture for every building, where each window is mapped to it’s own “window” on the texture. I could then create different emissive maps.
- Remove all Windows from the model file itself, and create several windows as single prefabs which have their own emissive material. They could then be added to the bare model.
I’m not sure in terms of performance, though, and that’s one of the reasons I’d like to ask the more experienced users what they would do in my position. I guess at the end, there will be round about 50 buildings in the map.