i dont think it is right to code the view tags twice. put it all in one line. i found this with a simple search using the word "limitview" in the search box above.
set "limitview" to "range" and use the min/max settings to define the viewable range
but put that all in one line to be safe. if that does not work them your maxpixel zoom might be overriding the view limits.
Hi VN2011
Thank you for your reply.
I triyied that. And it work limiting the pano.
But the probem is that is limitting all the other panos it that tour to.
I limit the scene 1 and the same range parameter is appling for all the other scenes.
here the full code.
Thank you for your help, i really apreciate.
<krpano version="1.0.8" onstart="startup();">
<!-- vtour.xml template krpano tools version 1.0.8.12 -->
<!-- include the both plugins
<plugin name="editor" url="../../../global/plugins/editor.swf" keep="true" />
<plugin name="options" url="../../../global/plugins/options.swf" keep="true" />
-->
<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);
<!-- build the thumbnails (remove the next line to remove the thumbnails) -->
buildthumbs();
</action>
<!-- include global and logos -->
<include url="../../../global/global.xml" />
<include url="logos.xml" />
<!-- enable autorotation -->
<autorotate enabled="true" waittime="3.0" accel="0.5" speed="3" horizon="5" tofov="100" />
<!-- default quality settings -->
<display flash10="on" movequality="LOW" stillquality="HIGH" movequality10="HIGH" stillquality10="HIGH" />
<display fps="60"/>
<display details="22" />
<scene name="scene_t1" title="Flesh Wet Suits" onstart="" thumburl="tiles/t1.tiles/thumb.jpg">
<view hlookat="-89" vlookat="1" fovtype="MFOV" fov="90" maxpixelzoom="1.5" fovmin="50" fovmax="120" limitview ="range" hlookatmin ="200" hlookatmax ="360" />
<preview url="tiles/t1.tiles/preview.jpg" />
<image>
<left url="tiles/t1.tiles/pano_l.jpg" />
<front url="tiles/t1.tiles/pano_f.jpg" />
<right url="tiles/t1.tiles/pano_r.jpg" />
<back url="tiles/t1.tiles/pano_b.jpg" />
<up url="tiles/t1.tiles/pano_u.jpg" />
<down url="tiles/t1.tiles/pano_d.jpg" />
<mobile>
<left url="tiles/t1.tiles/mobile_l.jpg" />
<front url="tiles/t1.tiles/mobile_f.jpg" />
<right url="tiles/t1.tiles/mobile_r.jpg" />
<back url="tiles/t1.tiles/mobile_b.jpg" />
<up url="tiles/t1.tiles/mobile_u.jpg" />
<down url="tiles/t1.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="tiles/t1.tiles/tablet_l.jpg" />
<front url="tiles/t1.tiles/tablet_f.jpg" />
<right url="tiles/t1.tiles/tablet_r.jpg" />
<back url="tiles/t1.tiles/tablet_b.jpg" />
<up url="tiles/t1.tiles/tablet_u.jpg" />
<down url="tiles/t1.tiles/tablet_d.jpg" />
</tablet>
</image>
<!-- place hotspots here -->
<hotspot name="spot1" url="../../../global/images/x.png" ath="-111" atv="3" scale="0.7" zoom="true" rotate="0"
alpha="0.8"
onhover="showtext(Avanzar)"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.7);"
onclick="lookto(-111,3,40); loadscene(scene_t2, null, MERGE, BLEND(1));lookat(270,7,90);"
/>
</scene>
<scene name="scene_t2" title="Vista I" onstart="" thumburl="tiles/t2.tiles/thumb.jpg">
<view hlookat="270" vlookat="7" fovtype="MFOV" fov="90" maxpixelzoom="1.5" fovmin="50" fovmax="120" />
<preview url="tiles/t2.tiles/preview.jpg" />
<image>
<left url="tiles/t2.tiles/pano_l.jpg" />
<front url="tiles/t2.tiles/pano_f.jpg" />
<right url="tiles/t2.tiles/pano_r.jpg" />
<back url="tiles/t2.tiles/pano_b.jpg" />
<up url="tiles/t2.tiles/pano_u.jpg" />
<down url="tiles/t2.tiles/pano_d.jpg" />
<mobile>
<left url="tiles/t2.tiles/mobile_l.jpg" />
<front url="tiles/t2.tiles/mobile_f.jpg" />
<right url="tiles/t2.tiles/mobile_r.jpg" />
<back url="tiles/t2.tiles/mobile_b.jpg" />
<up url="tiles/t2.tiles/mobile_u.jpg" />
<down url="tiles/t2.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="tiles/t2.tiles/tablet_l.jpg" />
<front url="tiles/t2.tiles/tablet_f.jpg" />
<right url="tiles/t2.tiles/tablet_r.jpg" />
<back url="tiles/t2.tiles/tablet_b.jpg" />
<up url="tiles/t2.tiles/tablet_u.jpg" />
<down url="tiles/t2.tiles/tablet_d.jpg" />
</tablet>
</image>
<!-- place hotspots, plugins here -->
<hotspot name="spot2" url="../../../global/images/x.png" ath="278" atv="1" scale="0.7" zoom="true" rotate="0"
alpha="0.8"
onhover="showtext(Avanzar)"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.7);"
onclick="lookto(278,1,40); loadscene(scene_t3, null, MERGE, BLEND(1));lookat(359,9,90);"
/>
<hotspot name="spot3" url="../../../global/images/x.png" ath="114" atv="7" scale="0.7" zoom="true" rotate="0"
alpha="0.8"
onhover="showtext(Avanzar)"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.7);"
onclick="lookto(114,7,40); loadscene(scene_t1, null, MERGE, BLEND(1));lookat(-89,4,90);"
/>
</scene>
<scene name="scene_t3" title="Vista II" onstart="" thumburl="tiles/t3.tiles/thumb.jpg">
<view hlookat="359" vlookat="9" fovtype="MFOV" fov="90" maxpixelzoom="1.5" fovmin="50" fovmax="120" />
<preview url="tiles/t3.tiles/preview.jpg" />
<preview url="tiles/t3.tiles/preview.jpg" />
<image>
<left url="tiles/t3.tiles/pano_l.jpg" />
<front url="tiles/t3.tiles/pano_f.jpg" />
<right url="tiles/t3.tiles/pano_r.jpg" />
<back url="tiles/t3.tiles/pano_b.jpg" />
<up url="tiles/t3.tiles/pano_u.jpg" />
<down url="tiles/t3.tiles/pano_d.jpg" />
<mobile>
<left url="tiles/t3.tiles/mobile_l.jpg" />
<front url="tiles/t3.tiles/mobile_f.jpg" />
<right url="tiles/t3.tiles/mobile_r.jpg" />
<back url="tiles/t3.tiles/mobile_b.jpg" />
<up url="tiles/t3.tiles/mobile_u.jpg" />
<down url="tiles/t3.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="tiles/t3.tiles/tablet_l.jpg" />
<front url="tiles/t3.tiles/tablet_f.jpg" />
<right url="tiles/t3.tiles/tablet_r.jpg" />
<back url="tiles/t3.tiles/tablet_b.jpg" />
<up url="tiles/t3.tiles/tablet_u.jpg" />
<down url="tiles/t3.tiles/tablet_d.jpg" />
</tablet>
</image>
<hotspot name="spot1" url="../../../global/images/x.png" ath="211" atv="5" scale="0.7" zoom="true" rotate="0"
alpha="0.8"
onhover="showtext(Avanzar)"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.7);"
onclick="lookto(211,5,40); loadscene(scene_t2, null, MERGE, BLEND(1));lookat(115,10,90);"
/>
</scene>
<!-- thumbnail actions begin (remove the 'buildthumbs()' call in the onstart event to remove the thumbs) -->
<action name="buildthumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,'thumb_',get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, leftbottom);
set(plugin[get(thumbname)].width, 40);
set(plugin[get(thumbname)].height, 40);
set(plugin[get(thumbname)].x, 10);
set(plugin[get(thumbname)].y, 10);
mul(plugin[get(thumbname)].x, i,50);
mul(plugin[get(thumbname)].y, i,0);
add(plugin[get(thumbname)].x, 15);
add(plugin[get(thumbname)].y, 15);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].thumbtitle, get(scene[get(i)].title));
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, loadscene(get(linkedscene),null,MERGE,BLEND(1)) );
set(plugin[get(thumbname)].onhover, showtext(get(thumbtitle)) );
inc(i);
buildthumbs(NEXT);
);
</action>
<action name="openthumb">
if(%2 != NEXT,
set(pos,0);
copy(curpos, plugin[%1].thumbpos);
set(xdst, 0);
set(ydst, 0);
);
if(pos LT curpos,
inc(pos);
inc(ydst,90);
sub(ymax, stageheight, 100);
if(ydst GT ymax, inc(xdst,90);set(ydst,0); );
openthumb(%1,NEXT);
,
add(xdst,10);
add(ydst,10);
tween(plugin[%1].x, get(xdst) );
tween(plugin[%1].y, get(ydst) );
tween(plugin[%1].width, 80);
tween(plugin[%1].height, 80);
);
</action>
<action name="closethumb">
tween(plugin[%1].x, get(plugin[%1].xsmall));
tween(plugin[%1].y, get(plugin[%1].ysmall));
tween(plugin[%1].width, 40);
tween(plugin[%1].height, 40);
</action>
<action name="openthumbs">
if(%1 != NEXT,
set(i,0);
set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
);
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
openthumb(get(thumbname));
set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); );
inc(i);
openthumbs(NEXT);
);
</action>
<action name="closethumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
closethumb(get(thumbname));
set(plugin[get(thumbname)].onclick, openthumbs() );
inc(i);
closethumbs(NEXT);
);
</action>
<!-- thumbnail actions end -->
</krpano>