# No dynamic shadow with "light as if static" on

**URL:** <https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029>\
**Category:** Rendering\
**Tags:** dynamic-shadows, unreal-engine, lighting-problem, question\
**Created:** [August 8, 2015, 9:28am UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029 "2015-08-08T09:28:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [August 8, 2015, 9:28am UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/1 "2015-08-08T09:28:46Z")

</div>

![53268-shadow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/1/9413c27fde2886796089d6531864decc0c34b3a5.jpeg)

Hello,

I noticed this bug since the version 4.8 (was working with the previous version)

So when I used the option “light as if static”, I ve got no dynamic shadow anymore.

I noticed also “light as if static” is always off when I reload the project, but this bug has been reported already.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [August 10, 2015, 5:58pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/2 "2015-08-10T17:58:32Z")

</div>

Hello Maxxi,

In order to assist you with this issue I am going to need a bit more information.

- What is your main light source casting shadows (assuming it is the default stationary directional)?
- What is the lighting quality when you build your lighting, is it set to Production?
- Would you mind providing me with some simple steps to follow in order to reproduce this issue on my end?
- Are you working in engine version 4.8.3?

Thank you and let me know if you have further questions,

---

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [September 10, 2015, 6:02pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/3 "2015-09-10T18:02:33Z")

</div>

Hi Andrew,  
Sorry for late answer, I didn’t get a notification.  
You can reproduce this bug with the minimal\_default scene, just set both chairs as movable and one of them set “light as if static”. you can see there is no shadow on the left chair (light as id static “on”). I did this test with 4.8.3 and 4.9.0

 ![58080-test.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/d/bcd710e75759a093a9da3f2c12ca817e05f3e6bc.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 10, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/4 "2015-09-10T18:18:07Z")

</div>

Hey Maxxi,

This is not a bug and is working as intended. Since your object is set as Movable, it is now a dynamic object that will cast dynamic shadows. However, you have marked the object to perceive its lighting to be static, but turned off the static shadow.

The documentation below can help you gain further insight on how shadow casting with different mobility types and settings work in the engine.

**Shadow Casting**

> **[Virtual Shadow Maps](https://docs.unrealengine.com/5.1/en-US/virtual-shadow-maps-in-unreal-engine/)**
>
> Overview of using high resolution shadowing designed with film-quality assets and large dynamically lit open worlds in mind.

Cheers,

---

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [September 10, 2015, 7:11pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/5 "2015-09-10T19:11:41Z")

</div>

Hi Andrew,

Thanks for your quick answer!

This option was working perfectly until version 4.8.3, was it a bug before??

“Light as if static” is not about the shadow cast by the object, it’s about to get a baked static lighting (with lightmass) on a movable object.

Working for architecture, it is the only way to have movable doors with the same lighting as the static objects (walls, ceiling).

Or is there another way now to get a uniform lighting between static and movable object since 4.8.3?

I’ve got also the same bug reported here: ["Light as if Static" setting not persisted - Rendering - Unreal Engine Forums](https://answers.unrealengine.com/questions/259199/light-as-if-static-setting-not-persisted.html)

Could it be the reason it doesn’t work anymore?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 10, 2015, 8:29pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/6 "2015-09-10T20:29:38Z")

</div>

As I mentioned this is not a bug, but is working as intended. The bug that you are referring to, was addressed by the developers who determined this was by design. The information below is taken directly from the tooltip when you hover over the ‘Light as if Static’ option.

![58138-lightasifstatic.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/4/6f4176b92664a83cf056caf562cce641c235261b.png)

If your static mesh object has static shadows ticked off, its mobility set to movable, and this option selected, it will not create a shadow. When an object has it’s mobility set to movable it no longer bakes into lightmass and casts a completely dynamic shadow.

Thank you,

---

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [September 10, 2015, 8:59pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/7 "2015-09-10T20:59:27Z")

</div>

“light as if static” option is only available for movable object. It wouldn’t make any sense to have a static shadow for an object you want to move. It means a movable object with baked lighting couldn’t get anymore a dynamic shadow. Something doesn’t add up. It’s like a major drawback!  
So is the only solution to get back to version 4.7.6 or is there a another way to do that since version 4.8.3?  
cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 11, 2015, 1:55pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/8 "2015-09-11T13:55:09Z")

</div>

This is why we have stationary lights. They have the ability to cast dynamic and static shadows.

I suggest you take another read over the documentation below to get a better understanding of how lighting and shadowing work within the Engine between different mobility types.

**Light Mobility**

> **[Light Types and Their Mobility](https://docs.unrealengine.com/5.1/en-US/light-types-and-their-mobility-in-unreal-engine/)**
>
> The available types of lights to choose from and how their mobility settings affect lighting in the scene.

> **[Virtual Shadow Maps](https://docs.unrealengine.com/5.1/en-US/virtual-shadow-maps-in-unreal-engine/)**
>
> Overview of using high resolution shadowing designed with film-quality assets and large dynamically lit open worlds in mind.

Thank you,

---

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [September 11, 2015, 2:23pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/9 "2015-09-11T14:23:17Z")

</div>

Thanks Andrew,

I guess I’m gonna get back to 4.7.6 then.

Btw there is the same kind of pb with the option “dynamic inset shadow”. It was working until 4.7.6. Now, from version 4.8.3, on the project “lightroom: interior daylight” made by Koola, you can see the tree has no dynamic shadow anymore.

---

<div class="post-metadata">

**Author:** ![a\_prototype](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/a_prototype/32/476233_2.png) [@a\_prototype](https://forums.unrealengine.com/u/a_prototype)\
**Post date:** [March 8, 2016, 3:19pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/10 "2016-03-08T15:19:33Z")

</div>

this is indeed quite a drawback. Making a movable static mesh recieve lightmass lightmap calculation while casting a dynamic shadows is useful in so many cases. is there any way to force/hack this?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [March 8, 2016, 7:13pm UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/11 "2016-03-08T19:13:18Z")

</div>

You can try this as a workaround:

- duplicate your mesh

Mesh 1: Light as if Static

- Enable Light as if Static
- Disable cast static shadow

Mesh 2: shadow caster

- Set it to Cast Hidden Shadow
- Uncheck cast static shadow (shouldn’t though since it’s movable)
- Check the option for Actor Hidden in Game
- Uncheck Visible (Affects Editor only)

Now you have your mesh that can bake a static shadow to it and move, but this one will not cast a dynamic shadow. Using the other hidden mesh with a shadow that can cast while the mesh is hidden makes it so you can have the dynamic shadow without any issue.

I hope this helps you work around the issue you’re having.

-Tim

---

<div class="post-metadata">

**Author:** ![a\_prototype](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/a_prototype/32/476233_2.png) [@a\_prototype](https://forums.unrealengine.com/u/a_prototype)\
**Post date:** [March 11, 2016, 9:23am UTC](https://forums.unrealengine.com/t/no-dynamic-shadow-with-light-as-if-static-on/328029/12 "2016-03-11T09:23:40Z")

</div>

hah thats actually quite an obvious solution yet i didnt think of it. works great, thanks tim.
