Add a getter for "session" in WebXR
See original GitHub issueDescription of the problem
It would be very helpful if I could get the session
, and the XRInputDevice
, specially the “handedness”, and “pointerOrigin” properties. The only way I find to do this now, is by changing my three.js file, which obviously not a nice solution.
I think the best way would be something like this:
var session = renderer.vr.getSession();
, then
var inputDevice = session.getInputSources();
Or is there already a way to get this, and I couldn’t find it…?
Three.js version
- Dev
- r94
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Starting up and shutting down a WebXR session - Web APIs
Preparing the new session for use · Add handlers for the events you need to watch. · If you use XR input controllers,...
Read more >Create an immersive AR session using WebXR | ARCore
This page will guide you through creating a simple immersive AR application using WebXR. You'll need a WebXR-compatible development ...
Read more >WebXR Device API - W3C
The xr attribute's getter MUST return the XRSystem object that is associated with it. ... Append session to the list of inline sessions....
Read more >Adding AR to an online shop, using WebXR and ThreeJS
A video from my Udemy course 'Learn to Create WebXR, VR and AR, Experiences using ThreeJS'Get the full course at a discount ...
Read more >WebXR Device API - Input - Immersive Web
For context, it may be helpful to have first read about WebXR Session ... object in order to keep the API flexible enough...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@soadzoor It still needs to be review by @mrdoob
Any reason why the PR is not merged yet? 😕