Jump to content

Eye-level in DefaultVRExperience


ranagraw
 Share

Recommended Posts

Hello,

We are our scene through data coming from a third-party application and we would like to navigate through the scene in VR. We are using the WebVR Experience Helper with teleportation enabled - it works pretty well apart from one small issue. Calibrating the objects in the environment to the user's height such that the objects that are supposed to be at eye-level seem to be at the eye-level in VR is something we have to do manually right now. Is there a standard height (from the ground) that the user's eye level is at by default? Or does this depend on ground size/subdivisions? Also, does 1 unit in BabylonJS map to a real unit (feet/metre/etc.) in VR?

Let me know if my question seems a little unclear.

We are using Windows Mixed Reality Headsets for this.

Link to comment
Share on other sites

Hi @Ranveer,

welcome to the forum.

To your 2nd question - 1 unit in BabylonJS is meters when using (Web)VR. The size of your models depend of course on your definition of a unit.

To the first question - as the windows mixed reality devices don't have height from ground, you need to define the default height. It is done in the webVR Options when initializing the webvr camera (https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/VR/babylon.webVRCamera.ts#L199) . If you are using the VR Experience helper you can define it in the webvr options in the constructor as well (https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/VR/babylon.vrExperienceHelper.ts#L514)

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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