Jump to content

WebVR support from Edge, but spec from 1.0 - > 1.1


pindiespace
 Share

Recommended Posts

Well, good news is that Microsoft is going to support WebVR in the Edge browser. This is great, since it means that the Hololens and similar AR device may be accessible to web programming.

However, to make it work with these devices, the WebVR spec just added and deprecated some functions. Apparently AR devices provide detailed rendering info that wasn't addressed in the WebVR 1.0 spec - the 1.1 upgrade fixes that.

Migration Guide: https://github.com/w3c/webvr/blob/gh-pages/migration.md

Updated samples: https://webvr.info/samples/

JS Shim for Chromium (which still has the 1.0 spec)

https://github.com/w3c/webvr/blob/gh-pages/js/webvr-1-1.js

The big issues:

Replace VRDisplay.getPose() with VRDisplay.getFrameData()

Use projection matrices provided by VRFrameData, instead of computing from VREyeParameters.fieldOfView()

Use the view matrices from VRFrameData, instead of computing from pose + eye offsets

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