# Is it possible to use static and dynamic lighting on the same level?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849>\
**Category:** Rendering\
**Tags:** Shadows, light, unreal-engine, dynamic, static, question\
**Created:** [March 6, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849 "2021-03-06T18:48:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 6, 2021, 6:48pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/1 "2021-03-06T18:48:51Z")

</div>

Hi there!  
I am working on a large project that has interiors inside a building and a large plot of land outside. I want to bake lighting for most objects. This is the best option in terms of shadow quality and performance for me. I would also like to get dynamic shadows from trees and opening doors.

But I am not able to combine the baked light from some objects with the denamic shadows of other objects in a single level. Is it possible to use static and dynamic lighting on the same level?

I ran some tests,and noticed that the light baking still occurs. I found a baked map in the world settings, but why isn’t it showing up in the level?  
I also noticed faint traces of baking under the cube. So the very fact of baking is still happening?

 ![331695-01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/3/2931756c68ab65d4ac7122a748a1e4b05611d627.jpeg)

 ![331696-02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/f/e0f70513f8af8e5f793208375e46efee722a4964.jpeg)

 ![331697-03.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/f/b3fa5eca2cca92d1df661f38d59b890356bd93b3.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 6, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/2 "2021-03-06T19:46:55Z")

</div>

Is the cube set to moveable.

Yes, it’s possible to use both in the same level. Set it to static ( or stationary ), and the light will still provide moveable light for moveable objects.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 6, 2021, 10:08pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/3 "2021-03-06T22:08:39Z")

</div>

Thank you for your answer! After that, I double checked my settings, and decided to use DirectionalLight and SkyLight separately for the global illumination instead of the SunSky actor. It worked! I managed to combine two types of lighting in one level. Later, I even managed to do this using the SunSky. I don’t know what the problem was. It is possible that in addition to the DirectionalLight and SkyLight in the SunSky actor, there were other objects that needed to establish mobility.  
But after that another problem arose. Is it possible to use cascaded shadows in such a bundle? As we can see in the additional screenshot, dynamic cascading shadows and static shadows cannot be rendered at the same time.

 ![331701-01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/6/1365cf1d87a47b26822ac42acb33aeb04ec0f943.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 6, 2021, 10:29pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/4 "2021-03-06T22:29:19Z")

</div>

With this setup, it’s also possible to have static shadows for distance, and dynamic shadows for close up. It’s a setting on the directional light called something like ‘dynamic shadows stationary light’, you can set the distance there.

As far as cascading shadows for distant objects, that would only be for moveable again, of course.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 6, 2021, 11:31pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/5 "2021-03-06T23:31:35Z")

</div>

Yes, I understand what setting you mean on the directional light.  
But the point is that “static shadows for distance, and dynamic shadows for close up” is not exactly what I’m trying to do.  
I’m trying to do "static shadows for static objects for ANY distance, dynamic shadows for dynamic objects for close up, and Distance Field Shadows for dynamic objects for far distance.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 11:30am UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/6 "2021-03-07T11:30:12Z")

</div>

Ok, well that’s the default 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 7, 2021, 12:55pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/7 "2021-03-07T12:55:10Z")

</div>

The problem is that the static shadow disappears at a certain distance. You can see this in the screenshot (The shadow of the static box is visible only up to a certain border) But I need the static shadow to be always visible, regardless of the settings of the dynamic cascaded shadow of other objects.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 12:59pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/8 "2021-03-07T12:59:16Z")

</div>

I don’t know how you’re managing that. Here’s a default level ( which has stationary light ):

![331722-screenshot-7.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/6/55675312dd08227836837f6c66e9790861fa40c5.jpeg)

See how far I am from the cube, the shadow always stays…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 7, 2021, 1:27pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/9 "2021-03-07T13:27:27Z")

</div>

Of course) The shadow stays because there are no dynamic objects with cascading shadows in the level.  
Try to arrange two cubes static and dynamic. A dynamic cube should have cascading shadows activated, and a static cube only with baked shadows at any distance. is it posible?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 1:30pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/10 "2021-03-07T13:30:29Z")

</div>

![331724-screenshot-9.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/b/90b8026d2f1614d71052d0e3de23fbae7f2b7b07.jpeg)

( have you tweaked other directional light settings? )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 7, 2021, 1:40pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/11 "2021-03-07T13:40:58Z")

</div>

Of course, for two days already.  
Please tell me, have you activated the cascaded shadows in your directional light?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 2:18pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/12 "2021-03-07T14:18:40Z")

</div>

Yup… 🙂

( that’s all I did )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 7, 2021, 2:40pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/13 "2021-03-07T14:40:37Z")

</div>

Sounds very exciting. Can you send me this project in any way convenient for you, so that I can figure it out in more detail?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 7:00pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/14 "2021-03-07T19:00:15Z")

</div>

boom:

[https://drive.google.com/file/d/1K9V0jXC6x2cRc1fQg4KDdcXyij4qv29-/view?usp=sharing](https://drive.google.com/file/d/1K9V0jXC6x2cRc1fQg4KDdcXyij4qv29-/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_19ad0c26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_19ad0c26](https://forums.unrealengine.com/u/anonymous_user_19ad0c26)\
**Post date:** [March 7, 2021, 7:38pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/15 "2021-03-07T19:38:19Z")

</div>

Thanks!  
I checked it.  
But the shadow on a static cube is dynamic. To understand this, turn off dynamic shadows in the cube settings, and you will see that it does not cast static shadows. To see the static shadows you have to turn off the cascading shadows and you will immediately see the baked shadows on the static cube. So, unfortunetly, there is still no solution how to see Static shadows on a static cube and dynamic cascading shadows on a dynamic cube)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 7, 2021, 7:55pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-use-static-and-dynamic-lighting-on-the-same-level/479849/16 "2021-03-07T19:55:59Z")

</div>

Ah, it’s only because I set ‘dynamic shadow distance’ on the static light.

It you put that back to zero ( or an interval of your choice ), you’ll see the static objects have burnt in shadows…

You have to settle for dynamic for nearby and static for far away.
