Skip to content

Hint for VR in AR WebXR sessions. #1402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AdaRoseCannon opened this issue Mar 4, 2025 · 3 comments
Open

Hint for VR in AR WebXR sessions. #1402

AdaRoseCannon opened this issue Mar 4, 2025 · 3 comments

Comments

@AdaRoseCannon
Copy link
Member

/facetoface This came up in today's call (4/3/25). There have been experiences in the wild want to run almost entirely in VR then occasionally use the AR pass through features. Currently this results in large power and performance requirements as the AR systems are active but not being utilised. Should we have a new session type or an API to quickly allow switching between AR and VR?

@cabanier
Copy link
Member

The proposal is to have a switch to disable calculation of the AR passthrough so sessions can seamlessly switch between VR and AR.

@m-blix
Copy link

m-blix commented Mar 18, 2025

What would this look like in code, Something like the below? I would think we would want a promise as operation to enable/disable could take a while.

session.toggleAR().then((enabled) => {
  console.log('enabled?', enabled)
})

@cabanier
Copy link
Member

What would this look like in code, Something like the below? I would think we would want a promise as operation to enable/disable could take a while.

session.toggleAR().then((enabled) => {
console.log('enabled?', enabled)
})

It could be something in the renderstate. That way it's easy to read and write and it's well defined when it's applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants