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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebXR wont work on iOS #18

Open
ivnnv opened this issue Apr 27, 2020 · 0 comments 路 May be fixed by #19
Open

WebXR wont work on iOS #18

ivnnv opened this issue Apr 27, 2020 · 0 comments 路 May be fixed by #19

Comments

@ivnnv
Copy link
Contributor

ivnnv commented Apr 27, 2020

Hi @toji,
I have tried to do my best to document and report a bug on the webxr polyfill that causes iOS not to be able to use WebXR on this demo (Im trying to make a working q3 cardboard gameplay 馃槵)

I have seen you had previously contributed to both the examples and the polyfill repos, so maybe this is something you could be able to fix or point me in the right direction to make the view to attach to the device movement:

I made a workaround adding the above on main.js->initEvents():

window.addEventListener('deviceorientation', (event) => {
  const yPos = isXRPresenting() ? event.gamma : event.beta;
  moveLook(-event.alpha * 10, -yPos * 10);
});

which initially "works more or less", but need to figure out how properly transform event's alpha, beta, gamma values to moveLook parameters.

Thanks in advance.
Best.

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

Successfully merging a pull request may close this issue.

1 participant