Jump to content

WebVRFreeCamera is splitting canvas into two parts


Recommended Posts

I am working with WebVR in BABYLON.js. And when I use WebVRFreeCamera (either directly or via. WebVR experience helper). On the screen (canvas in a browser window), the image is split into two eyes.

I suppose that is because of performance.
Can I somehow render there only one view?

Thanks for your suggestions.

Link to comment
Share on other sites

Yea, when entering VR the screen shows exactly what is presented to the HMD to avoid an additional render to display a custom view for the screen. When the new webXR spec is supported in browsers sometime next year it will automatically only show one eye. See the mirroring section here: https://github.com/immersive-web/webxr/blob/master/explainer.md . You could try showing a portion of the canvas when entering vr to workaround the issue for now if needed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...