# Dynamic Light Bleed Through Ceiling at Angles

**URL:** <https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091>\
**Category:** Rendering\
**Tags:** unreal-engine, dynamic, Lighting, question\
**Created:** [June 17, 2016, 11:34am UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091 "2016-06-17T11:34:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Cooke-Abbott](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oscar\_Cooke-Abbott](https://forums.unrealengine.com/u/Oscar_Cooke-Abbott)\
**Post date:** [June 17, 2016, 11:34am UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091/1 "2016-06-17T11:34:07Z")

</div>

I have encountered this issue many times before, but with the static lighting that was possible in those scenarios I was able to work around it - however in this project the entire playspace is dynamically generated and so is not work-aroundable.  
I have a room that is randomly generated, with a ceiling on top of it.  
At certain angles and as you get closer and closer to the edges of the mesh, bits of the mesh seems to stop blocking the dynamic directional light, and light bleeding occurs to an extreme extent that eventually - at the very edges of the room - completely ignores the roof and all light goes right through. (Please see below)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/0/00747859a2675470a630f6389161092d2e61f0be.jpeg) ](https://i.imgur.com/yh2Qnn4.jpg)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/c/7cda22564439a5aee06f624999b945adec3c10a8.jpeg) ](https://i.imgur.com/pXVLUlZ.jpg)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/a/da8910c729f5275b2e2f234186205f7d7323a04a.jpeg) ](https://i.imgur.com/9yAGDLY.jpg)

I’ve tried all possible things I can think of including; setting two sided, increasing height of ceiling, increasing shadow resolution (which of course isn’t even practical in games where people have low-powered PCs), and many other things - however none even help in stopping the bleeding.

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Oskar\_Swierad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oskar_swierad/32/465778_2.png) [@Oskar\_Swierad](https://forums.unrealengine.com/u/Oskar_Swierad)\
**Post date:** [June 17, 2016, 7:01pm UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091/2 "2016-06-17T19:01:38Z")

</div>

Try to keep Dynamic Shadow Distance Movable in sun’s settings as short as possible.

When you expand 2nd tab in sun’s options (Light), there is a Shadow Bias setting. Try to experiment with that.

If nothing helps, you could model the wall modules so perpendicular polygons intersect themselves a bit.

---

<div class="post-metadata">

**Author:** ![Oscar\_Cooke-Abbott](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oscar\_Cooke-Abbott](https://forums.unrealengine.com/u/Oscar_Cooke-Abbott)\
**Post date:** [June 17, 2016, 11:05pm UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091/3 "2016-06-17T23:05:29Z")

</div>

I’ve actually already got bias at 1 - I’ve tried intersections and they also don’t help much - and I need to keep the light’s distance quite large as the randomly generated area in which the player plays can get quite large.

---

<div class="post-metadata">

**Author:** ![Oskar\_Swierad](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oskar_swierad/32/465778_2.png) [@Oskar\_Swierad](https://forums.unrealengine.com/u/Oskar_Swierad)\
**Post date:** [June 18, 2016, 7:59am UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091/4 "2016-06-18T07:59:17Z")

</div>

I see. Maybe it’s a stupid idea but… how often do you need sunlight here? If modules with windows are scarce, it can help to use a spotlight outside each windows instead 🙂

---

<div class="post-metadata">

**Author:** ![Oscar\_Cooke-Abbott](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oscar\_Cooke-Abbott](https://forums.unrealengine.com/u/Oscar_Cooke-Abbott)\
**Post date:** [June 18, 2016, 8:10am UTC](https://forums.unrealengine.com/t/dynamic-light-bleed-through-ceiling-at-angles/361091/5 "2016-06-18T08:10:56Z")

</div>

As each cardinal side of the office floor is glass I need to use a directional light (also because there will of course be other buildings outside the windows - and regardless, there should be a way to fix it.
