Post news RSS Blameless - Static Lighting System

Blameless uses a mixture of dynamic and static lights for additional visual fidelity. The static lights, however, can be dynamically switched on-the-fly, keeping the static global illumination and shadows.

Posted by on

Over the period of last month, I came across an interesting difficulty in lighting the scenes during beta testing in Blameless. For the development one of my specific visual requirements was using statically lit scenes with dynamic lights on top. This increased realism in light-and-shadow transitions and global illumination with indirect light.

Blameless - only realtime light Blameless - realtime and static light

Comparison: same scene with realtime lighting only (left) and realtime + static lighting (right)

The process of setting up lightmaps baking is quite straight forward in Unity, however I hit the wall with one of the gameplay requirements - ability to turn off/on lights. While realtime lights are supported in statically lit scenes, they won’t contribute to global illumination. This is prone to lighting artifacts and uneven light distribution across the scene when light is switched on or off.

Note: Although Unity 5 introduced realtime GI, which effectively solves this out-of-the-box, the visual results were merely not as good as with Unity 4’s lightmapping.

Blameless - direct light

Blameless - indirect light

Comparison: same scene with static + dynamic lighting, each with different light switched on

For Blameless I solved this by dynamically replacing groups of static lightmaps to reflect the current light setup. Different sets of lightmaps, each with different light settings, are changed seamlessly on-the-fly as required by the underlying script.

While the implementation of this feature claimed some development time, I am very happy with the result. Thanks to this, Blameless can bring more interactivity, and changes in the mood and atmosphere.


Well done unity reach that standard's of hl 2 mods. And nice shadow mapping what ever your name.

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.