Panotour/*.swf display problem?  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
User avatar
klausesser
Member
 
Posts: 8836
Likes: 5 posts
Liked in: 63 posts
Joined: Mon May 22, 2006 12:18 am
Location: Duesseldorf, Germany
Info

by klausesser » Thu May 24, 2012 4:00 pm

scoopz wrote:I checked my webserver error logs and saw lots of permission denied requests for all the tile, very strange since I've been using PTP perfectly for the last few years and not changed my workflow.

Hi scoopz!

Good point! I remember familiar issues when uploading a Gigapixel to the server. There was plenty of webspace - but the server suddenly denied uploading.
After all we found out the it was the AMOUNT of files . . uploading a Gigapixel means some half a million small files - and the server suspected an error.

After correcting the server settings it was fine. I used Fetch - switched to Fugu and Cyberduck.

best, Klaus
Simplicity is the keynote of all true elegance. Coco Chanel

no avatar
hankkarl
Member
 
Posts: 1284
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 21, 2006 5:32 pm
Location: Connecticut, USA
Info

by hankkarl » Thu May 24, 2012 8:41 pm

Motorized, can you put the tour up on the web on a test server so we can see what's going on?

no avatar
Motorised
Member
 
Topic author
Posts: 58
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 15, 2011 8:00 pm
Location: London UK
Info

by Motorised » Fri May 25, 2012 1:13 pm

Whoa Whoa Whoa everybody. All this talk about installing local servers and uploading the finished code to test servers.

I haven’t got anywhere near that far yet. All I’ve done so far is place minimal content on a page to be styled. So the page consists of empty divs a heading and a footer. The only content on the page so far apart from header text and an unordered list in the sidebar is the pano in the mainContent div. It’s been styled with a border and a css background, and this is what I get. Look and you’ll see the video frame/css background color and a 1px border. That’s it.
Now look at the pano again. The map is there so that bit works, and the pano is there within its border and background css frame, but where is the pano? Why the black/blank background? Perhaps the error message might provide a clue to those in the know about these things?

Is the data folder in the same folder as the swf? Yes.



no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Fri May 25, 2012 1:30 pm

Motorised wrote:Whoa Whoa Whoa everybody. All this talk about installing local servers and uploading the finished code to test servers.

I haven’t got anywhere near that far yet. All I’ve done so far is place minimal content on a page to be styled. So the page consists of empty divs a heading and a footer. The only content on the page so far apart from header text and an unordered list in the sidebar is the pano in the mainContent div. It’s been styled with a border and a css background, and this is what I get.

OK - so when viewing the tour in the browser right-click select View source, Select all and Copy and paste the HTML source into a forum message/post between Code tags - then we can see the HTML for your page and will be better able to comment.


Last edited by mediavets on Fri May 25, 2012 1:31 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

User avatar
scoopz
Member
 
Posts: 68
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 28, 2011 12:51 pm
Info

by scoopz » Fri May 25, 2012 4:05 pm

Let's keep things simple here. What happens if you try to load
http://127.0.0.1/haysGalleriadata/haysgalleria0/preview.png
in a new tab? Does it load or does it fail to load? [since I can't see the address bar in the screen shot replaced 127.0.0.1 with whatever the local path is]

For whatever reason the swf is obviously failing to see or load the image files. It would be useful to know if you can manually enter the URL to the images and load them on their own? If you can't then at least we know what to continue investigating.
Test System Spec: 15" Retina MacBook Pro, 2.7GHz i7, 16GB RAM, 768GB SSD, OS X Yosemite

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Fri May 25, 2012 5:01 pm

scoopz wrote:Let's keep things simple here. What happens if you try to load
http://127.0.0.1/haysGalleriadata/haysgalleria0/preview.png
in a new tab? Does it load or does it fail to load? [since I can't see the address bar in the screen shot replaced 127.0.0.1 with whatever the local path is]

For whatever reason the swf is obviously failing to see or load the image files. It would be useful to know if you can manually enter the URL to the images and load them on their own? If you can't then at least we know what to continue investigating.

I'm not all sure that he has a local web server at all.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
vklaffehn
Member
 
Posts: 135
Likes: 0 post
Liked in: 0 post
Joined: Thu May 14, 2009 1:10 pm
Location: Braunschweig, Germany
Info

by vklaffehn » Fri May 25, 2012 8:26 pm

Motorised wrote:I haven't uploaded the files to a server. When I double click on the swf file it works fine. The *.swf is being called from a web page using this code..

<div class="videoFrame">
<object width="600" height="400"> <embed src="images/panos/haysGalleria.swf" width="600" height="400" allowFullScreen="true"> </embed> </object>
</div>

The data folder is in the images/panos folder, "haysGalleriadata" is in there sitting right beside it. When I double click the swf file from within Expression web pro 4, in the folder list, it works fine. When I run the web page what I get is the image above.


When I use this code:


<iframe width="600" height="400" src="images/panos/haysGalleria.swf" allowfullscreen="true"></iframe>

It works but will not go to full screen.

If I read this well, I have an Idea : you have your HTML file in a folder, and the whole panorama is in the subfolder 'images\panos', so if you embed the swf file in the html sitting in your base folder, it expects to find its files in a subfolder from your base folder called haysGalleriedata. To make my thoughts a bit clearer :

I think you have something like this :
Code: Select all
c:\website\yourhtmlfile.html
c:\website\images\panos\haysGalleria.swf
c:\website\images\panos\haysGalleriadata\<images>

if you use an Iframe, the root folder of the iframe becomes
Code: Select all
c:\website\images\panos\

so the swf will look for the images in a subfolder from this folder :
Code: Select all
c:\website\images\panos\haysGalleriadata\

but if you embedd the swf in your html, the swf expects its data in :
Code: Select all
c:\website\haysGalleriadata\

which isnt there.

I think there are two ways to solve the problem, first is using the 'embedd all data' option, if the panorama is not that large (i have done it with a panorama on my homepage, see signature), second would be to tell the swf where to find the images, i think this should help
http://krpano.com/docu/xml/#krpano.basedir
And, if you want the fullscreen to work, you need some extra code in your html, look at the fullpage.html template in PTP, maybe you can link your iframe to the fullpage.html instead of the swf file...

Code: Select all
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Virtual Tour generated by Panotour</title>
  <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <meta name="apple-mobile-web-app-capable" content="yes"/>
  <style type="text/css">
    @media only screen and (min-device-width: 800px) { html { overflow:hidden; } }
    * { padding: 0; margin: 0; }
    html { height: 100%; }
    body { height: 100%; overflow:hidden; }
    #container { height: 100%; min-height: 100%; width: 100%; margin: 0 auto; }
  </style>
</head>
<body>
  <script src="swfobject/swfkrpano.js"></script>
  <div id="container">
      <div id="panoDIV" style="height:100%;">
        <script>
          embedpano({target:"panoDIV",swf:"build.swf"});
        </script>
          <noscript>
            <div id="tour">
              <object width="100%" height="100%">
                <embed src="build.swf" width="100%" height="100%" allowFullScreen="true"></embed>
              </object>
            </div>
          </noscript>
        </div>
      </div>
</body>
</html>

I hope this helps a bit!

By the way, on my Joomla based homepage I use a shadowbox, wich, i believe, is quite close to an iframe in this matter, and i link to the 'fullpage.html' instead of the swf file :
Code: Select all
<a href="../panoramen/dk/dk.html" rel="shadowbox;"><img src="../panoramen/dk/dkdata/dk0/preview.jpg" border="0" /></a>

and everything is working fine.

Mfg
Volker Klaffehn
Last edited by vklaffehn on Fri May 25, 2012 8:32 pm, edited 1 time in total.

no avatar
Motorised
Member
 
Topic author
Posts: 58
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 15, 2011 8:00 pm
Location: London UK
Info

by Motorised » Sat May 26, 2012 1:38 pm

Ok, let’s see if I’ve got this straight.

The web page, in this case index.html is calling the swf from

images/panos/hayGalleria.swf

But the swf has no idea of the file path and is expecting and calling its data files – ie haysGalleriadata from the same folder in which the index.html resides…Which as you say is not there....

Ok, I’ll give it a try. Hold onto your hat, while I copy and paste the haysGalleriadata folder into the same folder as the html file…..so both index.html and haysGalleriadata will be in the base folder together…

no avatar
Motorised
Member
 
Topic author
Posts: 58
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 15, 2011 8:00 pm
Location: London UK
Info

by Motorised » Sat May 26, 2012 2:10 pm

Ladies and Gentlemen we have a genius amongst us.

Sir, I bow before you. My sincere gratitude indeed.

It’s amazing isn’t it. With the benefit of hindsight the answer is so obvious. Several months ago I had the same problem but at that time I did find a workaround. Whether this is it, I don’t know. I’m certainly not willing to accept any credit. The credit is all yours…

One last question if I may: The swfobject folder..

Is the swfobject folder a generic folder able to serve many swf’s or has each individual swf got to have its own swfobject folder. In which case they would need to be kept separated to stop them overwriting themselves. Or is that a non-issue?

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Sat May 26, 2012 2:39 pm

Motorised wrote:It’s amazing isn’t it. With the benefit of hindsight the answer is so obvious.

Glad to hear you have resolved the issue.

Unless I am mistaken i suggested the likely problem way back in this thread:

http://www.kolor.com/forum/p99259-2012-05-21-14-41-38#p99259

I quote:

"Perhaps:

1. You haven't uploaded all the files created when you built the tour and/or you didn't maintain the file and folder/directory structure?"
Last edited by mediavets on Sat May 26, 2012 2:42 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
Motorised
Member
 
Topic author
Posts: 58
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 15, 2011 8:00 pm
Location: London UK
Info

by Motorised » Sat May 26, 2012 3:06 pm

Ok, to take this a little bit further, in a bid to clean up the folders a little I just deleted the data folder from the panos folder and it stopped working again. I got the same as before, listed above but the controls disappeared too. So now I've got both the swf and its data files in the base folder together and it's all working again. If there's a lesson to be learned here it's that the swf's are very picky about where they live. Who would have guessed they'd be so fussy.

As there are so many people involved here, my apologies if anyone came up with the right answer but I missed it and didn't pick up on it.

What about the swfobject folder? Are they generic or kept separate?

User avatar
klausesser
Member
 
Posts: 8836
Likes: 5 posts
Liked in: 63 posts
Joined: Mon May 22, 2006 12:18 am
Location: Duesseldorf, Germany
Info

by klausesser » Sat May 26, 2012 5:50 pm

Motorised wrote:What about the swfobject folder? Are they generic or kept separate?

As you learned right now - and as i showed you in my screenshot some days ago - leave the folder-structure EXACTLY like it comes from PTP . . unless you DEFINITELY know what you´re doing . . :cool:

best, KLaus
Simplicity is the keynote of all true elegance. Coco Chanel

no avatar
hankkarl
Member
 
Posts: 1284
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 21, 2006 5:32 pm
Location: Connecticut, USA
Info

by hankkarl » Sun May 27, 2012 1:34 am

mediavets wrote:
Motorised wrote:It’s amazing isn’t it. With the benefit of hindsight the answer is so obvious.

Glad to hear you have resolved the issue.

Unless I am mistaken i suggested the likely problem way back in this thread:

http://www.kolor.com/forum/p99259-2012-05-21-14-41-38#p99259

I quote:

"Perhaps:

1. You haven't uploaded all the files created when you built the tour and/or you didn't maintain the file and folder/directory structure?"

And the same resolution was suggested here: http://www.kolor.com/forum/p99431-2012-05-23-10-44-29#p99431

"That is, move it [/hayesGalleriaData] up two levels so /haysGalleriadata is on the same level as /images and see if that works."

And you said http://www.kolor.com/forum/p99486-2012-05-24-02-52-25#p99486

"But as the Kolor generated *.swf file is proving to be unreliable, presumably a bug that needs a fix, when it can't find its own data files - look at the original image above and read the information contained within and it becomes apparent that it has an internal problem - and despite hankkarl's best efforts to convince me I haven't got a clue about file paths, considering I've been working with file paths since DOS in the early 90's I reckon I might have got the hang of it by now."

no avatar
Motorised
Member
 
Topic author
Posts: 58
Likes: 0 post
Liked in: 0 post
Joined: Tue Feb 15, 2011 8:00 pm
Location: London UK
Info

by Motorised » Sun May 27, 2012 9:02 am

Thank you everybody for all your contributions because without everybody’s involvement I certainly wouldn’t be that much wiser after the event as I am now.

Yes, I agree. I have every reason to be contrite and grateful for the lessons learned.

Sometimes when you’re facing in the opposite direction, it’s hard to see the carrot that’s being dangled in full view behind you and need a tap on the shoulder in order to see it. Even then with so much good intention heading your way, you can still fail to see what everybody else is looking at and considers so obvious. I doubt if I’m the first to make that mistake, and I doubt I’ll be the last. Although we did get there in the end, and probably a little wiser after than we were before. It’s all part of life’s rich pageant, as they say.

no avatar
Landroval
New member
 
Posts: 4
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 30, 2011 1:57 pm
Info

by Landroval » Sun Dec 23, 2012 10:39 am

Hello from Russia (sorry for language). I saw that files are not loading because panorama is published not in root page (not in http://musicworker.ru, but in http://musicworker.ru/my-panorama/). If it will be posted in root - all works fine. So I find 2 ways to solve it:

1. Open .htaccess
RewriteRule ^my-panorama/(.*)$ /$1 [L]

2. For Wordpress users - use plugin Panopress http://www.panopress.org/instructions/ and insert your pano via
[pano file="http://musicworker.ru/my-panorama/pano.swf"]

or simply use this code (it works with deactivated Panopress)

<object type="application/x-shockwave-flash" data="http://musicworker.ru/pano.swf" width="915" height="400" style="display: block;" class="pp-embed-content" id="pp_9296"><param name="flashvars" value="externalinterface=1&"><param name="allowfullscreen" value="true"><param name="quality" value="high"><param name="menu" value="false"><param name="bgcolor" value="#ffffff"><param name="base" value="http://musicworker.ru/"><param name="wmode" value="window"></object>
<script type="text/javascript">panopress.embed({"id":"pp_9296","type":"flash","version":"9.0.0","viewer":null,"width":"915","height":"400","title":null,"alt":null,"button":true,"panobox":false,"preview":"","file":"http:\/\/musicworker.ru\/pano.swf","params":{"base":"http:\/\/musicworker.ru\/","wmode":"auto"}})</script>
<noscript><div class="pp-error"><strong>Error</strong><br/>Javascript not activated</div></noscript>
Last edited by Landroval on Sun Dec 23, 2012 1:43 pm, edited 1 time in total.

Previous

Who is online

Users browsing this forum: No registered users and 1 guest