Is depth map viewing possible with gyro?

  • Would it be possible to look around in a depth map tour using the gyro on the phone, instead of manually clicking/dragging?
    If this is a stupid question then I apologise but we have created a mobile app that allows a user to walk through an AR door into a 360 image (another world). The problem is that the user if fixed in a single position. The ability to navigate through a depth map is amazing and if this was combined with the ability to look around (not move), using the phones gyro then it would create a really immersive experience.

    From our AR app we would of course also need to call KRPano so that when the user walked through the AR door, the depth map tour appeared.
    What we are trying to do is to find an immersive way of having users enter tours using an app.

    Your comments would be greatly appreciated.

    Geoff

  • Hi,

    there is already gyro support and it also works with depthmap panos.

    But just looking around doesn't change the view-point, so adding a small view.oz offset might be a good idea to get a bit parallax movement and nice '3D-look' even on 2D screens.

    E.g. try (or another value in the range 10 to ~200, depending on the model):

    Code
    <view oz="100" />

    Here an example with oz=50 and the gyro added:
    https://krpano.com/releases/1.20/viewer/krpano.html?xml=examples/depthmap/depthmap-images/depthmap-images.xml&view.oz=50&plugin[gyro].url=%VIEWER%/plugins/gyro2.js&plugin[gyro].keep=true

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!