# \[BUG\] SceneCapture2D displaying black bar artifact in VR

**URL:** <https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846>\
**Category:** XR Development\
**Tags:** scenecapture2d, artifacts, unreal-engine, bug-report, render-target, question\
**Created:** [October 24, 2017, 5:41pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846 "2017-10-24T17:41:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![soylent\_me](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soylent\_me](https://forums.unrealengine.com/u/soylent_me)\
**Post date:** [October 24, 2017, 5:41pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/1 "2017-10-24T17:41:43Z")

</div>

A black vertical bar appears on the render target when displaying output from SceneCapture2D in VR. Increasing screenpercentage to 143 for a 1920 \* 1080 render target removes the black bar but of course causes a nasty performance hit.

---

<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 27, 2017, 2:09pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/2 "2017-10-27T14:09:18Z")

</div>

Hello soylent\_me,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. Can you reproduce this issue in a clean project?
2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
3. Can you provide screen shots of any settings/blueprints that may be involved?

---

<div class="post-metadata">

**Author:** ![soylent\_me](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soylent\_me](https://forums.unrealengine.com/u/soylent_me)\
**Post date:** [October 27, 2017, 4:37pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/3 "2017-10-27T16:37:34Z")

</div>

I’m traveling at the moment but as I recall, one needs to:

1. Create a scenecapture2d and rendertarget, assign the scenecapture2d to the rendertarget, and create a material from the rendertarget.
2. Create a Plane object and apply the material.
3. Set rendertarget to resolution 1920\*1080
4. Set the material to unlit and emissive (I don’t think this is relevant but just in case)
5. Play with VR Preview and Voila! Vertical black bar

I found another user (@alecmoody) with what appears to be the same [issue](https://answers.unrealengine.com/questions/679145/scenecapture-2d-has-black-bar-on-render-target-in.html):

> I was attempting to set up spectator screens to capture some VR gameplay footage from different angles and I am seeing this artifact. A few details: \*It only occurs in VR mode \*The black bar is actually in the texture generated by the render target \*The width and position of the black bar is determined by a ratio of r.ScreenPercentage and the render target size: [http://i.imgur.com/yDj2vNu.jpg](http://i.imgur.com/yDj2vNu.jpg) For a 1920x1080 render target r.ScreenPercentage 143 moves the bar fully to the right. As the r.ScreenPercentage gets smaller it moves to the left.
> 
> Image of the render target itself captured during play: [http://i.imgur.com/WKaSrU3.jpg](http://i.imgur.com/WKaSrU3.jpg)
> 
> I’m using a Rift, 1070, and latest nvidia driver.

---

<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 31, 2017, 3:18pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/4 "2017-10-31T15:18:19Z")

</div>

Hello soylent\_me,

I was able to reproduce to this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-51811)](https://issues.unrealengine.com/issue/UE-51811)

Make it a great day

---

<div class="post-metadata">

**Author:** ![soylent\_me](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@soylent\_me](https://forums.unrealengine.com/u/soylent_me)\
**Post date:** [October 31, 2017, 3:40pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/5 "2017-10-31T15:40:12Z")

</div>

Brilliant, thanks!

---

<div class="post-metadata">

**Author:** ![Fae\_Corrigan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fae\_Corrigan](https://forums.unrealengine.com/u/Fae_Corrigan)\
**Post date:** [December 18, 2017, 7:17pm UTC](https://forums.unrealengine.com/t/bug-scenecapture2d-displaying-black-bar-artifact-in-vr/407846/6 "2017-12-18T19:17:07Z")

</div>

I have the exact same issue in the same circumstances and have discovered a quirk. If you have 2 visible render targets at 1920\*1080 only one of them has the black bar.

 ![224288-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/e/6ce7e436706851201ff3911f4b4112731d9d9eac.jpeg)
