# Shadows disappearing at edges of viewport

**URL:** <https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [October 4, 2021, 9:55pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126 "2021-10-04T21:55:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddriddle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maddriddle/32/88708_2.png) [@maddriddle](https://forums.unrealengine.com/u/maddriddle)\
**Post date:** [October 4, 2021, 9:55pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/1 "2021-10-04T21:55:58Z")

</div>

![Shadows2](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/5/952c02e28b238bae021e566c54dcd727fee87c82.gif)

![Shadows](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/6/c62bee2480f2b84a85a1a59def98b232f3db2aa1.gif)

The nice ambient occlusion and shadows seem to disappear when moving my camera view in the viewport but only around the edges of the viewport. This effect carries over to exports from Movie Render Queue as well.

Looking for a solution! Light map resolution doesn’t seem to be the issue (set to 1024).

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [October 5, 2021, 6:35am UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/2 "2021-10-05T06:35:59Z")

</div>

Could be Screen Space Global Illumination?

Try entering the command: r.SSGI.Enable 0 and see, if the shadows are disappearing. If yes, then they are created by the SSGI. And for every Screen Space effect: They only work on the stuff that is visible on the screen. Replacing the 0 with a 1 enables the SSGI again.

---

<div class="post-metadata">

**Author:** ![maddriddle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maddriddle/32/88708_2.png) [@maddriddle](https://forums.unrealengine.com/u/maddriddle)\
**Post date:** [October 5, 2021, 2:01pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/3 "2021-10-05T14:01:00Z")

</div>

I entered r.SSGI.Enable 0 and the shadows still disappear. But Screen Space Global Illumination is not enabled in the Project Settings.

Is there a way to get this to stop happening?

---

<div class="post-metadata">

**Author:** ![maddriddle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maddriddle/32/88708_2.png) [@maddriddle](https://forums.unrealengine.com/u/maddriddle)\
**Post date:** [October 5, 2021, 2:08pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/4 "2021-10-05T14:08:25Z")

</div>

It seems to definitely be an issue with AO settings. Messing with the AO settings within my global process volume is directly affecting the shadows in question. However its just getting rid of the AO entirely, not fixing the problem of them disappearing at the edge of the screen

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [October 5, 2021, 2:16pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/5 "2021-10-05T14:16:56Z")

</div>

Ok, but I think even the AO is some kind of Screen Space effect?

---

<div class="post-metadata">

**Author:** ![maddriddle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maddriddle/32/88708_2.png) [@maddriddle](https://forums.unrealengine.com/u/maddriddle)\
**Post date:** [October 5, 2021, 2:18pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/6 "2021-10-05T14:18:53Z")

</div>

I think you’re right too. I am going to try lightmass AO in the World Settings and see if that helps. From what I understand AO post process is screen space effect and lightmass is precomputed and baked.

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [October 5, 2021, 2:23pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/7 "2021-10-05T14:23:19Z")

</div>

If possible for your project, you could try out the ray traced AO. 🤓

---

<div class="post-metadata">

**Author:** ![maddriddle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maddriddle/32/88708_2.png) [@maddriddle](https://forums.unrealengine.com/u/maddriddle)\
**Post date:** [October 5, 2021, 5:45pm UTC](https://forums.unrealengine.com/t/shadows-disappearing-at-edges-of-viewport/254126/8 "2021-10-05T17:45:59Z")

</div>

Using ray tracing solved this problem. You can apply AO in your post process volume and the shadows do not disappear if ray tracing is enabled for the project. THANK YOU!!
