# Dynamic Light System Turn Off/On

**URL:** <https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [February 18, 2017, 8:57am UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584 "2017-02-18T08:57:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oneroncer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oneroncer](https://forums.unrealengine.com/u/oneroncer)\
**Post date:** [February 18, 2017, 8:57am UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/1 "2017-02-18T08:57:28Z")

</div>

Hi everyone,

I have a room And in this room there are several lights. This lights have own spesific ies files. (As you can see in picture). I can turn off/on the lights manually using “IES Intensity Scale”

When i turn off/on the lights i want a totally dark place with no light. How can i do that? 🙂

Dont tell me that u can make with a blueprint visual coding for turning lights on/off. I can do that but when i build than place still have light

I hope u understood 🙂

 ![tt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/f/9f7abc98968ad3158b5ba1b5d45939c738f8763d.jpeg)

---

<div class="post-metadata">

**Author:** ![chuan\_l](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuan\_l](https://forums.unrealengine.com/u/chuan_l)\
**Post date:** [February 18, 2017, 9:42am UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/2 "2017-02-18T09:42:28Z")

</div>

Hi , this is because \* static \* lights get baked into light maps —  
There is another type of light which is \* dynamic \* and these can be toggled on and off , as you have in blueprints. These are far more computationally intensive at runtime since the engine has to calculate how the rays interact with all your materials. So being able to bake global lights that tend not to change helps with performance. The downside is a little less flexibility with lighting setups.

To achieve the effect you’re after you need to swap the lightmaps somehow , and one approach is to set up an identical scene and call a level load to transition between the two. Otherwise if you just want a “totally dark place with no light” then just put a black quad in front of the camera and toggle it’s visibility using the light switch , easy hack ! Anyway it would be nice to have more control over light maps and so on.

See also :

Light streamed levels located in same place :  
[https://answers.unrealengine.com/questions/132986/lighting-streamed-levels-located-at-the-same-place.html](https://answers.unrealengine.com/questions/132986/lighting-streamed-levels-located-at-the-same-place.html)

---

<div class="post-metadata">

**Author:** ![oneroncer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oneroncer](https://forums.unrealengine.com/u/oneroncer)\
**Post date:** [February 18, 2017, 12:31pm UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/3 "2017-02-18T12:31:06Z")

</div>

> [@chuan\_l;668280](#):
>
> Hi , this is because \* static \* lights get baked into light maps —  
> There is another type of light which is \* dynamic \* and these can be toggled on and off , as you have in blueprints. These are far more computationally intensive at runtime since the engine has to calculate how the rays interact with all your materials. So being able to bake global lights that tend not to change helps with performance. The downside is a little less flexibility with lighting setups.
> 
> To achieve the effect you’re after you need to swap the lightmaps somehow , and one approach is to set up an identical scene and call a level load to transition between the two. Otherwise if you just want a “totally dark place with no light” then just put a black quad in front of the camera and toggle it’s visibility using the light switch , easy hack ! Anyway it would be nice to have more control over light maps and so on.
> 
> See also :
> 
> Light streamed levels located in same place :  
> [https://answers.unrealengine.com/questions/132986/lighting-streamed-levels-located-at-the-same-place.html](https://answers.unrealengine.com/questions/132986/lighting-streamed-levels-located-at-the-same-place.html)

Thanks chuan\_I. I changed all my lights from static to moveable (totally dynamic). This solved my problem. But When i build the scene, results below. How can i make more realistic render? (By the way the place has no windows that’s why i dont use directionaly light and skylight

As u can see my render looks like \*\*\*\* :'(((

 ![bs.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/3/935c5322ef05131a9c5192df59c7e15e86dfa2aa.jpeg)

---

<div class="post-metadata">

**Author:** ![chuan\_l](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuan\_l](https://forums.unrealengine.com/u/chuan_l)\
**Post date:** [July 22, 2017, 1:37pm UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/4 "2017-07-22T13:37:31Z")

</div>

Hi ,

Sorry I hadn’t checked my notifications in a while —  
This is probably too late , but I would just bake with normal lights as you had before. Then cover the camera with a black object as described above ? Make sure you make the black object a child of the camera root so that it will always have the same relative position while the player moves around the scene. Hook it up to whatever input you will use to toggle the lights , and done.

Hope that helps !

---

<div class="post-metadata">

**Author:** ![duke22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@duke22](https://forums.unrealengine.com/u/duke22)\
**Post date:** [July 26, 2017, 8:40am UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/5 "2017-07-26T08:40:54Z")

</div>

Or use LPV or VXGI if you don’t care about performance.

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 27, 2017, 3:06am UTC](https://forums.unrealengine.com/t/dynamic-light-system-turn-off-on/85584/6 "2017-07-27T03:06:52Z")

</div>

To use static lighting and be able to switch between different lighting setups, you can setup lighting scenarios.  
Read more here: [Who can explain of "Lighting Scenario" feature? - Rendering - Unreal Engine Forums](https://answers.unrealengine.com/questions/512084/who-can-explain-of-lighting-scenario-feature.html)  
[Unreal Engine 4.14 - Toggle between Day And Night Scene Using Precomputed Lighting Scenario Tool - YouTube](https://youtube.com/watch?v=PbayGU6fehY)
