maddalihanumateja / aframe-portals

Implements the components required to create portals within an aframe scene
MIT License
12 stars 0 forks source link

cool experiment #3

Open coderofsalvation opened 2 years ago

coderofsalvation commented 2 years ago

Just wanted to say: cool experiment!

Btw. I've noticed that the portals don't show up after pressing the VR/AR button. Is there some initialization-code perhaps which needs to run again in VR/AR-mode?

maddalihanumateja commented 2 years ago

Thanks! Funnily enough, I don't recall testing this in VR/AR mode so you are very likely the first person to experience the issue so thanks for creating a formal GitHub issue for documentation purposes. It's been some time but I'm sure there isn't any separate initialization code. I'm not sure why the portals disappear but if you do figure it out please do let me know or share a link to your own repo (or fork) here. Thanks.

On Mon, Dec 27, 2021, 3:59 PM coderofsalvation @.***> wrote:

Just wanted to say: cool experiment!

Btw. I've noticed that the portals don't show up after pressing the VR/AR button. Is there some initialization-code perhaps which needs to run again in VR/AR-mode?

— Reply to this email directly, view it on GitHub https://github.com/maddalihanumateja/aframe-portals/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3KBJPGSP4N4DNRRGNXOQ3UTDHTDANCNFSM5K26QAGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

maddalihanumateja commented 2 years ago

Probably a bit late but I ran into a solution on stackoverflow and tested it out on a different project. Disabling XR, rendering, and re-enabling XR mode seems to work without any flickering as suggested by the accepted answer.

maddalihanumateja commented 2 years ago

Updated the code and the portal views are visible in VR mode on the Oculus browser. The setLayers function seems to be causing some issues now. I've disabled it on glitch https://aframe-portal.glitch.me so there's atleast a working example where the portal frames are still visible to the portal cameras.