tour starting points

  • Hello,

    I have two of the same panoramas in a tour that are different colors.

    I want to be able to navigate in one pano and then when I switch to the other I want it to start in the same position that I left off of.

    Thanks!

  • Where should I implement this into the code? Having trouble - new to xml.


    <krpano version="1.0.8.15" title="Virtual Tour" onstart="startup();">

    <include url="skin/vtourskin.xml" />

    <!-- set skin settings: bingmaps? gyro? -->
    <skin_settings bingmaps="false" bingmaps_key="" bingmaps_zoombuttons="false"
    gyro="true"
    thumbsopened="false"
    tooltips_thumbs="false" tooltips_hotspots="false" tooltips_mapspots="false"
    controlbar_offset="20"
    />

    <!-- set optional skin logo url -->
    <layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />

    loadscene(scene1, null, KEEPVIEW, BLEND(1));

    <action name="startup">
    if(startscene === null, copy(startscene,scene[0].name));
    loadscene(get(startscene), null, MERGE);
    </action>

    <scene name="scene_final-colormap" title="final-colormap" onstart="" thumburl="panos/final-colormap.tiles/thumb.jpg" lat="" lng="" heading="">

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="range" vlookatmin="-61.949" vlookatmax="61.949" />

    <preview url="panos/final-colormap.tiles/preview.jpg" />

    <image type="CUBE" multires="true" tilesize="512" progressive="false">
    <level tiledimagewidth="2048" tiledimageheight="2048">
    <cube url="panos/final-colormap.tiles/l3_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="1024" tiledimageheight="1024">
    <cube url="panos/final-colormap.tiles/l2_%s_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="512" tiledimageheight="512">
    <cube url="panos/final-colormap.tiles/l1_%s_%v_%h.jpg" />
    </level>
    <mobile>
    <cube url="panos/final-colormap.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    <!-- place your scene hotspots here -->

    </scene>

    <scene name="scene_final" title="final" onstart="" thumburl="panos/final.tiles/thumb.jpg" lat="" lng="" heading="">

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="range" vlookatmin="-61.951" vlookatmax="61.951" />

    <preview url="panos/final.tiles/preview.jpg" />

    <image type="CUBE" multires="true" tilesize="512" progressive="false">
    <level tiledimagewidth="4096" tiledimageheight="4096">
    <cube url="panos/final.tiles/l4_%s_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="2048" tiledimageheight="2048">
    <cube url="panos/final.tiles/l3_%s_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="1024" tiledimageheight="1024">
    <cube url="panos/final.tiles/l2_%s_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="512" tiledimageheight="512">
    <cube url="panos/final.tiles/l1_%s_%0v_%0h.jpg" />
    </level>
    <mobile>
    <cube url="panos/final.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    <!-- place your scene hotspots here -->

    </scene>


    </krpano>

  • No, that won't do...

    First I'd recommend reading the documentation carefully otherwise you'll end up asking loads of questions and answers would remain a great mystery for you. That means a tiniest mistake in code will be a great pain for you even to find it... Sooo...This is your first step:
    https://krpano.com/docu/

    You've just put the loadscene(); within the code. Any action must be triggered either from events or from onclick/onhover/onover/onloaded etc.
    That means your hotspot code must be something like this:

    Code
    onclick="loadscene(scene_1,null, KEEPVIEW,blend(1));"

    By the way I don't see any hotspots in your code and your version of Krpano is 1.0.8.15 and outdated. Download the 1.16.6 version.

    I wish you good results in learning!

Jetzt mitmachen!

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