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.

benji33

Intermediate

  • "benji33" started this thread

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

1

Friday, June 29th 2018, 11:51am

Gyroscope v2

How is the default view of a panorama taken in account during spot naviguation of non oriented scenes ?

For instance with this view tag the gyroscope returns the hlookat 0 & vlookat 0 position + gyroscope orientation as basis and in desktop the default view is respected with real hlookat and vlookat.
If I remember the gyro1 plugin wasn't do that into the 1.19-pr3 version and was using real hlookat and vlookat sets positions.

Something has changed with gyro2 if yes how to do? Thanks

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<view fisheye="0"
          limitview="range"
          hlookatmin="-180"
          hlookatmax="180"
          vlookatmin="-90"
          vlookatmax="90"
          maxpixelzoom="1.0"
          fovtype="VFOV"
          fovmax="90"
          fov="90.000000"
          hlookat="-97.590000"
          vlookat="0.000000"/>

2

Friday, June 29th 2018, 7:22pm

Hi,

here too - sorry, I don't understand what you mean...
The gyro plugin doesn't listen to any pano changes, it only adds the relative device rotations to the current view rotations...

If you want to reset the gyro back to the settings defined in the <view> element when loading a new scene you could do something like this:

Source code

1
<events onxmlcomplete="plugin[gyro].resetsensor(get(xml.view.hlookat));" />


See also the vtourskin.xml for example code, there this is also done when the 'webvr_gyro_keeplookingdirection' is disabled.

Best regards,
Klaus