# Debug drawing glitched in VR with Instanced Stereo in 4.13

**URL:** <https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031>\
**Category:** XR Development\
**Tags:** debug-trace, unreal-engine, question\
**Created:** [September 1, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031 "2016-09-01T19:42:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f6e9085c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f6e9085c](https://forums.unrealengine.com/u/anonymous_user_f6e9085c)\
**Post date:** [September 1, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/1 "2016-09-01T19:42:16Z")

</div>

Steps:

1. Make a new project in 4.13
2. Enable Instanced Stereo rendering
3. Draw debug lines somewhere
4. Look at it in VR and notice how the lines are not drawn correctly.

Here are screenshots from my project:

Incorrect image, instanced stereo ON. Notice how both debug lines originate from right eye

 ![105297-incorrect.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/d/56db17bfdd2b094cca3cc2d02e184e8d8340497d.jpeg)

Correct image, instanced stereo OFF

 ![105296-correct.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/5/2f52e1213e09ea648bfcd03342dd91325d633d8b.jpeg)

---

<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:** [September 1, 2016, 8:52pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/2 "2016-09-01T20:52:15Z")

</div>

Hello AadarshPatel,

This issue sounds similar to a known issue. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

1. What VR device are you currently using?
2. Are you using the new VR Template in 4.13?
3. If so, can you reproduce this issue in a clean blank project (not VR template)?
4. If so, could you provide a detailed list of steps to reproduce this issue on our end?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f6e9085c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f6e9085c](https://forums.unrealengine.com/u/anonymous_user_f6e9085c)\
**Post date:** [September 1, 2016, 10:19pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/3 "2016-09-01T22:19:43Z")

</div>

1. We tested on both Oculus RIft and , and both had glitched debug lines when Instanced Stereo rendering was enabled.
2. It was glitched in our existing project that we upgraded from 4.12.5, a new VR Template project, and a clean blank project
3. Yes!
4. Enable Instanced Stereo rendering, draw debug lines (drawing them from motion controllers makes it easy to test), run in VR Preview

I attached the clean project: [link text][2]

With Instanced Stereo enabled on a clean project:

 ![105307-incorrectclean.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/c/c/dcc34109bc73c94f11aa30e0e76af9e242dc86ad.jpeg)

With Instanced Stereo disabled on the same clean project:

 ![105308-correctclean.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/3/c134ead9db51864224389be677fd5dcd66c3f0e9.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_afa9edf11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_afa9edf11](https://forums.unrealengine.com/u/anonymous_user_afa9edf11)\
**Post date:** [September 2, 2016, 1:01am UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/4 "2016-09-02T01:01:44Z")

</div>

I have something that may be similar.

If you add a collision box to the BP\_PickupCube under StaticMeshComponent inside the new VR Template on the MotionControllerMap in 4.13 release, and select HiddenInGame = false/check under Rendering section, you will get some very bad line rendering where the box is being shown

![105332-ue4debuglinebug4_13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/a/5aa0f9f94ae8a7830b808fa2baff3938381a4ec9.jpeg)

Quick questions:

What VR device are you currently using?  
\*\*HTC \*\*

Are you using the new VR Template in 4.13?  
**Yes**

If so, can you reproduce this issue in a clean blank project (not VR template)?  
**Yes**

If so, could you provide a detailed list of steps to reproduce this issue on our end?

\*\*If you add a collision box to the BP\_PickupCube under StaticMeshComponent inside the new VR Template on the MotionControllerMap in 4.13 release, and select HiddenInGame = false/check under Rendering section, you will get some very bad line rendering where the box is being shown. Set Rendering Box Extent to (X=94.000000,Y=128.000000,Z=68.000000) if having issue reproducing. I get very unexpected results, that does not happen in my current non template project from 4.12 \*\*

May be related…

---

<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:** [September 2, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/5 "2016-09-02T15:22:53Z")

</div>

Hello AadarshPatel,

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

Link: [https://jira.ol.epicgames/browse/UE-35513](https://jira.ol.epicgames/browse/UE-35513)

Make it a great day

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8b5b8fa8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8b5b8fa8](https://forums.unrealengine.com/u/anonymous_user_8b5b8fa8)\
**Post date:** [July 29, 2017, 4:11pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/6 "2017-07-29T16:11:54Z")

</div>

as of 4.16.2 still there the problem!!!

---

<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:** [July 31, 2017, 1:18pm UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/7 "2017-07-31T13:18:38Z")

</div>

I have retested this issue an it appear to still be occurring. I have reopened this issue.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Ecnassianer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ecnassianer](https://forums.unrealengine.com/u/Ecnassianer)\
**Post date:** [September 16, 2018, 7:29am UTC](https://forums.unrealengine.com/t/debug-drawing-glitched-in-vr-with-instanced-stereo-in-4-13/369031/8 "2018-09-16T07:29:26Z")

</div>

This got Won’t Fixed ☹
