You are not logged in.

1

Sunday, May 5th 2019, 11:51am

Real wear HMT-1

I look at the android in the Real wear HMT-1 gadget, it has only a horizontal screen, the gyroscope works, but when you turn on the gyro in krpano, it flips 90 degrees counterclockwise (as if it recognizes that the device is standing vertically). "


Tell me, can I change the settings? *question*

2

Tuesday, May 7th 2019, 12:07pm

Hi,

then that means that device is reporting wrong gyro values or wrong screen orientation values to the browser...

I will consider adding an API for forcing a custom screen orientation or applying a custom additional rotation...

Maybe you could try also that hack:

Source code

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

Call that JS code before embedding krpano.
That code would overwrite the 'screen' object and set a custom screen orientation, instead of 'portrait' you can also try 'landscape'.

Best regards,
Klaus

3

Tuesday, May 7th 2019, 1:46pm

Thanks for the info and for the quick response!