Sie sind nicht angemeldet.

1

Donnerstag, 10. Januar 2019, 20:58

Automatic loading of next panorama after time X

Hello,
I want to make an automatic panotour. Let say the panoramas are changing every 20 seconds.
I tried to do that with the idletime action but that only works if the user does not interact. So when i do nothing the panorama changes.
But if i looked around it did not work.

So what would be the way to got that panorama changes even when there is permanent looking around.

This should work in vr-mode!

I would be very happy if someone could help me.

Many thanks
Thomas

2

Donnerstag, 10. Januar 2019, 22:18

delayedcall() is your friend :)

https://krpano.com/docu/actions/#delayedcall

3

Sonntag, 13. Januar 2019, 10:49

thanks a lot for your help indexofrefraction!

i tried it , but i´m a beginner, and i´m sure there is a fault cause it does not work. *squint*

if you find the time, could you please read the code. its quite short. only two scenes and an action.

i´m lost.pano01 loads but it does not change to pano2.

Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von »thomasi« (13. Januar 2019, 12:31)


toosten

Fortgeschrittener

Beiträge: 434

Wohnort: Berlin

Beruf: freier Software-Entwickler ( HTML, JS, PHP, JSP, Flash, AS3, C++, Java, krpano, ---)

  • Nachricht senden

4

Sonntag, 13. Januar 2019, 11:25

Ui, das Event kannte ich noch nicht, passt genau zu deinen Anforderungen:
https://krpano.com/docu/xml/#events.onautorotateoneround

<events onautorotateoneround="pano2loader()" />

Falls es ohne Rotate sein soll:
https://krpano.com/docu/xml/#events.onnewpano

<events onnewpano="delayedcall(3, pano2loader())" />

5

Sonntag, 13. Januar 2019, 11:40

*w00t* vielen dank torsten!

so it seems that i had no event, only an action, that was my problem.

now it works completely as i want. this onautorotateonround i know out of PTP ...i have to learn soo much simple things *rolleyes*

grüsse nach berlin. ich dank dir nochmals, und schönen sonntag noch!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »thomasi« (13. Januar 2019, 11:54)