question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a getter for "session" in WebXR

See original GitHub issue
Description 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:closed
  • Created 5 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, Sep 15, 2018

@soadzoor It still needs to be review by @mrdoob

0reactions
soadzoorcommented, Sep 14, 2018

Any reason why the PR is not merged yet? 😕

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found