• Hi all

    I'm updating an old project to webvr. I'm using this build INFO: krpano 1.21.1 (build 2023-11-23) and all the plugins that came with it.

    I'm having a problem with pano align in webvr. When i loade a new scene the images rotate (or not rotate).

    All the images ARE NOT pointing north but they are aligned. This means that if I use pageup and page down to switch scenes in a path I keep looking the same way

    I used prealign in the image tag to align all the images. I did not care about north at the time .

    When I try with webvr (phone or oculus go) seems the pre-align is not working .. or something else that I do not know.

    I don't have lat="" lng="" heading="" with values in scene element.

    i use loadscene_flags thar are set to loadscene_flags="MERGE|KEEPVIEW"

    The images are declared like so ( i just added the vr images for faster loading in vr )

    <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

    <image if="!(webvr.isenabled OR device.mobilevr)" prealign="0|112|0">
    <cube url="panos/2021_02_28_11_27_55_DSC06228_HDR_Panorama.tiles/l%l_%s_%v_%h.jpg" multires="1024,1024,1536,3584,7168" />
    </image>

    <image if="webvr.isenabled OR device.mobilevr" prealign="0|112|0">
    <cube url="panos/2021_02_28_11_27_55_DSC06228_HDR_Panorama.tiles/vr/pano_%s.jpg" />
    </image>


    plugin declarations (pretty much the default) ->
    <plugin name="webvr" devices="html5" keep="true"
    url="webvr.js"
    mobilevr_support="true"
    mobilevr_touch_support="true"
    mobilevr_fake_support="true"
    mobilevr_profile.normal="90|60|42|0|0|0"
    mobilevr_profile.mobile="80|60|42|35|0.441|0.156"
    mobilevr_wakelock="true"
    fullscreen_mirroring="false"
    mouse_pointerlock="true"
    vr_cursor_onover="if(handcursor, tween(hotspot[vr_cursor].scale,0.4,0.1); vr_auto_click(get(vr_timeout)); );"
    vr_cursor_onout="tween(hotspot[vr_cursor].scale,0.3,0.1);"
    onavailable="webvr_onavailable();"
    onunavailable=""
    onunknowndevice="webvr_onunknowndevice();"
    onvrcontrollers="webvr_onvrcontrollers();"
    onentervr="webvr_onentervr();"
    onexitvr="webvr_onexitvr();"
    ondenied="webvr_ondenied();"
    vr_controller_support="false"
    />


    <plugin name="skin_gyro" keep="true"
    url="%SWFPATH%/plugins/gyro2.js"
    enabled="false"
    camroll="true"
    absolute="false"
    north="0"
    friction="0.0"
    touch_mode="full"
    sensor="1"
    sensor_mode="1"
    softstart="0.5"
    autocalibration="true"
    desktopsupport="false"
    onavailable="changegyro();"
    onenable=""
    ondisable=""
    ondenied=""
    />

    Can anyone suggest something to find.. a new parameter... the error...

    Thank you for the help and time and for a new pair of eyes.

Participate now!

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