Skip to content
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

Can't seem to run the samples on latest Chrome on an M2 Macbook pro? #231

Open
jojonarte opened this issue Jan 4, 2023 · 8 comments
Open
Labels
question A general question or query about WebXR or react-xr

Comments

@jojonarte
Copy link

jojonarte commented Jan 4, 2023

Is this a Chrome version thing? or is it likely because I'm on an M2 Mac?

I was trying to run the examples in the home README.md page.

@jeffscottward
Copy link

I would post a CodeSandbox example of your code and then others can give you a thumbs up thumbs down.

@jojonarte
Copy link
Author

Sorry, just updated my original post. Was just trying the samples at the front page README.md

@CodyJasonBennett
Copy link
Member

CodyJasonBennett commented Jan 4, 2023

Apple does not implement OpenXR and WebXR on MacOS and iOS respectively, those would only work on Chrome for Android, on a WebXR enabled device, or both on Chrome for Windows. You can verify with navigator.xr?.isSessionSupported('immersive-ar').then(console.log) which buttons use to check for support.

@jeffscottward
Copy link

jeffscottward commented Jan 4, 2023 via email

@CodyJasonBennett
Copy link
Member

CodyJasonBennett commented Jan 5, 2023

You can't use WebXR on MacOS or iOS. Browser APIs like WebXR require an XR subsystem to work; they have to be wired into the OS and some require specific hardware. WebXR is implemented on Safari beta but isn't connected to anything, so there's hope at this changing in the mid future.

@jojonarte
Copy link
Author

jojonarte commented Jan 5, 2023

In the demo here it's being run on a codesandbox on a web browser https://www.youtube.com/watch?v=CCT1YG_Ay9A

The environment looks to be a mac as well. I'm wondering how is that done.

@CodyJasonBennett
Copy link
Member

The best you can do on-device would be via an emulator https://chrome.google.com/webstore/detail/webxr-api-emulator/mjddjgeghkdijejnciaefnkjmkafnnje. For that presentation, you're seeing a Quest headset.

@saitonakamura saitonakamura added the question A general question or query about WebXR or react-xr label Jan 16, 2023
@saitonakamura
Copy link
Sponsor Collaborator

@jojonarte does it answer your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A general question or query about WebXR or react-xr
Projects
None yet
Development

No branches or pull requests

4 participants