# Problem with dynamic lighting

**URL:** <https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [March 23, 2016, 7:13am UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075 "2016-03-23T07:13:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OverHertz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OverHertz](https://forums.unrealengine.com/u/OverHertz)\
**Post date:** [March 23, 2016, 7:13am UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075/1 "2016-03-23T07:13:27Z")

</div>

Hi there,

I am having several issues with dynamic lighting. I have direction light source (sun), skybox and skylight.

![4b1c74d335d650aadec6863ae81b4a84bea8dc13.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Here everything seems OK, the Sun is just above outside, shining through the empty space. But then…

 ![bug2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/0/c05744fef9f479fe1cc8fc9b814a86140488a797.jpeg)

Here the sun should not be visible, it seems it is shining through the wall (whilst being affected by the shadows).

If someone can help me to fix this, I would be grateful. Thanks in advance.

Regards,  
Colin

---

<div class="post-metadata">

**Author:** ![Steve\_T](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_T](https://forums.unrealengine.com/u/Steve_T)\
**Post date:** [March 24, 2016, 3:29pm UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075/2 "2016-03-24T15:29:18Z")

</div>

are you using solid blocks for the walls or a single plane?

---

<div class="post-metadata">

**Author:** ![OverHertz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OverHertz](https://forums.unrealengine.com/u/OverHertz)\
**Post date:** [March 30, 2016, 12:29am UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075/3 "2016-03-30T00:29:47Z")

</div>

Sorry for the late reply.

They are solid blocks. I have tried using 2 sided material and 2 sided shadowing too, but it has no effect.

-Colin

---

<div class="post-metadata">

**Author:** ![akaChrisV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akaChrisV](https://forums.unrealengine.com/u/akaChrisV)\
**Post date:** [March 30, 2016, 8:46am UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075/4 "2016-03-30T08:46:34Z")

</div>

you probably have cascaded shadowmaps enabled already?

alternatively you could try to use a reflection capture probe for the interior, disable the sun and atmo fog temporarily, set r.DiffuseFromCaptures 1 and update the captures, then reenable the sky and atmo. not sure if any of this helps tho

---

<div class="post-metadata">

**Author:** ![OverHertz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OverHertz](https://forums.unrealengine.com/u/OverHertz)\
**Post date:** [March 30, 2016, 1:57pm UTC](https://forums.unrealengine.com/t/problem-with-dynamic-lighting/59075/5 "2016-03-30T13:57:16Z")

</div>

I created a new project today, re-imported my assets and code, placed my objects and now there is no issue, I’m not sure what went wrong in the old project… but for now it is working, I will continue to build up and try to keep track of any changes I make just in case it happens again.

Thanks for your input.

-Colin
