irllabs / simplevr

0 stars 0 forks source link

Weird layers appearing on VR view #64

Closed mericda closed 3 years ago

mericda commented 3 years ago

Trying to view this story on VR mode: https://simplevr-stage.web.app/view/64e6dbf0-8804-11eb-99b8-69d808d27c50

and it shows like this:

image

mericda commented 3 years ago

@lazarmitic apart from this weird black stacked rectangles, I see that we still have a dark circle (VR button?) on the bottom right. It shouldn't be visible in VR view or is it a toggle to go back to the 2D view.

One more issue with these (top left and bottom right) buttons is that they overlap with VR mode viewer. We should move them out of VR viewer boundaries if that mode is active.

lazarmitic commented 3 years ago

There is an issue on iOS with VR mode (it does not toggle on properly, I will fix it). It works properly on android for now.

Quick question, did you get a prompt that asks you if you want to allow page to use device orientation (I assume you are on the iOS phone).

mericda commented 3 years ago

Yes, it asked me to use device orientation and sensors

On Sun, Mar 21, 2021 at 12:30 PM Lazar Mitic @.***> wrote:

There is an issue on iOS with VR mode (it does not toggle on properly, I will fix it). It works properly on android for now.

Quick question, did you get a prompt that asks you if you want to allow page to use device orientation (I assume you are on the iOS phone).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/irllabs/simplevr/issues/64#issuecomment-803646237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AES44JXFVYIIWLYBN22FJCLTEZCOBANCNFSM4ZRZ2WYA .

-- Sent on the go.

lazarmitic commented 3 years ago

I fixed the issue, latest version of AFrame seems to have issues with iOS, so I downgraded to same version we have on production, that one is working fine. I will try to figure out what's the issue with latest version and file an issue on AFrame repository (based on what I found, other people seem to have same problems).

Other things I found out are:

  1. Chrome on iOS can't go fullscreen.
  2. Safari on iOS can go fullscreen in VR mode.

Changes for Back and VR buttons:

  1. Once user activates VR mode, both buttons will disaper.
  2. When user turns phone back to portrait mode, VR mode is turned off and both buttons are visible again. (this is how it works on production currently on iOS so I just re-used what we have there). It would be nice to show user message that explains how to exit VR mode (turn phone to portrait orientation).