how to load different scene of one virtual tour by a link

how to load different scene of one virtual tour by a link

Postby Jasonliu » Tue Jul 10, 2012 12:24 am

Hello,

is there any way to load different pano in the virtual tour with several panoramas, for example, there is a virtual tour with four scenes, now i want to load the second scene by visiting an external link just as index.html?pano=scene2.xml, which is able to do with krpano, is there any way to do it in the virtual tour made by flashificator? please give me some tips or help, thanks very much in advance.

Jason
Jasonliu
 
Posts: 10
Joined: Thu Apr 30, 2009 9:39 pm

Re: how to load different scene of one virtual tour by a lin

Postby eliecer » Tue Jul 10, 2012 4:23 am

If the html file generated by flashificator is the only file that controls or calls the xml file, then it's simple and possible, but this will refresh / re-load the whole page containing this time the new xml file, plus you will have to create the 4 different xml files, 1 xml file per scene.
eliecer
 
Posts: 67
Joined: Tue Sep 07, 2010 3:27 am

Re: how to load different scene of one virtual tour by a lin

Postby ondrat » Wed Jul 11, 2012 9:19 am

Hey Jason, this is actually possible to do and it is fairly easy ... apparently. There is a thread in the forum about it somewhere but I can't find it now. I have been asking this question a few times but I haven't try it myself yet. And I am sorry I don't have time to try it now but here is what you should have to do...

When you finished with the tour you just need to create a few different outputs with different starting points. So lets say you have a tour with four panos. Firstly in FFC set initial pano to 'pano1' with custom initial possition and flashificate into folder 'tour1'. Then change initial pano to 'pano2' and flashificate to folder 'tour2', etc. etc. So you end up with four tours (folders) where each one starts from different pano. But all the tours use same visual files, same hotspot files, same plugins, etc. So really the only two files which change are index.html and xml file.

Next you need to put four folders into one which means just keep html and xml files from other folders and put everything into one. Lets keep first folder (tour1) as a main one. Open tour1 folder and rename index.html to tour1.html. Then open tour2 folder and rename index.html to tour2.html. Then copy tour2.html to tour1 folder and also copy tour2.xml to tour1/files/xml folder. Now you can delete tour2 folder. Do the same for other folders and you should end up with one folder named tour1 where you could see tour1.html - tour4.html and in xml folder there should be tour1.xml - tour4.xml.

So now you just point to particular html file according to the panorama you need to start from.
I hope it help. Please let us know if it work out for you!
Cheers
Ondrej
ondrat
 
Posts: 232
Joined: Sun Nov 08, 2009 3:51 am

Re: how to load different scene of one virtual tour by a lin

Postby Trausti Hraunfjord » Thu Jul 12, 2012 1:01 pm

You guys outsmart me any day of the week. You are of course totally right (so much that I deleted my previously posted answer which stated this not to be possible). A way to achieve this is possible, even though it is not the best way, which would be to simply link to www.mytour.com/tour#1 www.mytour.com/tour#5 etc, without having to produce extra xml, html or tours with different starting panos in the project. There is always a possibility for some workarounds.
My destiny isn't carved in granite ...
It's written with a stick in dry sand ... on a stormy day ...
Trausti
User avatar
Trausti Hraunfjord
Site Admin
 
Posts: 3467
Joined: Thu Jul 10, 2008 8:34 pm

Re: how to load different scene of one virtual tour by a lin

Postby eliecer » Thu Jul 12, 2012 9:59 pm

Trausti, is the file index.html the only file calling / using the xml file?
eliecer
 
Posts: 67
Joined: Tue Sep 07, 2010 3:27 am

Re: how to load different scene of one virtual tour by a lin

Postby Trausti Hraunfjord » Thu Jul 12, 2012 11:07 pm

Actually it is this way:

The HTML file sends the path of the xml to pano.swf where it is read, then pano.swf sends each tag info from the xml file (for example the contents of what is between <compass> and </compass>), and that content will be sent to the compass plugin. This means that the plugin itself will not read the xml at all. Nor does the html page.

This should make total sense.
My destiny isn't carved in granite ...
It's written with a stick in dry sand ... on a stormy day ...
Trausti
User avatar
Trausti Hraunfjord
Site Admin
 
Posts: 3467
Joined: Thu Jul 10, 2008 8:34 pm


Return to FFC: How To Do?

Who is online

Users browsing this forum: Google [Bot] and 0 guests