Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2009, 11:12 PM
3rw1n 3rw1n is offline
Member
 
Join Date: Nov 2007
Posts: 60
Downloads: 0
Uploads: 0
Default Autotour

Hi everybody,

I'm trying to make an automatic tour but I can't figure out what goes wrong in my xml.

I'd like to switch to another pano after a specific move in the first one (and so on...) but I just don't get how to load the second pano.

Here is the global part of the xml I use.

Code:
<global

onStart="loadPreview()"

loadPreview=	"loadPano(panoName=pano_small,100);
				onTransitionEnd=loadmain();"
				

loadMain=		"loadPano(panoName=pano,3000);
				pano.pan=13,2500;
				pano.tilt=-34,2500;
				pano.zoom=1,2500;
				onTransitionEnd=load1();"
				
load1=			"pano.pan=-300,2500;
				pano.tilt=-20,2500;
				pano.zoom=1.2,2500;
				onTransitionEnd=load2();"
				
load2=			"loadPano(panoName=pano2,3000);
				pano.pan=13,2500;
				pano.tilt=-34,2500;
				pano.zoom=1,2500;">

<spot id="bck" smoothing="1" static="1" visible="1" url="gfx/panoverlay.png" depth="999"/>
				
</global>
and here is the result.

Any idea why this part =>
Code:
	onTransitionEnd=load2();"
				
load2=			"loadPano(panoName=pano2,3000)
doesn't work?

Thanks for your help,

Erwin
__________________
aerial virtual tours
Reply With Quote
  #2  
Old 01-31-2009, 04:51 PM
LepLep LepLep is offline
Senior Member
 
Join Date: Jun 2008
Posts: 185
Downloads: 0
Uploads: 0
Default

Code:
onTransitionEnd=loadmain()
!=
Code:
onTransitionEnd=loadMain()
__________________
midnight sun in Troms? - 360 panorama or northern lights over Troms? - 360 panorama
anonymous tourist:"but why there is only one sun?"
Reply With Quote
  #3  
Old 02-01-2009, 07:20 AM
siesfor siesfor is offline
Senior Member
 
Join Date: Jun 2008
Posts: 207
Downloads: 0
Uploads: 0
Default

hey Erwin, onTransitionEnd refers to the transition from one pano to another, but since there's no new pano being loaded in "load1", there's no transition ending to call load2. so instead, attach it to the zoom code.

Code:
load1="		pano.pan=-300,2500;
		pano.tilt=-20,2500;
		pano.zoom=1.2,2500,,load2(); "
and that should take care of it.
Reply With Quote
  #4  
Old 02-02-2009, 12:10 PM
3rw1n 3rw1n is offline
Member
 
Join Date: Nov 2007
Posts: 60
Downloads: 0
Uploads: 0
Default

Hi Leplep,

both loadmain() & loadMain() work.

Hi Siesfor,

Quote:
hey Erwin, onTransitionEnd refers to the transition from one pano to another, but since there's no new pano being loaded in "load1", there's no transition ending to call load2. so instead, attach it to the zoom code.
I tried what you wrote, it doesn't work exactly how you wrote it, but I got the idea.

Thanks a lot for help (both of you).

I'll come back if I encounter any other problem.

Cheers,

Erwin
__________________
aerial virtual tours
Reply With Quote
  #5  
Old 02-02-2009, 02:51 PM
christophe's Avatar
christophe christophe is offline
Senior Member
 
Join Date: Dec 2006
Location: France - PACA -
Posts: 303
Downloads: 5
Uploads: 0
Default

Hi 3rw1n,

Here is how i do. This exemple is for 7 panos and at the end of each animation, i zoom to the hotspot that go to the next view, of course you can modify as you want:

Quote:

<global onStart="anim"

anim="pano.pan=360,50000; pano.tilt=-15,50000,,move2;"
move2="pano.pan=303,3000; pano.tilt=3,3000,,move3;"
move3="pano.pan=303,300; pano.zoom=1.6,300,,pano2;"

pano2="loadPano(?panoName=pano2&panHome=-124&tiltHome=-10&zoomHome=1);onTransitionEnd=anim2;"
anim2="pano.pan=10,30000; pano.tilt=-10,30000,,move2b;"
move2b="pano.pan=10,10000; pano.tilt=-90,10000,,move3b;"
move3b="pano.pan=155,10000; pano.tilt=17,10000,,move4b;"
move4b="pano.pan=155,300; pano.zoom=1.6,300,,pano3;"

pano3="loadPano(?panoName=pano3&panHome=9&tiltHome =-6&zoomHome=1); onTransitionEnd=anim3;"
anim3="pano.pan=187,30000; pano.tilt=-18,30000,,move2c;"
move2c="pano.pan=375,15000; pano.tilt=-1,15000,,move3c;"
move3c="pano.pan=330,10000; pano.tilt=-4,10000,,move4c,"
move4c="pano.pan=330,300; pano.zoom=1.6,300,,pano4,"

pano4="loadPano(?panoName=panos/valberg&panHome=0&tiltHome=-18&zoomHome=1); onTransitionEnd=anim4;"
anim4="pano.pan=-134,15000; pano.tilt=-20,15000,,move2d;;"
move2d="pano.pan=-165,10000; pano.tilt=-47,10000,,move3d;"
move3d="pano.pan=-360,20000; pano.tilt=-10,20000,,move4d,"
move4d="pano.pan=-252,15000; pano.tilt=1,15000,,move5d,"
move5d="pano.pan=-252,300; pano.zoom=1.6,300,,pano5,"

pano5="loadPano(?panoName=pano4&panHome=-3&tiltHome=-15&zoomHome=1); onTransitionEnd=anim5;"
anim5="pano.pan=-61,10000; pano.tilt=-10,10000,,move2e;"
move2e="pano.pan=-10,10000; pano.tilt=-51,10000,,move3e;"
move3e="pano.pan=89,10000; pano.tilt=-11,10000,,move4e;"
move4e="pano.pan=230,25000; pano.tilt=6,25000,,move5e;"
move5e="pano.pan=147,10000; pano.tilt=15,10000,,move6e;"
move6e="pano.pan=147,300; pano.zoom=1.6,300,,pano6;"

pano6="loadPano(?panoName=pano5&panHome=-3&tiltHome=-15&zoomHome=1); onTransitionEnd=anim6;"
anim6="pano.pan=-151,15000; pano.tilt=-10,15000,,move2f;"
move2f="pano.pan=-157,10000; pano.tilt=-65,10000,,move3f;"
move3f="pano.pan=-53,15000; pano.tilt=-22,15000,,move4f;"
move4f="pano.pan=62,10000; pano.tilt=-10,10000,,move5f;"
move5f="pano.pan-=12,300; pano.tilt=-5,300; pano.zoom=1.6,300,,pano7;"

pano7="loadPano(?panoName=pano6&panHome=-3&tiltHome=-15&zoomHome=1); onTransitionEnd=anim7;"
anim7="pano.pan=-170,20000; pano.tilt=-7,20000,,move2g;"
move2g="pano.pan=-270,10000; pano.tilt=-5,10000,,move3g;"
move3g="pano.pan=-269,10000; pano.tilt=-53,10000,,move4g;"
move4g="pano.pan=-327,15000; pano.tilt=-10,15000,,move5g;"
move5g="pano.pan=-329,300; pano.tilt=4,300; pano.zoom=1.6,300,,debut;"
debut="loadPano(panoName=pano1&tiltHome=-15&zoomHome=1);onTransitionEnd=anim() ">
Glad to see it turn on your work soon
Reply With Quote
  #6  
Old 02-02-2009, 03:02 PM
3rw1n 3rw1n is offline
Member
 
Join Date: Nov 2007
Posts: 60
Downloads: 0
Uploads: 0
Default

Thanks a lot Christophe!

This will save me some time!

You can check it here.

I still have to make it complete and eye-candy, but at least it works.

Thanks again!
__________________
aerial virtual tours

Last edited by 3rw1n; 02-02-2009 at 03:15 PM.
Reply With Quote
  #7  
Old 02-02-2009, 03:30 PM
christophe's Avatar
christophe christophe is offline
Senior Member
 
Join Date: Dec 2006
Location: France - PACA -
Posts: 303
Downloads: 5
Uploads: 0
Default

cool !

I really like you frame, and your work in general !

See you !
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.