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

Head pose tracks without entering a VR session (Safari for Vision Pro) #5446

Open
dmarcos opened this issue Feb 4, 2024 · 2 comments
Open

Comments

@dmarcos
Copy link
Member

dmarcos commented Feb 4, 2024

Load example accept permissions prompt and will see camera tracking the headset orientation without even entering a VR session. I have not debugged yet but headset / device pose might be exposed via device motion / device orientation APIs? Meta Browser on Quest doesn't behave this way

kk.mp4
@dmarcos
Copy link
Member Author

dmarcos commented Feb 4, 2024

For full context, A-Frame uses Device orientation events for Magic window mode on mobile devices. It looks like Vision Pro might be unique in that it exposes the headset orientation via DeviceOrientationEvent. Not sure if it's intentional on Vision Pro's side or behavior inherited unintendedly from Safari for iOS

@dmarcos
Copy link
Member Author

dmarcos commented Feb 20, 2024

I'm not sure if exposing headset orientation via DeviceOrientation events is the right way to go. I think at least behavior across browsers should be consistent to avoid different app logic dependent on userAgent.

cc @rcabanier @AdaRoseCannon because some coordination across browsers might be needed to resolve this

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

No branches or pull requests

1 participant