Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 10. September 2009, 21:22

Stop lookto on user click

Hi everybody,

The panorama start at this position :

onstart="lookat(50,18,97);

Then the folowing actions take place:

<action name="OnLoadComplete">
wait(blend);
wait(1);
lookto(-66,29,90,smooth(100,20,50));
set(autorotate.enabled,true);
</action>

I would like the lookto to be stopped when a user click in the panorama... is it possible ?


I currently use this clicked action which is working:

<action name="Clicked">
set(autorotate.waittime,"5");
</action>

I tried to put stopall(); but it doesn't stop the lookto action.


Thanks.
Maxime

2

Donnerstag, 10. September 2009, 21:54

oninterrupt is what you are looking for. (I believe)

The following link should take you to the documentation.

http://www.krpano.com/docu/actions/#oninterrupt

3

Donnerstag, 10. September 2009, 22:04

oninterrupt is what you are looking for. (I believe)

The following link should take you to the documentation.

http://www.krpano.com/docu/actions/#oninterrupt
Exactly !

Thank you very much Jarredja for your fast answer.

4

Donnerstag, 10. September 2009, 22:18

Hi,

yes, oninterrupt will be the right function for this

call it before the lookto actions,
e.g.

Quellcode

1
2
oninterrupt(break);
lookto(...);


best regards,
Klaus

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

5

Dienstag, 3. April 2012, 23:02

Hi, since i have used add hotspot for video distorted hostop the oninterrupt(break) does not work anymore, for look to or for tween, i have tested all the options

even this one





Zitat


<action name="tweenintro">
oninterrupt( lookinterrupt() );
tween(view.hlookat, 180, 10.0, easeInOutQuint);
tween(view.vlookat, 5, 10.0, easeInOutQuint);
tween(view.fov, 60, 10.0, easeOutQuad);
</action>

<action name="lookinterrupt">
stoptween(view.hlookat);
stoptween(view.vlookat);
stoptween(view.fov);
</action>




or the most simple

Zitat


<action name="tweenintro">
oninterrupt(break);
lookto(70,5,100,tween(easeInOutCubic,10),true,true) ;
</action>




the on interrupt breakall does not work to.


i have no solution


Thank you for your lights



JPC

*cry*

6

Mittwoch, 4. April 2012, 15:27

Hi,

the oninterrupt works only on actions that are blocking the user interface,
but the tween without WAIT for donecall doesn't block it,
and the lookto call with true for non-blocking doesn't block it too,

that means either try it that way - by adding a wait() after the tweens:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<action name="tweenintro">
  oninterrupt( lookinterrupt() );
  tween(view.hlookat, 180, 10.0, easeInOutQuint);
  tween(view.vlookat, 5,  10.0, easeInOutQuint);
  tween(view.fov, 60, 10.0, easeOutQuad);
  wait(10.0);
</action>
 
<action name="lookinterrupt">
  stoptween(view.hlookat);
  stoptween(view.vlookat);
  stoptween(view.fov);
</action>


or in your the most simple case just without nonblocking=true:

Quellcode

1
2
3
4
<action name="tweenintro">
  oninterrupt(break);
  lookto(70,5,100,tween(easeInOutCubic,10),true,false) ;
</action>


best regards,
Klaus

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

7

Sonntag, 8. April 2012, 10:18

Thank you for your answer, it is very clear, it works perfectly when i use standard distorted video hotspot but it doesn't work when i use addhotspot instead.

In fact in need to use add hotspot to manage the video downloading order, so…

maybe there is an other reason but i don't think so.

i can send you my code if you have the time to have a look.

best regards

JPC

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

8

Sonntag, 8. April 2012, 15:37

to be more precise

when i use lookto the interface wait the lookto is finished to addhospot.

when i use tween with wait the tween simply doesn't work

when i use tween without wait the tween work but without interrupt off course.


JPC

9

Donnerstag, 12. April 2012, 08:30

Hi,
when i use tween with wait the tween simply doesn't work
please show the code you use,

best regards,
Klaus

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

10

Sonntag, 15. April 2012, 22:34

Sorry for the delay, thank you

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
<action name="playintrodis">
set(introdis,true);set(videostate,bienvenu);
chargerbienvenu();action(playbienvenuifready);
set(plugin[bienvenu].onclick,set(videostate,bienvenu);loadscene(scene_ericchauvin1,view.hlookat=70&view.vlookat=5&view.fov=100,MERGE,BLEND(2));chargerbienvenu();action(playbienvenu));

tweenintro();

set(plugin[skipintro].enabled,false);tween(plugin[skipintro].alpha,0,2,);
tween(plugin[intro].alpha,0,7);
delayedcall(3,tween(plugin[intro].volume,0.09,5,easeInOutCubic));
set(skipintrogoodby,true);
</action>

		
<action name="tweenintro">
  oninterrupt(lookinterrupt());
  tween(view.hlookat, 20, 10.0, easeInOutQuint);
  tween(view.vlookat, 5,  10.0, easeInOutQuint);
  tween(view.fov, 100, 10.0, easeOutQuad);
  wait(10);
</action>
 
 
<action name="lookinterrupt">
  stoptween(view.hlookat);
  stoptween(view.vlookat);
  stoptween(view.fov);
</action>

11

Montag, 16. April 2012, 19:49

Hi,

the code itself looks okay,
but note - the wait() is blocking to whole actions system - that means the actions after the 'tweenintro' call will execute after the 10 second wait!

best regards,
Klaus

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

12

Mittwoch, 18. April 2012, 14:26

Ok, thank you, its working better, and i understand better but i have another problem with this intro, when i interrupt, the tween apha from the intro interrupt too, and i don't understand why because there is only tween view in the interrupt action.

an other limitation is that the wait have to be finished to begin the "bienvenu" video.


do you have a solution for this two questions.


Thank you very much


the link


http://www.camus.pro/vtourchauvin/tour.html

13

Donnerstag, 19. April 2012, 16:39

Hi,

all following actions after the 'oninterrupt' will be interrupted,

to avoid that reorder the actions or split the action into different parts and call the actions that should happening oninterrupt too in the call that will be defined in the oninterrupt(...here...) action,

best regards,
Klaus

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

14

Dienstag, 24. April 2012, 16:50

Thank you for your answer, it works,and its clear, http://krpano.com/forum/wbb/wcf/images/smilies/smile.png

I have an other question i hope more interesting for you, when i change the view with a load scene and a blend merge, the video distorted hotspot fixe on the beginning from the blend,

do you think there is a way the video is playing to the end of the blend, without keeping the same view. It is really embarrassing.

Tell me if my english and my question is not understandable.

if(understandable
,thank you in advanced for your answer);


JPC

15

Dienstag, 24. April 2012, 18:18

Tell me if my english and my question is not understandable.
sorry - not understandable...

JPC

Anfänger

Beiträge: 40

Wohnort: Paris

Beruf: Photographies and media

  • Nachricht senden

16

Mittwoch, 25. April 2012, 14:00

ok

i am in a pano with a video distorded hotspot playing, i want a kind of cutting plane, with a look at blend and merge like this

loadscene(scene_ericchauvin1,view.hlookat=150&view.vlookat=-10&view.fov=80,MERGE,BLEND(2))


the problem is that the video stop at the begining of the merging blend, the sound is ok but the picture fixe,

could it possible to prevent this.


Thank you


JPC