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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The scene looks zoomed in after exiting VR on mobile #1714

Closed
mayognaise opened this issue Aug 4, 2016 · 9 comments
Closed

The scene looks zoomed in after exiting VR on mobile #1714

mayognaise opened this issue Aug 4, 2016 · 9 comments

Comments

@mayognaise
Copy link
Contributor

mayognaise commented Aug 4, 2016

on Mobile, after exit VR mode (stereo view), the scene looks like zoomed in.
This only happens on master branch. 0.2.0 works fine.

  • A-Frame Version: master branch
  • Platform/Device: Mobile
@dmarcos
Copy link
Member

dmarcos commented Aug 4, 2016

If you are on iOS rotate the phone so the canvas resizes appropriately. That's some quirk on the canvas iOS resize logic on device orientation changes where the resize event is not triggered. It affects 0.2.0 too and the webvr-polyfill examples.

@mayognaise
Copy link
Contributor Author

mayognaise commented Aug 4, 2016

hi @dmarcos, I found an example with webvr-polyfill and this works fine with mobile.
example

I just made a video to reproduce the issue:
http://cl.meowyo.com/gsbq
(Please see this on Chrome/Safari)

The link is referred by #1541

master
0.2.0

@mayognaise
Copy link
Contributor Author

mayognaise commented Aug 4, 2016

Hi I tried rotating the phone to landscape and back to portrait.
The scale seems to work but the position is still off.

here is the test

@dmarcos
Copy link
Member

dmarcos commented Aug 4, 2016

With that polyfill example you pointed out I also see viewport size issues on my iphone6 Plus. viewportSize

@mayognaise
Copy link
Contributor Author

I see. Do you think the polyfill got regression?

@dmarcos
Copy link
Member

dmarcos commented Aug 4, 2016

There's a known bug in webkit where WebGL based canvases composite incorrectly after changing size https://bugs.webkit.org/show_bug.cgi?id=152556

@dmarcos
Copy link
Member

dmarcos commented Aug 4, 2016

That's the root cause of these bugs. As far as I know 0.2.0 was also affected. On my iphone 6 Plus I had to trigger an orientation change cycle for the canvas to resize correctly after exiting VR mode.

@mayognaise
Copy link
Contributor Author

mayognaise commented Aug 4, 2016

can you try this page with your phone how it goes, please?
https://pocktvr.io/user/5722b6ffc406d91100170f5f/574f363baf8be111002b7b5a

  • click vr button in top right
  • rotate as landscape
  • rotate as portrait
  • exit vr

My iPhone 5s has no issue.. the Aframe version is 0.2.0

@mayognaise mayognaise changed the title The scene looks zoomed in after exit VR on mobile The scene looks zoomed in after exiting VR on mobile Aug 5, 2016
@ngokevin
Copy link
Member

I'm looking to see what we can do for the canvas resize issues on iOS. It doesn't reproduce for 0.2.0, but does easily for master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants