theatre-js / theatre

Motion design editor for the web
https://www.theatrejs.com
Apache License 2.0
10.82k stars 338 forks source link

animation frozen when enter into immersive AR or VR mode on Quest browser #477

Closed jerryhou77 closed 3 months ago

jerryhou77 commented 4 months ago

We use theatre.js on a-frame (based on three.js) 3D web page, it works well on PC and Quest browser flat mode, but when we enter AR or VR mode, the aninmation froze, when we exit the immersive mode to flat mode , the animation can continue play. is this an issue, or the theatre.js did not support AR / VR mode from begining, thanks.

AriaMinaei commented 3 months ago

@jerryhou77 For VR/AR, you should use a custom rafDriver since immersive mode doesn't use the main window's requestAnimatinFrame loop.

Feel free to ask on Discord :)