You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

booghy08

Beginner

  • "booghy08" started this thread

Posts: 37

Location: Romania

Occupation: Virtual Tours

  • Send private message

1

Sunday, December 12th 2010, 1:15pm

Problem with krpano versions

i use an older version of krpano ,the one before 1.0.8.12. i have created an auto tour that works perfectly in the old version, but doesn't do a tween with the new version.
now let me explain what the code does.it auto starts to rotate 360 degrees by calculating curent view minus 360, then it loads the next pano.if u stop it,it uses onidle event to start again, it recalculates the rest of the 360 rotation and starts again to rotate and loads the next pano.
the problem is that when you stop it by user intervation it triggers this tween when is starts to rotate again..if(%1 == noload,check_view(right);tween(view.hlookat,get(spiner), 15.0, easeInOutSine,wait);set(var_current_pano,2);wait(2);loadpanos();,that tween doesn't do the count from 1-360, it jumps over it and loads the next pano.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<events onidle="loadpanos(noload)"/>
<action name="loadpanos">
set(spiner,0);

oninterrupt(stoptween(view.hlookat););

  if(var_current_pano == 1,
						if(%1 == noload,check_view(right);tween(view.hlookat,get(spiner), 15.0, easeInOutSine,wait);set(var_current_pano,2);wait(2);loadpanos();,
						load(1.xml, null, MERGE, ZOOMBLEND(1.5,10));wait(blend);set(init_view,get(view.hlookat));check_view(right);tween(view.hlookat,get(spiner), 15.0, easeInOutSine,WAIT);set(var_current_pano,2);wait(2);loadpanos();));

  if(var_current_pano == 2,
						if(%1 == noload,check_view(right);tween(view.hlookat,get(spiner), 15.0, easeInOutSine,WAIT);set(var_current_pano,3);wait(2);loadpanos();,
						load(2.xml, null, MERGE, ZOOMBLEND(1.5,10));wait(blend);set(init_view,get(view.hlookat));check_view(right);tween(view.hlookat,get(spiner), 15.0, easeInOutSine,WAIT);set(var_current_pano,3);wait(2);loadpanos();));
 
 </action>