# Error in UE 4.8.0 Preview 4 when HUD and VR Preview

**URL:** <https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857>\
**Category:** XR Development\
**Tags:** unreal-engine, UE4, question\
**Created:** [June 6, 2015, 2:16am UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857 "2015-06-06T02:16:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a28c30901](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a28c30901](https://forums.unrealengine.com/u/anonymous_user_a28c30901)\
**Post date:** [June 6, 2015, 2:16am UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/1 "2015-06-06T02:16:54Z")

</div>

Im using Oculus DK2 with oculus\_runtime\_sdk\_0.6.0.0\_win installed. When making a HUD element by using a “Widget Blueprint”, for example even a simple button, I get the following problem when playing in VR preview.

 ![45440-ue4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/2/472a564e31d1479e4bbb4f865025294f7a29a832.jpeg)

On the right side of the right eye and the bottom of the whole view there are flickering errors. When I remove the f.e. button it will look normal again and work well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [June 8, 2015, 2:53pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/2 "2015-06-08T14:53:42Z")

</div>

Hello NethOr,

I was able to produce this issue on our end. I have written up a report (UE-16673) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![AnthonyGlueck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnthonyGlueck](https://forums.unrealengine.com/u/AnthonyGlueck)\
**Post date:** [October 2, 2015, 6:57pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/3 "2015-10-02T18:57:46Z")

</div>

We are experiencing this issue. Is there any word on when a fix will be completed?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 5, 2015, 12:43pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/4 "2015-10-05T12:43:17Z")

</div>

Hello AnthonyGlueck,

There is no current time frame in place for the resolution of this issue, however I will be sure to bump up the community interest in the report for this issue. Thank you for your interest.

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b8c6f6051](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b8c6f6051](https://forums.unrealengine.com/u/anonymous_user_b8c6f6051)\
**Post date:** [October 6, 2015, 9:23pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/5 "2015-10-06T21:23:09Z")

</div>

I dug into this locally and found a way to fix this. In SlateRHIRenderingPolicy.cpp at the end of FSlateRHIRenderingPolicy::DrawElements, I added the following to reset the scissor rectangle back to the default.

```
	RHICmdList.SetScissorRect(false, 0, 0, 0, 0); // Added this

	CurrentBufferIndex = (CurrentBufferIndex + 1) % SlateRHIConstants::NumBuffers;
}

```

It seemed like the scissor was getting set to a smaller size while rendering the UI element but was never set back to the full screen. This was causing the depth buffer to not get fully cleared which lead to the corruption on screen.

---

<div class="post-metadata">

**Author:** ![Joachim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joachim](https://forums.unrealengine.com/u/Joachim)\
**Post date:** [March 22, 2016, 2:17am UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/6 "2016-03-22T02:17:54Z")

</div>

Hi Rudy,

are there any news on this VR render bug?  
It seems to affect everyone using a widget-based HUD… and it’s also blocking the VR version of our game title.

It seems like “BrantFrench” has identified and sort of fixed the problem already - so maybe it’s not too much work to sort it out? It’s a big blocker for VR developement - it’s worth fixing. 🙂

Thank you very much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 22, 2016, 1:17pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/7 "2016-03-22T13:17:30Z")

</div>

Hello Joachim,

I went ahead and double checked on this issue for you. It appears that the status for this issue has not yet been updated to fixed as of yet. However, I will be sure to bump up the community interest for this issue.

Make it a great day

---

<div class="post-metadata">

**Author:** ![HaxO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haxo/32/1008648_2.png) [@HaxO](https://forums.unrealengine.com/u/HaxO)\
**Post date:** [April 1, 2016, 4:26pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/8 "2016-04-01T16:26:28Z")

</div>

This is a pretty big issue, makes UMG almost useless for VR.

---

<div class="post-metadata">

**Author:** ![HaxO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/haxo/32/1008648_2.png) [@HaxO](https://forums.unrealengine.com/u/HaxO)\
**Post date:** [April 1, 2016, 4:27pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/9 "2016-04-01T16:27:37Z")

</div>

Submit a pull request, collect your badge!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_38cdb158](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_38cdb158](https://forums.unrealengine.com/u/anonymous_user_38cdb158)\
**Post date:** [April 5, 2016, 5:26am UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/10 "2016-04-05T05:26:38Z")

</div>

I am also experiencing this issue with a VR research project for ASU. If there is a workaround I could perform until this is upstreamed, I would greatly appreciate it!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [April 5, 2016, 1:46pm UTC](https://forums.unrealengine.com/t/error-in-ue-4-8-0-preview-4-when-hud-and-vr-preview/320857/11 "2016-04-05T13:46:54Z")

</div>

Hello ,

Depending on your needs a viable solution may be to use 3D widgets instead of adding them to the screen. I hope that this information helps.

Link: [https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/Create3DWidgets/index.html](https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/Create3DWidgets/index.html)

Make it a great day
