You are not logged in.

1

Thursday, January 10th 2019, 8:58pm

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

Thursday, January 10th 2019, 10:18pm

delayedcall() is your friend :)

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

3

Sunday, January 13th 2019, 10:49am

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.

This post has been edited 5 times, last edit by "thomasi" (Jan 13th 2019, 12:31pm)


toosten

Intermediate

Posts: 448

Location: Berlin

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

  • Send private message

4

Sunday, January 13th 2019, 11:25am

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

Sunday, January 13th 2019, 11:40am

*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!

This post has been edited 1 times, last edit by "thomasi" (Jan 13th 2019, 11:54am)