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.

1

Monday, December 12th 2011, 1:55pm

autotour step - after interrupt step increment

Hallo,
an autotour put together after different ideas by Klaus found here in the forum.
Problem: after user input, the autotour doesn't restart at the point of interruption (current step) but at current step plus 1 ^^

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<action name="startup">		
	  <!-- build the thumbnails (remove the next line to remove the thumbnails) -->
	  buildthumbs(); 
	  set(step,1);
	  set(idletime,4);
	  set(events.onidle, autotour() );
</action>
	
<action name="autotour">
	  oninterrupt(break);
	  if(step == 1, loadscene(scene_baghahouddin, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
	  if(step == 2, loadscene(scene_chor-bakr-2569, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
	  if(step == 3, loadscene(scene_chor-minor, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
          ...
          ...
	  if(step == 11, tourdone(); set(step,1); );
</action>

2

Friday, December 23rd 2011, 1:27pm

sry for repeating... nobody ever encountered this behaviour?
see here