vasturiano / aframe-globe-component

3D Globe data visualization component for A-Frame
https://vasturiano.github.io/aframe-globe-component/
MIT License
32 stars 11 forks source link

Animations not working on headset #14

Open edhyah opened 2 years ago

edhyah commented 2 years ago

Hello,

I was looking through your demos on https://vasturiano.github.io/aframe-globe-component/, and noticed that while animations work on browser, they don't work when I enter VR mode on my Oculus Quest 2.

For example, in the random arcs example, the arcs do not animate. In the satellites example, the satellites are stationary.

Any idea what I'm doing wrong?

Thanks!

vasturiano commented 2 years ago

@edhyah thanks for reaching out.

I believe this is happening because the Immersive Web Experience app (that gets launched when you hit the VR mode in the default Oculus Quest browser), is not firing any calls to requestAnimationFrame(). And the examples you mentioned all rely on being able to request frames via this standard js functionality.

I'm not sure why this is, or whether anything can be done about it. But at least it's clear that it's specific to the "Immersive Web" app. If you try on a different Oculus browser, like Firefox Reality it works as expected in VR mode.