You are not logged in.

immersium

Trainee

  • "immersium" started this thread

Posts: 66

Location: Chambéry, Savoie, France

Occupation: GM Multimedia Company

  • Send private message

1

Saturday, July 25th 2009, 8:21pm

Zoom and load next pano after specific amount of time

Hello, I'm a newbie with KRPano and am at the very beginning of the learning curve, so thanks in advance for your answers.
I'm creating a tour with 5 panos (say pano1, pano2, pano3...), pano1 is the 1st one to load. I'd like to automatically zoom to a specific area of this pano1 and then load the next pano (pano2) automatically after a specific amount of time.
How can I achieve this?
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Saturday, July 25th 2009, 8:33pm

wait(put time in secongs here);
moveto(0,0,0); <-- ath, atv, speed
loadpano(asdf.xml);

i think that is right ...

tylerphotos

Beginner

Posts: 22

Location: Ponca City, OK

Occupation: Photographer, Yoga Instructor

  • Send private message

3

Saturday, July 25th 2009, 9:29pm

Hi, Immersium!

I agree with VN2009. Use the "onstart" command to have all of this done automatically when the tour is loaded. You will have 5 or 6 different .xml files - A new one for each panorama image. Here's my example.

Source code

1
<krpano version="1.0.6" onstart="loadpano(pano1.xml);moveto(90,0,120);wait(5);loadpano(pano2.xml);">


Repeat the wait and loadpano commands as many times as needed. Alternatively, you can put all that into an action and have that action loaded with the onstart command:

Source code

1
2
3
4
5
6
7
8
<krpano version="1.0.6" onstart="action(starttour);">

<action name="starttour">
     loadpano(pano1.xml);
 	moveto(90,0,120);
 	wait(5);
 	loadpano(pano2.xml);
 />


Hope that helps you. *smile*


Tyler

immersium

Trainee

  • "immersium" started this thread

Posts: 66

Location: Chambéry, Savoie, France

Occupation: GM Multimedia Company

  • Send private message

4

Saturday, July 25th 2009, 10:08pm

Great, works perfectly!
Thanks VN2009 and Tyler.
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9