# Shadows very glitchy in only the right eye in VR

**URL:** <https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516>\
**Category:** XR Development\
**Tags:** unreal-engine, UE5-0\
**Created:** [August 26, 2021, 9:50pm UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516 "2021-08-26T21:50:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RibsNGibs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ribsngibs/32/88719_2.png) [@RibsNGibs](https://forums.unrealengine.com/u/RibsNGibs)\
**Post date:** [August 26, 2021, 9:50pm UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/1 "2021-08-26T21:50:20Z")

</div>

If I create a clean VR Template and run it, the shadows on objects in the right eye flicker, depending on head/object positioning

In this image, see how the right controller has no shadows on it:

 ![bustedshadow](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/3/933f3bcf8ec411384d7e2278479f7ef361d17bba.jpeg)  
And I’ve captured a [short video](https://www.youtube.com/watch?v=JsC-pnaZ3Fg) here - note that the shadows pop on and off on both the cube an the controllers, and that sometimes the shadows end up projected all over the rest of the scene instead.

I’ve run across some sporadic threads from the past, for example [1](https://forums.unrealengine.com/t/is-nobody-else-getting-right-eye-shadow-flicker/83096/2), [2](https://answers.unrealengine.com/questions/783235/vr-one-oye-shadows.html?sort=oldest), [3](https://answers.unrealengine.com/questions/516856/shadows-bug-instanced-stereo.html)

But the few things I’ve seen proposed as solutions do not work. Turning off instanced stereo breaks the right eye completely:

 ![instancedstereooff](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/5/c58542d6742ede48d22d7ea30b9f2013333e6834.jpeg)

I also tried switching Shadow Map Method from Virtual Shadow Maps (beta) to Shadow Maps and that changed what the broken shadows looked like, but they were still super broken in the same way (right eye glitchy, projected all over the rest of the image).

I’m on a GTX 980 Ti, HTC Vive, latest drivers on everything.  
I haven’t adjusted anything from the clean template, so all the VR-specific settings should be good - i.e. forward shading is on, etc.

---

<div class="post-metadata">

**Author:** ![RibsNGibs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ribsngibs/32/88719_2.png) [@RibsNGibs](https://forums.unrealengine.com/u/RibsNGibs)\
**Post date:** [August 26, 2021, 11:49pm UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/2 "2021-08-26T23:49:58Z")

</div>

I just downloaded UE4.27 and created a VR Template project in there, and I don’t see the same shadow problem there. Looks like it’s just in UE5.0.

---

<div class="post-metadata">

**Author:** ![funkysandwich](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/funkysandwich/32/1105302_2.png) [@funkysandwich](https://forums.unrealengine.com/u/funkysandwich)\
**Post date:** [February 18, 2022, 6:11am UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/3 "2022-02-18T06:11:28Z")

</div>

In UE5-EA2, I’ve run into the same issue.  
Through my testing, I’ve found this only happens with stationary lights that have the property: “Dynamic Shadow Distance StationaryLight” set to 0.  
Setting this to a value other than 0 seems to have fixed it.

 ![UnrealEditor_cmvjVm1F6Z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/7/bc766c14b195a8aae27a8e2e8a5e1582f67457ae.png)

---

<div class="post-metadata">

**Author:** ![Aldebahran\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aldebahran\_1](https://forums.unrealengine.com/u/Aldebahran_1)\
**Post date:** [September 5, 2022, 1:46pm UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/4 "2022-09-05T13:46:42Z")

</div>

You save my week Thx!

---

<div class="post-metadata">

**Author:** ![ShadowerkStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShadowerkStudio](https://forums.unrealengine.com/u/ShadowerkStudio)\
**Post date:** [November 7, 2022, 4:08pm UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/5 "2022-11-07T16:08:30Z")

</div>

You saved me a LOT of time too! Thank you!

---

<div class="post-metadata">

**Author:** ![Be\_Sheepy11](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/be_sheepy11/32/715063_2.png) [@Be\_Sheepy11](https://forums.unrealengine.com/u/Be_Sheepy11)\
**Post date:** [June 12, 2023, 4:47am UTC](https://forums.unrealengine.com/t/shadows-very-glitchy-in-only-the-right-eye-in-vr/247516/6 "2023-06-12T04:47:46Z")

</div>

I just wanted to hop in to say, this is still a problem with 5.2 and the above solution still works!
