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

Mittwoch, 10. Juli 2013, 15:06

Oninterrupt not work correctly

One problem is happening after upgrading to krpano 1.16. When you open the virtual tour is initiated autotour:

...
if (step == 1 lookto (-139,17,72.70, tween (easeOutQuad, 10)); inc (step), wait (2););
if (step == 2 lookto (-168,2.81,72.70, tween (easeOutQuad, 8)), inc (step), wait (2););
if (step == 3 lookto (-174.76,1.05,81.44, tween (easeOutQuad, 8)), inc (step), wait (2););
if (step == 4 lookto (-234.3,1.03,99.46, tween (easeOutQuad, 10)); inc (step), wait (2););
...

So now when you click on the navigation menu, oninterrupt is not triggered only when you click the photo,

Before work normal, now stopped. Any idea what is happening?

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Mittwoch, 10. Juli 2013, 22:45

Hi!

Can you post a link to your example?
Regards,

Alexey

3

Donnerstag, 11. Juli 2013, 15:09

Alexey,

http://hoteisvillage.com.br/tourvirtual/

Play autotour buttom "Passeio" in left menu.

Regards,

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Donnerstag, 11. Juli 2013, 16:11

Sooo.. if I undesrtand it right, the idea as this:

User clicks "Passello" button which triggers the autotour and then, by clicking "Parar" user stops the autotour.


Well, what if you add a variable "autotour" to the code.

So the "Passello" button will set it to true, and correspondingly "Parar" button will set it to false.

And within the autotour code itself just add check for this parameter, something like this:

Quellcode

1
2
if(autotour == true, if (step == 1 lookto (-139,17,72.70, tween (easeOutQuad, 10)); inc (step), wait (2););  );
if(autotour == true, if (step == 2 lookto (-168,2.81,72.70, tween (easeOutQuad, 8)), inc (step), wait (2);); );



I use a similar principle in my VTs. There's onidle event which triggers a 360-degree rotation of the pano (from the hlookatvalue where onidle event was triggered) and after full circle it switches to another pano. And so on.

See this example (onidle):

http://vt-test.most-inform.com/
Regards,

Alexey

5

Freitag, 12. Juli 2013, 13:44

Alexey,

Is not possible because the onclick event is locked, so unlock when I click on the photo that triggers the oninterrupt.

This can be seen in the "AMBIENTES" it does not work until the autotour be stopped. To stop the autotour clicking on the image menu "AMBIENTES" runs.

*confused*

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

6

Freitag, 12. Juli 2013, 14:34

Hi!

The "lookto" action has a "nonblocking" parameter.

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

Maybe, try using it? *confused*

Anyway, it's very hard to search for the reason without looking up into the code itself...
Regards,

Alexey