Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

1

Dienstag, 1. Oktober 2013, 16:13

action during lookto

Hi,

i made this auto tour function where i use lookto(blablabla
But to use any button i need first to interrupt and then the menu buttons work.
So the user needs to click twice for that.

I was wondering, as there is a stopdelayedcall and stoptween function, if there is or maybe is possible to have something like an stoplookto action swell..

what i want to achieve is that the hover and onover onclick etc etc still works during a lookto action..

Cheers
Tuur *thumbsup*

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Dienstag, 1. Oktober 2013, 16:42

Why not simply use nonblocking (true) inside these lookto(bla-bla-bla) ? *rolleyes*
Regards,

Alexey

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Dienstag, 1. Oktober 2013, 17:15

ah yes . smart!
Didn't know, never used that one..
Thanx!

tuur *thumbsup*

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Dienstag, 1. Oktober 2013, 17:22

mmm.. but i like to interrupt aswell..

*cry*

lookto(get(tmp_hlookat),0,90,smooth(2,2,2), false, true, inc(step); );

Tuur *thumbsup*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (1. Oktober 2013, 17:33)


Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Mittwoch, 2. Oktober 2013, 15:17

ok solved!

the only solution is to call another lookto action to break this nonblocked one..
like:

Quellcode

1
lookto(get(view.hlookat),get(view.vlookat),get(view.fov));


Cheers,

Tuur *thumbsup*

6

Donnerstag, 20. Februar 2014, 17:27

Hello Tuur,

Im with the same problem.

Can you help me?

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

7

Donnerstag, 20. Februar 2014, 18:15

Sure,
Describe your problem and maybe get us some code from where we can go.
Tuur *thumbsup*

8

Donnerstag, 20. Februar 2014, 18:46

Thank you so much for your agile reply.

I've a autotour in my project like this and i'd like to add a layer to pause/play autotour on the onclick event. How can i do this?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<action name="load_new_scene">
		loadscene(%1, null, MERGE, ZOOMBLEND(1,2));
		wait(0.1);
		wait(BLEND);	
	</action>


	<action name="autotour">
		oninterrupt(break);
		
		if(step == 1, oninterrupt(set(step,1)); 
		lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););
		
		if(step == 2, load_new_scene(scene1); inc(step););
		
		if(step == 3, oninterrupt(set(step,3)); 
		lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););
		
		if(step == 4, load_new_scene(scene2); inc(step););
		
		if(step == 5, oninterrupt(set(step,5)); 
		lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););
		
		if(step == 6, load_new_scene(scene3); inc(step););
		
		if(step == 7, oninterrupt(set(step,7)); 
		lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););
		
		if(step == 8, load_new_scene(scene4); inc(step););
		
		if(step == 9, set(step,1); autotour(););
	</action>


Thanx!!

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

9

Freitag, 21. Februar 2014, 11:56

Sorry i'm abroad without laptop.
Will have a look later.
Maybe somebody else can jump in for you?


Tuur *thumbsup*

10

Samstag, 22. Februar 2014, 16:04

Thanks Tuur, problem solved!

To whom it may concern:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
    loadscene(get(startscene), null, MERGE);

    set(step,1); 
    set(idletime,4);
    set(events.onidle, delayedcall(autotour, 30.0, if(step LT scene.count, load_new_scene(get(scene[get(step)].name));inc(step),load_new_scene(get(scene[0].name));set(step,1);)););
</action>

<events onclick="stopdelayedcall(autotour);" name="start_full" keep="true"  />

<action name="load_new_scene">
    loadscene(%1, null, MERGE, ZOOMBLEND(1,2));
    wait(0.1);
    wait(BLEND);	
</action>

<autorotate enabled="true"
    waittime="1.0" 
    speed="-13.0" 
    horizon="10.0" 
/>


Salutos,