Sie sind nicht angemeldet.

1

Mittwoch, 18. August 2021, 14:46

Cordova VR - Wrong Orientation

Hey guys,

I'm trying to convert a krpano tour to a standalone android application via cordova. This application should run on a standalone vr headset.

The tour itself is running, but the problem is that the orientation is off. The panorama is rotated about 90°, but the interface isnt. Does anyone know what could be the issue? In cordova I set the device orientation to landscape.

2

Freitag, 27. August 2021, 13:02

Hi,

I think you would probably need to report/forward the real device orientation correctly to the webview.

Best regards,
Klaus

3

Montag, 30. August 2021, 11:29

Hey Klaus,

I tried different things.

Your "hack" mentioned in another thread wasnt working for me:

Quellcode

1
(window.screen=JSON.parse(JSON.stringify(window.screen))).orientation={type:"portrait"}


I also tried different settings, with portrait/landscape etc. in the cordova settings, without any effect. But sadly I'm out of ideas

4

Dienstag, 31. August 2021, 17:57

Hi
I try to concert KRpano to APK for Oculus Quest
But in the Quest i have floating windows and on VR Mode impossible to view full screen with headset movement :(
You have an idea ?


Thank you for your help

5

Montag, 13. September 2021, 09:39

Hi,

the webview would need to support the WebXR API and I must admit I doubt that this is currently the case.

Best regards,
Klaus

6

Mittwoch, 20. Oktober 2021, 10:30

Sadly I dont have access to the headset anymore. Next time I will try to check if I can enable WebXR via Cordova.