• 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

  • 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:

    Code
    <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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!