WebVR plugin, right eye missing when entering VR from portrait mode.

  • Hi all,
    I created a simple tour using the latest krpano version (1.20.6). I used the "MAKE VTOUR (VR-OPT)" droplet and didn't modify the tour.xml that the droplet generated. On every phone I've tried to access the VR mode from, I have the following glitch: if the phone is in landscape mode when accessing VR, everything works perfectly, but whenever I access VR from portrait mode, I can only see the first half of the left eye and have to exit VR and enter again in landscape mode for it to work properly.

    My tour is uploaded at https://migueldeavila.github.io/SimplePanoTour/index.html and the .xml is at https://migueldeavila.github.io/SimplePanoTour/tour.xml

    If anyone could enlighten me as to what's going on, I would really appreciate it!

  • The problem is that when I enter from portrait mode I want it to automatically switch to landscape. It does do that, but the right eye goes missing during the transition and it looks very ugly. I tested with a Samsung Galaxy A50 and Galaxy A70

  • I was able to solve this by removing the webvr setting overrides that were in the vtourskin.xml file. Replaced this:

    <!--plugin name="webvr" keep="true" devices="html5.and.webgl"	        url="calc:skin_settings.webvr == true ? '%VIEWER%/plugins/webvr.js' : null"	        onavailable="skin_webvr_onavailable();"	        onentervr="skin_showloading(false); webvr_onentervr(); skin_webvr_setup(); skin_reloadscene_webvr();"	        onexitvr="webvr_onexitvr(); skin_webvr_setup(); skin_reloadscene_webvr();"	        -->


    <plugin name="webvr" keep="true"/>
  • I managed to fix the bug when entering VR from portrait mode but the bug still persists when doing transitions in VR using hotspots. Does anyone know what causes something like the image I posted above?

  • Hi,

    try changing the webxr setting the html file back to the default "auto":

    In your screenshot it looks like the Android Chrome and it's buggy WebXR mode is used.

    When using the "auto" setting, krpano will use its own 'MobileVR' mode instead of the Android Chrome WebXR mode.

    You could test the different VR APIs also here on your device:

    Best regards,

  • Thank you Klaus, after changing the setting back to auto the VR function works properly when visiting the site directly.

    However, the VR option is now missing whenever I embed my site into an iframe, even if I include the following line


    The VR option does appear to be available inside an iframe only when I set webxr to prefer. Can you think of any workaround to embed my tour into an iframe?

  • The krpano MobileVR mode is using the accelerometer and gyroscope sensors for the motion tracking in VR, not the browsers WebVR or WebXR APIs.

    Try that:


Participate now!

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