FlashyGoblin Posted September 14, 2016 Share Posted September 14, 2016 What would be the best way to detect for WebVR support in the browser (Firefox Nightly/Chromium with Oculus)? Ideally I would like to detect for it before I load up my scene and create the necessary cameras. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2016 Share Posted September 14, 2016 You can ask babylonjs if (engine.vrDisplaysPromise){ } V!nc3r and dbawel 2 Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted October 27, 2016 Author Share Posted October 27, 2016 On 9/14/2016 at 3:30 PM, Deltakosh said: You can ask babylonjs if (engine.vrDisplaysPromise){ } Doesn't seem to be doing the trick. http://www.babylonjs-playground.com/#VQU7Z#2 Plus, it would need to create a canvas element and Engine object to be able to do the check. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 29, 2016 Share Posted October 29, 2016 navigator.getVRDisplays().then(getWebVRDevices); https://github.com/BabylonJS/Babylon.js/blob/b6ce1efe940a1a464b3efbc396ecf799580b5a19/src/babylon.engine.js#L945 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.