You are not logged in.

1

Tuesday, September 3rd 2013, 3:57pm

Simple way to link a number of panos' together and 'autoplay' them

Hi

I'm looking for a simple way to link a number of panos' together and have them autoplay, so for example first pano would load, rotate through 90 degreess, fade out, next one loads in rotates through 120 degrees' etc etc.

I've done this as video in the past (see https://www.youtube.com/watch?v=wQj8CKR0f5I ) but would like to have the facility within the virtual tour. Ideally with a banner screen between each pano.

I dont mind having this as a separate VT to the 'interactive' version, as I can then add an icon that lets the user 'jump' between the interactive' version of the tour and the 'automated' version.

Thanks in advance for your advice.

cheers

Tim

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Tuesday, September 3rd 2013, 5:17pm

Set the onidle variable to a big value.
start autorotation
Have events.onidle call next_scene(); and star
this function is in the examples folder.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Tuesday, September 3rd 2013, 6:30pm

Thanks Sachagriffin

I had a look at the examples, but could not find one with 'automated' tours, I may have missed it.

cheers

Tim

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Tuesday, September 3rd 2013, 6:42pm

Column 4 / Row 3
"Scenes with prev/next"
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Wednesday, September 4th 2013, 3:18pm

Thanks Sachagriffin


Will have a 'play' this pm.

cheers

Tim

6

Wednesday, September 4th 2013, 4:12pm

Looking through the examples I came up with a really easy way to 'cycle' through my panos:

By adding wait(12);loadscene(pano10,null,merge.blend(3)); at the end of onstart=...

<scene name="pano11" title="pano1 " onstart="showname();wait(12);loadscene(pano10,null,merge.blend(3));">

the pano runs and then the next one is loaded in.

works like a dream but... I now have no control over the tour which runs in a loop.

So I need a some kind of on click, or on key function to kill it *confused*

all ideas appreciated

thanks

Tim

7

Wednesday, September 4th 2013, 4:49pm

Cracked it! (thanks to suggestion from Sachagriffin)...

Added...

set(idletime,10)); in startup section

Then in each pano added:

<events onidle="loadscene(pano10);" />

So if there is no mouse/keyclick, after 10 seconds elapses next pano gets loaded.

Tim

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

8

Wednesday, September 4th 2013, 7:25pm

Instead of autorotation you can also use a nonblocking lookto
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour