# How to avoid disappearing / popping shadows when they are in the camera viewfield at short distances?

**URL:** <https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946>\
**Category:** Rendering\
**Tags:** Shadows, unreal-engine, Lighting, UE4, question\
**Created:** [August 12, 2022, 9:11am UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946 "2022-08-12T09:11:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [August 12, 2022, 9:11am UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946/1 "2022-08-12T09:11:11Z")

</div>

All over this scenes, shadows pop in and out in front of the camera at short distances (pay attention to the yellow building and to the building at the left):

I have done everything listed in this topic:

> [@Shadows disappear with increased camera distance](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690):
>
> I was playing with a pseudo-isometric camera style (low camera Field of View) with a larger camera distance to give it a 2.5D feeling but still maintain some perspective. Anyhow, I’m not sure if this is a bug or if I need to change the way my lighting is being handled in the scene. When the camera distance (being driven by the SpringArm in the Blueprint) exceeds about 6500+ units all of the cast shadows seem to completely disappear or are not being rendered or registered. However, by just lower…

```auto
r.Shadow.FadeResolution
r.Shadow.MinResolution
r.Shadow.TexelsPerPixel
r.Shadow.RadiusThreshold

```

I also tried increasing Dynamic Shadow distance, but no effect.

---

<div class="post-metadata">

**Author:** ![alberto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alberto/32/1194695_2.png) [@alberto](https://forums.unrealengine.com/u/alberto)\
**Post date:** [August 12, 2022, 4:27pm UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946/2 "2022-08-12T16:27:18Z")

</div>

Hello @AlfredBaudisch !

mmm what about:

r.ForceLODShadow 0  
r.ForceLOD 0  
r.ScreenPercentage 150

---

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [August 12, 2022, 4:39pm UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946/3 "2022-08-12T16:39:01Z")

</div>

That was it, thanks!

---

<div class="post-metadata">

**Author:** ![WHOBASTANK3000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/whobastank3000/32/726145_2.png) [@WHOBASTANK3000](https://forums.unrealengine.com/u/WHOBASTANK3000)\
**Post date:** [January 17, 2023, 5:39pm UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946/4 "2023-01-17T17:39:08Z")

</div>

Hey Alberto, can you explain that ScreenPercentage has to do with fixing LOD shadows? I know that it downsizes from higher res into the defined resolution but does that fix moire or something?

---

<div class="post-metadata">

**Author:** ![alberto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alberto/32/1194695_2.png) [@alberto](https://forums.unrealengine.com/u/alberto)\
**Post date:** [January 17, 2023, 8:30pm UTC](https://forums.unrealengine.com/t/how-to-avoid-disappearing-popping-shadows-when-they-are-in-the-camera-viewfield-at-short-distances/626946/5 "2023-01-17T20:30:36Z")

</div>

> [@WHOBASTANK3000](#):
>
> I know that it downsizes from higher res into the defined resolution but does that fix moire or something?

It’s more resolution, as more resolution more quality, test it you will be not disappointed!
