You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

spacerywirtualne

Professional

  • "spacerywirtualne" started this thread

Posts: 1,112

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

1

Tuesday, March 28th 2023, 10:57pm

IOS 16.4 iPhone 11 pro max - inverted VR view

Hi

Can you confirm that in Safari and IOS 16.4 in VR mode, the view is inverted by 180 degrees? The gyroscope also works inverted...



*huh* *cry*

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

2

Wednesday, March 29th 2023, 10:43am

Hi,

I can confirm - the orientation in landscape is inverted...

The reason is that with iOS 16.4 the 'Screen Orientation API' was added to Safari:
https://webkit.org/blog/13966/webkit-fea…orientation-api

But unfortunately with opposite(!) landscape rotation angles compared to Android devices,
and also opposite the 'window.orientation' angle...

So I'm not even sure if that is intended or a bug in iOS...

The krpano gyro and webvr plugins are using that Screen Orientation API preferred when it is available.
But I will change that now and prefer the usage of 'window.orientation' on iOS instead (as before) and also invert the 'Screen Orientation API' values for iOS in case if the 'window.orientation' might become removed in future and iOS keeps the current landscape rotation angles...

There will be a release today where this is fixed.

Best regards,
Klaus

Tuur

Sage

Posts: 3,784

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Wednesday, March 29th 2023, 11:03am

Ohh this is a nasty issue for older already delivered and/or published projects
*evil*

Tuur *thumbsup*

4

Wednesday, March 29th 2023, 11:16am

Right, that's nasty!

Especially because the opposite/inverse values to all previous orientation information and implementations are used...

But maybe it's a really an iOS bug and not intention and Apple will change/fix that...

Anyway the next release should be more hardened against unexpected changes.

spacerywirtualne

Professional

  • "spacerywirtualne" started this thread

Posts: 1,112

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

5

Wednesday, March 29th 2023, 12:25pm

On beta 16.5 IOS the view is still upside down in VR mode.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

6

Thursday, March 30th 2023, 11:34am

Hi,

here the fixed version:
krpano 1.21 (pre-release)

Best regards,
Klaus

spacerywirtualne

Professional

  • "spacerywirtualne" started this thread

Posts: 1,112

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

7

Thursday, March 30th 2023, 12:18pm

*thumbsup* Thank you.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

8

Thursday, March 30th 2023, 4:11pm

iOS 16.4 (and 16.5 beta) VR Mode

Nice fast fix to this nasty problem Klaus.
Seems to be working perfectly!

Big thanks to you all for this!You guys are the best! *thumbsup*

9

Saturday, April 1st 2023, 11:18am

Hi,

I have created also a test-case and a bug-report for Apple here:

Test-case:
https://krpano.com/ios/bugs/ios164-screen-orientation/

Bug-report:
https://bugs.webkit.org/show_bug.cgi?id=254863

Best regards,
Klaus