Hallo,
I put together a simple autotour, going through the scenes showing one full circle each. If user input, it should start with the scene where the user started klicking.
Problem: after falling back to the autotour, it doesn't start the scene where the user left, but at the next one (step + 1)!
How could I solve this?
May be I need something checking if the 360° are finished. I tried "nonblocking, donecall" - no difference...
this is my autotour: panotour Buchara
this is the relevant code:
Code
<action name="startup">
set(step,1);
autotour();
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); );
...
autotour();
</action>
Display More