Different Zoom levels between scenes in a vtour .... don't want a single zoom level to be applied on others scene.

  • Hello,

    I have a problem ( and a dream too *g* ) : i have 3 differents panos with some really different zoom level each.

    The problem is when i go from scene 1 to scene 2 : the zoom level from scene is applied to scene 2 too ... and i don't want this.

    When i use the scene 2 in standalone pano : the zoom is correct and when i integrate this pano in a Vtour, the zoom is ONLY correct when i set this scene as startup .... if i come of on this scene from another scene , it is the previous zoom level which is applied to the last pano.

    I don't really understzand because all scene have their own zoom level configured in the tour.xml ...

    <scene name="scene_1" title="1" onstart="" thumburl="panos/index.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmax="150" limitview="range" vlookatmin="-66.739" vlookatmax="66.739" />
    <preview url="panos/index.tiles/preview.jpg" />
    <image type="CUBE" multires="true" tilesize="512" progressive="false">

    <scene name="scene_2" title="2" onstart="" thumburl="panos/2.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0.000" vlookat="0.000" fovtype="MFOV" fov="1.741" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
    <preview url="panos/2.tiles/preview.jpg" />
    <image type="CYLINDER" hfov="1.00" vfov="0.722449" voffset="0.00" multires="true" tilesize="512" progressive="true">

    <scene name="scene_3" title="3" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0.000" vlookat="0.000" fovtype="MFOV" fov="2.501" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
    <preview url="panos/1.tiles/preview.jpg" />
    <image type="CYLINDER" hfov="1.00" vfov="0.984733" voffset="0.00" multires="true" tilesize="512" progressive="true">

    I missed something ? because i don't really understand what's wrong now ....

    Any help will be appreciated.

    Have a nice day and thanks you for reading.

    Regards
    Manu

  • When i use the Google maps to change view from clicking on spot with this config in vtourskin.xml:

    <spot name="spot3" lat="42.898761" lng="13.473094" heading="90" active="true" onclick="loadscene(scene_3,null,BLEND(1))" />
    <spot name="spot2" lat="43.898761" lng="14.473094" heading="90" active="true" onclick="loadscene(scene_2,null,BLEND(1))" />
    <spot name="spot1" lat="41.708761" lng="12.473094" heading="90" active="true" onclick="loadscene(scene_1,null,BLEND(1))" />

    it works fine !

    But when i use the toolbar to change panos without using the google map, i still have the previous zoom config ( from the tour.xml file ).

    I thing i missed a parameter in the scene config in tour.xml but i don't know which one , here an example for the scene :

    <scene name="scene_2" title="2" onstart="" thumburl="panos/2.tiles/thumb.jpg" lat="" lng="" heading="">
    <view hlookat="0.000" vlookat="0.000" fovtype="MFOV" fov="1.741" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
    <preview url="panos/2.tiles/preview.jpg" />
    <image type="CYLINDER" hfov="1.00" vfov="0.722449" voffset="0.00" multires="true" tilesize="512" progressive="true">
    <level tiledimagewidth="735" tiledimageheight="531">
    <cylinder url="panos/2.tiles/l1/%v/l1_%v_%h.jpg" />
    </level>
    </image>
    <!-- place your scene hotspots here -->
    <!-- container layer -->
    <layer name="mapcontainer" type="container" bgcolor="0xFFFFFF" bgalpha="0.5" align="leftbottom" x="5" y="5" width="270" height="370">
    <!-- bing maps plugin -->
    <plugin name="map" keep="true"
    url="%SWFPATH%/plugins/bingmaps.swf" alturl="%SWFPATH%/plugins/bingmaps.js"
    align="lefttop" x="10" y="10" width="250" height="350"
    key="An4-9WoANqtASVorNezSjENest2VC0zoAzvMhEpdTjb3uY-k6u6bMkPxYpDsolsF"
    maptype="SATELLITE"
    lat="41.898761" lng="12.473094" zoom="18"
    >
    <radar visible="true" size="300" alpha="0.33" fillcolor="0xFFFFFF" fillalpha="1.0" linecolor="0x00FF00" linealpha="0.5" linewidth="0.5" dragable="true" headingoffset="0" />
    <spot name="spot2" lat="41.898761" lng="12.473094" heading="0" active="true" />
    </plugin>
    </layer>
    <hotspot name="spot2" style="skin_hotspotstyle" ath="0.297" atv="-0.228" linkedscene="scene_3" />
    </scene>

  • i found a solution in vtourskin.xml:

    <action name="skin_nextscene">
    add(newsceneindex, scene[get(xml.scene)].index, %1);
    if(newsceneindex GE 0,
    if(newsceneindex LT scene.count,
    txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
    layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
    loadscene(get(scene[get(newsceneindex)].name), null, null, BLEND(0.5));
    );
    );
    </action>

    <action name="skin_nextscene_loop">
    add(newsceneindex, scene[get(xml.scene)].index, %1);
    sub(lastsceneindex, scene.count, 1);
    if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex));
    if(newsceneindex GT lastsceneindex, set(newsceneindex,0));
    layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
    loadscene(get(scene[get(newsceneindex)].name), null, null, BLEND(0.5));
    </action>

    i set "null, null" instead of "null, MERGE"

Jetzt mitmachen!

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