The hotspot looks like it's flying in VR mode...(oy)

  • Use your smartphone's VR mode.
    If you put in the value of ox, it will look like flying.
    I think there was no problem with the previous krpano...*confused*
    Is this the specification?

    Sorry for my bad English.
    I would be happy if you could help me.

    ex. krpano 1.21.2
    <hotspot type="text" height="400" width="500" />
    <hotspot type="text" html="AAAAA" oy="180" ox="220" />

  • Hi,

    what exactly do you mean with 'flying' in your case?

    And what hotspots? non-distorted, distorted?
    Do you have an example for testing/seeing?

    An one thing to consider for VR, is the depth setting, when not set to "off", the hotspot will have a certain 3D distance and not be 'infinity far' away like the pano image.

    Best regards,
    Klaus

  • Okay, I see now.

    Yes, there is problem here - in version 1.21 there is new hotspot behavior for non-zooming, non-distorted hotspots in VR mode. The viewer try to compensate the size changes by the perspective, but does this only for the size and not also for the ox, oy and align offsets...

    In the next version (1.22, soon) this will be fixed and additionally this non-scaling behavior will be disabled by default and put behind an optional setting.

    Here a workaround - this automatically enables the distorted-mode for these hotspots when in VR mode:

    Code
    <events name="hotspot_vr_fix" keep="true"
      webvr_onentervr="forall(hotspot, hs, if(!hs.zoom AND !hs.distorted, hs.vrfix=true; hs.distorted=true; ));"
      webvr_onexitvr="forall(hotspot, hs, if(hs.vrfix, hs.vrfix=false; hs.distorted=false; ));"
      />

Participate now!

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