opened
dmarcos
username_0
Initial WebVR Support:

1. Added button to the toolbar to toggle VR mode. Only present if the WebVR API is available (navigator.getVRDisplays). You can test in Firefox (screenshot below). [Below ROOT file link from local](http://localhost:8080/index.htm?nobrowser&json=https://root.cern/js/files/geom/simple_alice.json.gz&file=https://root.cern/js/files/geom/tracks_hits.root&item=simple_alice.json.gz+tracks_hits.root/tracks;1+tracks_hits.root/hits;1) 

![image](https://d3vv6lp55qjaqc.cloudfront.net/items/0g0v3D132g3Z0o2Z1i1s/Image%202018-12-20%20at%202.56.19%20AM.png?X-CloudApp-Visitor-Id=222920&v=99f8e344)

2. Mapped `Esc` keyboard to exit VR. Clicking the goggles button also toggles on/off VR mode.

![togglevr](https://user-images.githubusercontent.com/39342/50259763-acaedf80-0405-11e9-90de-c825ede5db7c.gif)

3. A headset will override the camera orientation and position. Added logic to save / restore position.

4. Goggles icon is from [aframe.io](https://aframe.io/). No licences issues
Add initial WebVR support
issue
created
linev
username_1
Thanks, Diego.
Unfortunately, I do not have VR glasses to test it immediately
comment