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.

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 203

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

1

Monday, December 4th 2017, 6:56pm

Gyro without Gyroscope Sensor in krpano 1.18.5, but not in krpano 1.19... [SOLVED]

Why not a gyro option (as 1.18.5) for mobile without gyroscope sensor but others that simulate it...? Other APP as ThetaS, TurnMe works fine.

Regards,

Fernando.

This post has been edited 3 times, last edit by "publicitarios360" (Dec 14th 2017, 5:33pm)


2

Tuesday, December 5th 2017, 2:40pm

Hi,

which device and browser?

Best regards,
Klaus

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 203

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

3

Tuesday, December 5th 2017, 7:07pm

Hi, thanks Klaus for your fast answer.

The device is a very cheap mobile, but the google cardboard is too very cheap ;-)

Mobile LG LGMS345 Android 5.1.1 ---TEST GYRO PASS in 1.18.5 anf FAIL in 1.19.14

Sensors: a) Accelerometer b) Magnetometer c) Rotation d) Orientation e) GYROSCOPE NOT AVAILABLE

Brorwsers: Firefox 34.0 - WebGL Android (rv 34.0)

In the Gyroscope example of 1.18.5 the gyro works fine (pan and tilt), and the message is: Gyroscope avaliable, press gyro button.
(Note: The pan and tilt motion are not perfectly fluid, but acceptable.)

In the example of release 1.19.14, the apartment, only works the tilt.

other APP
a) Turme: Gyro works fine (as krpano 1.18.5)
b) Theta: Gyro works fine (as krpano 1.18.5)

Maybe there it would possible to detect rotation and orientation sensors to allow a acceptable inmersive experience for low range mobiles.

Best regards,

Fernando.

4

Tuesday, December 12th 2017, 6:14pm

Hi,

the old gyro.js plugin (in 1.18) was using the 'deviceorientation' event from the browser for the gyro control.
But the implementation of the gyroscope data in that event was very poor in many Android browsers, the data was incorrect at poles, jerky and inaccurate (today it might be already better).

Therefore as alternative the newer gyro2.js plugin (since 1.19) is using the newer 'devicemotion' event. This event provides more raw data and requires more processing but allows a way more precise and responsive gyro tracking.


Note: The pan and tilt motion are not perfectly fluid, but acceptable

Depending on the device the 'deviceorientation' might return also some data without real gyroscope, but then that data would be interpolated by the system from the other sensors. Typically the quality of that is very low and very device-depended. Maybe it's 'acceptable' for some cases, but e.g. for VR it would be an absolute no-go.

So you could either use the older gyro.js plugin instead of the gyro2.js - or add sensor="0" to the gyro2 plugin declaration. This (undocumented) settings tells the gyro2 plugin also to use the 'deviceorientation' event instead of the 'devicemotion' event.

But I wouldn't recommend that - this way you will penalize the users that have better devices with real gyroscope sensors...


Maybe there it would possible to detect rotation and orientation sensors to allow a acceptable inmersive experience for low range mobiles.
The problem is that it's not possible to detect the available sensors in Javascript.

Best regards,
Klaus

publicitarios360

Intermediate

  • "publicitarios360" started this thread

Posts: 203

Location: Habana, Cuba

Occupation: Architect, Photographer, Programmer.

  • Send private message

5

Wednesday, December 13th 2017, 10:11am

Hi, thanks very much Klaus, it is all clear for me now.

I tried the sensor="0" and work in portrait position but in landscape position is erratic (vertical turns, mirror jump). It is fatal for testing cardboard or another cheap devices. The quality motion is poor as older version gyro or other software when there is not gyroscope sensor.
But I wouldn't recommend that - this way you will penalize the users that have better devices with real gyroscope sensors...
But your previous argument is enough strong for not wast time without gyroscope, due to it's not possible to detect the available sensors.


OK, 100% agree with all.


Best regards,


Fernando.