PDA

View Full Version : Add some life to panoramas - exemple HOW?


Aris
02-24-2008, 06:45 PM
Hi.

I want to make a pano more interesting and I want to add some photos like in "Add some life to panoramas" http://flashpanoramas.com/blog/2007/05/23/add-some-life-to-panoramas/
but I don't know how.

Could someone help me pls.

Regards,
Aris

zleifr
02-24-2008, 09:40 PM
What more help do you need that the add some life example doesn't give? More specific questions are a whole lot easier to answer!

Zephyr

izoneguy
02-24-2008, 10:03 PM
It takes a lot of hacking around to figure this stuff out.
Look at some other sites in the showcase as well.
Learning XML is not that hard but that is what is
required to make flashpano really usable.

Trausti Hraunfjord
02-24-2008, 10:31 PM
It takes a lot of hacking around to figure this stuff out.
Look at some other sites in the showcase as well.
Learning XML is not that hard but that is what is
required to make flashpano really usable.

Until now, and for a little longer that holds true.

cheathamlane
02-24-2008, 11:08 PM
Hi.

I want to make a pano more interesting and I want to add some photos like in "Add some life to panoramas" http://flashpanoramas.com/blog/2007/05/23/add-some-life-to-panoramas/
but I don't know how.

Could someone help me pls.

Regards,
Aris

Hi Aris:

A good place to start is with the XML used in the "add some life..." example, which you can find at:
http://flashpanoramas.com/player/examples/livePano.xml

This has everything you need to create the presentation, and is an excellent way to begin to understand the inner workings of FPP.

Cheers,

Aris
02-25-2008, 07:43 PM
Hi guys.

Thanks for your time and patience. I've managed to understand how the things are going inside the xml file.

I hope I'll have more time to play with it and to make a nice example.

Best regards,
Aris

cheathamlane
02-25-2008, 10:50 PM
I hope I'll have more time to play with it and to make a nice example.

Me too! :)

Keep us posted...

Cheers,

GregorH
02-26-2008, 09:10 PM
Hello Patrick,

are you sure the xml file from the example you posted works??
I included the parts I need into my pano to get the nice picture effect but without success :???:

In the global tag I included:

onTransitionEnd="externalInterfaceID=live;pano.disableControls=0;pr eview.id=;"

goUp="pano.qualityStatic=low saturation=0,1000 depth=15 static=1 scaleable=0 staticX=0,1000 staticY=0,1000 scale=1,700 distance=1,2100,elastic rotationX=0,2100,elastic rotationY=0,2100,elastic rotationZ=0,2100,elastic global.timer=1,2100,-,restoreQuality"

goDown="pano.qualityStatic=low saturation=-0.5,1000 depth=10 static=0 scaleable=1 scale=0.5,500 distance=1,600 rotationX=0,600 rotationY=0,600 global.timer=1,700,-,restoreQuality"

restoreQuality="pano.qualityStatic=medium"


and then I added a hotspot:

<box id="pic1"
linked="cm7"
url="files/ausweis.gif"
onClick="openMe()"
saturation="-0.5"
pan="33"
tilt="-28"
scale="0.2"
orientation="down"
rotationZ="-20"
openMe="hidePic(); global.hidePic=pic1.closeMe; goUp(); onClick=closeMe;"
closeMe="global.hidePic=; goDown(); pan=33,700; tilt=-28,700; rotationZ=-20,700; onClick=openMe;"
/>


The image shows fine in the pano, laying on the table, but clicking on it does nothing. Can you tell me whats wrong here please?

Salu2 & Regards
Gregor

cheathamlane
02-26-2008, 09:35 PM
Hi Gregor:

Well, the example is Denis's, and yes it works... ;) See the link in the above post to the actual demo (http://flashpanoramas.com/blog/2007/05/23/add-some-life-to-panoramas/).


Can you try the following Gregor? I've moved everything into the <box/> element, put ; after each function call, and explicitly targeted the pic1 box.

<box
id="pic1"
linked="cm7"
url="files/ausweis.gif"
saturation="-0.5"
pan="33"
tilt="-28"
scale="0.2"
orientation="down"
rotationZ="-20"

onClick="openMe()"
openMe="pic1.hidePic; hidePic=pic1.closeMe; pic1.goUp; scale=0.9,700; onClick=pic1.closeMe;"
closeMe="pic1.hidePic=; pic1.goDown; pan=33,700; tilt=-28,700; rotationZ=-20,700; onClick=pic1.openMe;"
hidePic=""

goUp="pano.qualityStatic=low;saturation=0,1000;depth=15; static=1;scaleable=0;staticX=0,1000;staticY=0,1000 ;scale=1,700;distance=1,2100,elastic;rotationX=0,2 100,elastic;rotationY=0,2100,elastic;rotationZ=0,2 100,elastic;global.timer=1,2100,-,restoreQuality;"
goDown="pano.qualityStatic=low;saturation=-0.5,1000;depth=10;static=0;scaleable=1;scale=0.5,5 00;distance=1,600;rotationX=0,600;rotationY=0,600; global.timer=1,700,-,restoreQuality;"
restoreQuality="pano.qualityStatic=medium"
/>

?

GregorH
02-27-2008, 08:53 AM
Thanks a lot Patrick,

doing it your way works perfectly, even if I move the hidePic, goUp, goDown and restoreQuality back to the global tag.

I LOVE FPP!!


Thanks again for all your friendly help.

Salu2 & Regards,
Gregor

cheathamlane
02-28-2008, 05:06 PM
I LOVE FPP!!

Thanks again for all your friendly help.

Salu2 & Regards,
Gregor

Cool, me too. ;)

You're welcome, and

Cheers,

visionman
06-04-2009, 12:50 PM
Can you try the following Gregor? I've moved everything into the <box/> element, put ; after each function call, and explicitly targeted the pic1 box.?



Hi Patrick, I have also been having problems getting images to fly up and down, using Denis's code. I tried your solution of putting everything into the <box> element, and that seemed to work ... almost perfectly. I can get the image to start in the right place and at the right size and I can get it to fly out to the right size. However, when I click on the image to get it to fly back down, it whizzes off to the left, disappears out of view and then materialises to the right of the start position, then neatly moves back to the start position. All I want it to do is to move back the same way it moves out, if you know what I mean.

Any ideas/help much appreciated. Here's my xml:

<box id="pic1"
linked="function"
url="letter1.jpg"
saturation="-0.5"
pan="-49"
tilt="2"
scale="0.15"
segmentsX="15"
segmentsY="15"
orientation="right"
rotationX="-45.00"
alignX="-0.45"
alignY="-0.54"
depth="1"
onClick="openMe()"

openMe="pic1.hidePic; hidePic=pic1.closeMe; pic1.goUp; scale=0.5,700; onClick=pic1.closeMe;"

closeMe="pic1.hidePic=; pic1.goDown; pan=-49,700; tilt=2,700; rotationX=-45,700; onClick=pic1.openMe;"

hidePic=""

goUp="pano.qualityStatic=low;
saturation=0,1000;
depth=1;
static=1;
scaleable=1;
staticX=0,1000;
staticY=0,1000;
scale=0.15,700;
distance=1,2100,elastic;
rotationX=0,2100,elastic;
rotationY=0,2100,elastic;
rotationZ=0,2100,elastic;
global.timer=1,2100,-,restoreQuality;"

goDown="pano.qualityStatic=low;
saturation=-0.5,1000;
depth=1;
static=0;
scaleable=1;
scale=0.15,500;
distance=1,600;
rotationX=0,600;
rotationY=0,600;
global.timer=1,700,-,restoreQuality;"
restoreQuality="pano.qualityStatic=medium" />


Cheers

Visionman

Trausti Hraunfjord
06-04-2009, 05:14 PM
Hi Visionman.... Cheatham is not active in these forums, so pardon me for replying when you addressed him specifically.

Obviously you are using Flashificator for doing this, and that is my corner of responsibility.

First things first: What version of the program are you using?

If you upgrade to the latest version, things would work correctly, and only take a few clicks:

http://flashificator.com/1/FlyOutAndDown/

visionman
06-09-2009, 03:14 PM
Hi Trausti

I have discovered the problem through a long process of trial and error.

I had set the orientation of my hotspot to 'right'. The fly out/in system doesn't like this ... it flies out ok, but doesn't fly back down correctly.

I then changed the orientation to 'sphere' and all is now well ... at last.

I do own Flashificator but didn't use it on this occasion as I wanted to understand the xml. Not sure for what benefit though!!

Cheers

Visionman