View Full Version : Avoid transition between panoramas
agnosix
10-31-2008, 08:46 AM
Hi Everybody!
I want to avoid the default transition between panoramas.
My global paramaters are:
<global onStart="external.autorotator.disabled=2;external.autorotat or.speed=-0.1;" onNewPano="external.autorotator.disabled=2;external.autorotat or.speed=-0.1;"
onOver="scale=1.1,600,elastic;depth+=20"
onOut="scale=1,300;depth-=20" >
But there is still a transition when I load a new panorama image.
I only want to old pano disappear and the new pano appear without transitions.
Thanks in advance guys.
phberlin
10-31-2008, 12:41 PM
You can set the type of transition effect as paramter of your loadpano command. Setting "none" gets you, well, no transition :-)
loadPano(panoName=mypano,0,none);
For more details see FPP documentation > hotspots plugin > "loadpano"
Regards, Ph.
loadPano(panoName=mypano,0,none);
For more details see FPP documentation > hotspots plugin > "loadpano"
Thats great, thank you! I now use this:
loadPano(panoName=imagesa/sentosa704&pan=50&tilt=0,0,none)
This also controls which way the viewer is facing when the pano loads.
Is there a way to control the zoom level? After clicking a hotspot, some of my spins are loading as zoomed in further than others. (odd).
phberlin
11-03-2008, 12:15 AM
Thats great, thank you!
Glad it works for you :-)
I now use this:
loadPano(panoName=imagesa/sentosa704&pan=50&tilt=0,0,none)
This also controls which way the viewer is facing when the pano loads.
Is there a way to control the zoom level? After clicking a hotspot, some of my spins are loading as zoomed in further than others. (odd).
Yes, and the solution is so simple, haha:
loadPano(panoName=imagesa/sentosa704&pan=50&tilt=0&zoom=0.41,0,none)
where the number after "zoom=" is a valid zoom factor (0.4 to 3 with older FPP version, 0.04 to 3 since the latest upate).
Regards, Philipp
agnosix
11-03-2008, 10:57 AM
Thanks phpberlin!!
Perhaps im doing something wrong because it donīt work for me.
Here is the line of code:
panorama.externals.hotspots.loadPano(["panoName=../uploads/panos/"+imgArr[marca_act]+",0,none&xml_file=panoxml_dev.php?id="+numArr[marca_act]+";"+puntoArr[marca_act]]);
Thanks in advance.
phberlin
11-03-2008, 07:33 PM
Thanks phpberlin!!
Perhaps im doing something wrong because it donīt work for me.
Here is the line of code:
panorama.externals.hotspots.loadPano(["panoName=../uploads/panos/"+imgArr[marca_act]+",0,none&xml_file=panoxml_dev.php?id="+numArr[marca_act]+";"+puntoArr[marca_act]]);
I have no clue of PHP, so I can't really read your code, to be honest. So I don't know enough about the syntax used here. Anyway, to me it seems you did not keep the right order with the arguments. It's a good practice to keep it like so:
loadPano(panoName=YOUR_PANO&xml_file=YOUR_XML&pan=VALUE&tilt=VALUE&zoom=value,TRANSITION_TIME,TRANSITION_TYPE
It's important to keep the transition arguments (transition length and type) at the end (!!) of the code. If I understand it right, you should have something like (no guarantee about syntax here; I want to point out the order issue):
panorama.externals.hotspots.loadPano(["panoName=../uploads/panos/"+imgArr[marca_act]+"&xml_file=panoxml_dev.php?id="+numArr[marca_act]+";"+puntoArr[marca_act]+",0,none])
Hope that helps, regards
Philipp
agnosix
11-04-2008, 06:59 AM
Thanks Philipp for your time.
I tried this way:
panorama.externals.hotspots.loadPano(["panoName=../uploads/panos/"+imgArr[marca_act]+"&xml_file=panoxml_dev.php?id=91;8,0,none"]);
But no results.
Anyway, thanks again for your time.
vBulletin® v3.7.1, Copyright ©2000-2010, Jelsoft Enterprises Ltd.