Image-stitching and virtual tour solutions My account Updates
It is currently Sat Aug 30, 2014 3:28 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Relative Paths
PostPosted: Wed Aug 25, 2010 11:11 pm 
Offline
Member
User avatar

Joined: Fri Apr 17, 2009 9:13 am
Posts: 10
Location: East Kilbride
I understand how relative paths work and have studied the KRPano forum but I'm stuck on a problem I hope someone can help with?

I can't see how to put the APT generated HTML <embed></embed> code in a page that is not in the same DIR as the SWF. For example:

"www.mydomain.com/1/2/tour.html"
"www.mydomain.com/3/4/tour.swf"

I changed the APT generated <embed src="tour.swf" width="640" height="480"></embed> to <embed src="../../tour.swf" width="640" height="480"></embed>

With the XML files also exported I checked the activity window and I see:

"www.mydomain.com/1/2/tour.html" FOUND
"www.mydomain.com/1/2/tour.xml" NOT FOUND
"www.mydomain.com/3/4/tour.swf" FOUND

I then see a "tour.XML loading error (IO error)" message

I can see the <embed> command is calling the tour.xml BEFORE it moves to the correct (.swf + .xml) directory. My guess is the default directory for the first XML file is set within swfkrpano.js and therefore included within the exported SWF?

If so, is it possible to modify the inbuilt APT swfkrpano.js so it uses %SWFPATH% as a variable to set the correct relative path to the first XML? Or am I completely off the plot? I read on the KRPano documentation there is a default path for the XML directory location which is what I think I need to change?

_________________
Andrew Baddeley
Online Shop: http://www.360tacticalvr.com
eBAY Store: http://stores.ebay.co.uk/360tacticalvr
Pano Kit: Nodal Ninja 5 R-D16 + Pentax K5 + Samyang 8mm f/3.5 + Samyang 14mm f/2.8 + Pentax 300mm f/4 + GigaPan Epic Pro


Last edited by badders on Wed Aug 25, 2010 11:40 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 25, 2010 11:32 pm 
Offline
Member

Joined: Wed Nov 14, 2007 2:12 pm
Posts: 13841
Location: Isleham, Cambridgeshire, UK.
Is it impossible for you to have the all the files for a tour in the same directory?

_________________
Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 25, 2010 11:36 pm 
Offline
Member
User avatar

Joined: Fri Apr 17, 2009 9:13 am
Posts: 10
Location: East Kilbride
mediavets wrote:
Is it impossible for you to have the all the files for a tour in the same directory?

Not for me, but it is for the client....;)

_________________
Andrew Baddeley
Online Shop: http://www.360tacticalvr.com
eBAY Store: http://stores.ebay.co.uk/360tacticalvr
Pano Kit: Nodal Ninja 5 R-D16 + Pentax K5 + Samyang 8mm f/3.5 + Samyang 14mm f/2.8 + Pentax 300mm f/4 + GigaPan Epic Pro


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2010 1:50 pm 
Offline
Member

Joined: Fri Jul 03, 2009 9:18 am
Posts: 264
Hello,

you should try the simple javascript HTML template AND restrict view to a domain (Licence domains). Then uncomment and edit the
Code:
swf.addVariable("xml", "pano1.xml");

, replacing pano1.xml by "../../pano1.xml" or whatever.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2010 9:56 pm 
Offline
Member
User avatar

Joined: Fri Apr 17, 2009 9:13 am
Posts: 10
Location: East Kilbride
Yes! that has worked! Thanks.

_________________
Andrew Baddeley
Online Shop: http://www.360tacticalvr.com
eBAY Store: http://stores.ebay.co.uk/360tacticalvr
Pano Kit: Nodal Ninja 5 R-D16 + Pentax K5 + Samyang 8mm f/3.5 + Samyang 14mm f/2.8 + Pentax 300mm f/4 + GigaPan Epic Pro


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group