PavolHejný

WebVRFreeCamera is splitting canvas into two parts

Recommended Posts

Hi,
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.