Hi,
I have a small problem with automatic tour code. A customer wants a tour which go through their manor by itself and i built the code for it already. The problem is that the code worked well on friday but now, something is wrong. I put the code below
Code
set(step,1);set(idletime,4);set(events.onidle,action(autotour) );
oninterrupt();if(step == 1, lookto(50,0,90,smooth(3,-3,15)); inc(step); );if(step == 2, wait(1); inc(step); );if(step == 3, lookto(-62,10,90,smooth(3,-3,15)); inc(step); );if(step == 4, wait(1); inc(step); );if(step == 5, lookto(12.38,0,90,smooth(3,-3,15)); inc(step); );if(step == 6, wait(1); inc(step); );<br>if(step == 7, zoomto(40,smooth(5,-5,10)); inc(step); );if(step == 8, loadpano(intro1.xml,null,MERGE,BLEND(1)); inc(step); );
if(step == 9, lookto(131 ,0,90,smooth(3,-3,15)); inc(step); );if(step == 10, wait(1); inc(step); );if(step == 11, lookto(20,0,90,smooth(3,-3,15)); inc(step); );if(step == 12, wait(1); inc(step); );if(step == 13, zoomto(40,smooth(5,-5,10)); inc(step); );if(step == 14, loadpano(intro2.xml,null,MERGE,BLEND(1)); inc(step); );
if(step == 15, lookto(77,8,90,smooth(3,0,15)); inc(step); );if(step == 16, wait(1); inc(step); );if(step == 17, lookto(1,0,90,smooth(3,0,15)); inc(step); );if(step == 18, lookto(-110,8,90,smooth(0,-3,15)); inc(step); );if(step == 19, wait(1); inc(step); );if(step == 20, lookto(-3,0,90,smooth(3,-3,15)); inc(step); );if(step == 21, wait(1); inc(step); );if(step == 22, zoomto(40,smooth(5,-5,10)); inc(step); );if(step == 23, loadpano(intro5.xml,null,MERGE,BLEND(1)); inc(step); );
if(step == 24, lookto(90,22,90,smooth(3,-3,15)); inc(step); );if(step == 25, wait(1); inc(step); );if(step == 26, lookto(1,0,90,smooth(3,0,15)); inc(step); );if(step == 27, lookto(-99,10,90,smooth(0,-3,15)); inc(step); );if(step == 28, wait(1); inc(step); );if(step == 29, lookto(-80,0,90,smooth(3,-3,15)); inc(step); );if(step == 30, zoomto(40,smooth(5,-5,10)); inc(step); );if(step == 31, loadpano(intro3.xml,null,MERGE,BLEND(1)); inc(step); );
if(step == 32, lookto(-170,12,90,smooth(3,-3,15)); inc(step); );if(step == 33, wait(1); inc(step); );if(step == 34, lookto(120,10,90,smooth(3,-3,15)); inc(step); );if(step == 35, lookto(0,0,90,smooth(3,-3,15)); inc(step); );if(step == 36, wait(1); inc(step); );if(step == 37, zoomto(40,smooth(5,-5,10)); inc(step); );if(step == 38, loadpano(intro4.xml,null,MERGE,BLEND(1)); inc(step); );
if(step == 39, lookto(77,21,90,smooth(3,-5,15)); inc(step); );if(step == 40, wait(1); inc(step); );if(step == 41, lookto(1,0,90,smooth(3,0,10)); inc(step); );if(step == 42, lookto(-115,8,90,smooth(0,-3,15)); inc(step); );if(step == 43, wait(1); inc(step); );if(step == 44, lookto(18,0,90,smooth(3,-3,15)); inc(step); );if(step == 45, wait(1); inc(step); );if(step == 46, zoomto(40,smooth(5,-5,10)); inc(step); );
if(step == 47, tourdone(); set(step,1); );
</action>
<plugin name="openfs" align="bottom" blendmode="screen" keep="true" onclick="set(fullscreen,true);" onout="set(blendmode,screen);" onover="set(blendmode,add);" url="introdata/graphics/menu/menu0.png" x="0" y="10"/>
<plugin name="closefs" align="bottom" blendmode="screen" keep="true" onclick="set(fullscreen,false);" onout="set(blendmode,screen);" onover="set(blendmode,add);" url="introdata/graphics/menu/menu1.png" visible="false" x="0" y="10"/> <events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/></krpano>
Display More
The problem is at the step 14,
if(step == 14, loadpano(intro2.xml,null,MERGE,BLEND(1)); inc(step); );
This line don't load the pano. If i remove ";" after BLEND(1)), it will load the pano but not increase the step, making the tour go nowhere. If i put ";" after it, i will get an error:
"ERROR: lookto/moveto/zoomto - invalid parameters"
If anyone can spot my mistake, please let me know. I need to finnish this before end of this month. Thanks a lot!
Regards,
Jesse
Nelike imagery
http://www.inelike.fi