ranagraw Posted March 8, 2018 Share Posted March 8, 2018 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 8, 2018 Share Posted March 8, 2018 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) ranagraw 1 Quote Link to comment Share on other sites More sharing options...
ranagraw Posted March 13, 2018 Author Share Posted March 13, 2018 @RaananW thanks, everything works as expected! RaananW 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.