# Needing only left-eye & right-eye canvas & vr controller

**URL:** <https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952>\
**Category:** Questions\
**Created:** [January 20, 2022, 12:37pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952 "2022-01-20T12:37:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aldeboarn77](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aldeboarn77/32/20500_2.png) [@Aldeboarn77](https://forum.babylonjs.com/u/Aldeboarn77)\
**Post date:** [January 20, 2022, 12:37pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/1 "2022-01-20T12:37:28Z")

</div>

I would like to draw my own content on a left-eye canvas and on a right-eye canvas. Also be able to use the vr controllers.  
My content is created in 3840 x 2160. What resolution is at the moment optimal? (Oculus quest 2)  
I hope someone can show me which (small) part of Babylon.js I could use to do this. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 20, 2022, 1:00pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/2 "2022-01-20T13:00:30Z")

</div>

The resolution is provided by your headset and is being set automatically by the XR session manager and the experience helper. There is no need to set the resolution on your own.

If you use the webxr default experience you get everything out of the box - [WebXR Experience Helpers | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/webXR/webXRExperienceHelpers#basic-usage-of-default-experience)

---

<div class="post-metadata">

**Author:** ![Aldeboarn77](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aldeboarn77/32/20500_2.png) [@Aldeboarn77](https://forum.babylonjs.com/u/Aldeboarn77)\
**Post date:** [February 1, 2022, 7:50am UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/3 "2022-02-01T07:50:47Z")

</div>

Thank you for replying!

I would like to deliver just some left-eye graphics (canvas) and some right-eye graphics (canvas) without WebGL. I did some extensive search but always WebGL showed up.  
I saw in the babylon.js code a nullengine and a thinengine. Is it possible to use that for my goal?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 1, 2022, 11:58am UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/4 "2022-02-01T11:58:51Z")

</div>

not quite sure what you mean 🙂

WebGL will be used to render WebXR scenes no matter what. You can split your canvas yourself, right in the middle, and have a kind of “right canvas left canvas” thing going on, but still, for rendering you will need WebGL (or any other rendering engine like WebGPU)

The nullengine will not render. it is meant for game logic on the server (for example).

BTW - even if you split a canvas and deliver it to a headset (not sure how, but let’s say you are theoretically able to do that), the projection will be incorrect and the image will be distorted in the headset. WebXR solves it for you, but again - WebXG requires webgl.

---

<div class="post-metadata">

**Author:** ![Aldeboarn77](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aldeboarn77/32/20500_2.png) [@Aldeboarn77](https://forum.babylonjs.com/u/Aldeboarn77)\
**Post date:** [February 1, 2022, 3:21pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/5 "2022-02-01T15:21:24Z")

</div>

I have some JavaScript code ready that makes both left and right eye graphics. And those graphics are interactive so it would suit me best to have less as possible needless calculations.  
If I could have a canvas via Babylon.js that shows up in my Oculus quest I could start experimenting, it does not matter if it is distorted, maybe I can correct that with some calculations.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [February 1, 2022, 3:48pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/6 "2022-02-01T15:48:26Z")

</div>

you can’t go “full screen” without WebXR… It might work on a google cardboard (i.e. go full screen), but to enter immersive mode, where your transformation is tracked you need webxlr ( and webgl)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 3, 2022, 12:32pm UTC](https://forum.babylonjs.com/t/needing-only-left-eye-right-eye-canvas-vr-controller/26952/7 "2022-03-03T12:32:01Z")

</div>

Hello @Aldeboarn77 just checking in, do you have any further questions? 🙂
