View Full Version : Panorama Questions
Ed Rotberg
20th of November 2003 (Thu), 12:30
Hi,
It seems I can mark a photo as a panorama and it will work just fine as a 360 pano. Alternately, I can set the feature in the misc settings "Use Panorama Tools Java viewer for normal photos (requires a browser with Java)" which seems to change ALL images to use the PT_Viewer. However, in this case, if they are NOT marked as panoramas, I just get a tiny empty square - no image.
What I would like to be able to do is to have some true 360 panoramas (this I can already do), PLUS some flat images that can be viewed with the PTViewer as flat panos, PLUS normal photos that can be viewed without PTViewer.
Is this possible? Also, why are my flat images not showing up using the PTViewer for normal photos?
Thanks for any help.
= Ed =
Pekka
20th of November 2003 (Thu), 16:53
Ed Rotberg wrote:
Hi,
It seems I can mark a photo as a panorama and it will work just fine as a 360 pano. Alternately, I can set the feature in the misc settings "Use Panorama Tools Java viewer for normal photos (requires a browser with Java)" which seems to change ALL images to use the PT_Viewer. However, in this case, if they are NOT marked as panoramas, I just get a tiny empty square - no image.
Hi Ed,
Two issues here:
One is that PTools requires that images are on same server (IP) as the applet. Enabling "Make PT files local" will help there.
Second issue is that you found a bug: I noticed that if "Make PT files local" is NOT on, PT viewer for non-panorama photos is not opened on correct size. I checked it, found and fixed the problem.
In photo.php
Replace code
if ($s_use_pt_flat == "1") {
$viewertype = "pt_flat";
$s_try_pt_crypt = "0";
$s_ftp_view = "0";
}
with
if ($s_use_pt_flat == "1") {
$viewertype = "pt_flat";
$s_try_pt_crypt = "0";
$s_ftp_view = "0";
if ($s_imagecheckifthere == "1" OR $s_imagecheckifthere == "2") {
$sizetag = @getimagesize($url,$info);
}
else {
$sizetag = array(
"","","",""
);
}
}
That should help for starters with the image size problem when "Make PT files local" is OFF.
What I would like to be able to do is to have some true 360 panoramas (this I can already do), PLUS some flat images that can be viewed with the PTViewer as flat panos, PLUS normal photos that can be viewed without PTViewer.
This is on todo list. Per photo settings for all that.
Ed Rotberg
20th of November 2003 (Thu), 19:10
Two issues here:
One is that PTools requires that images are on same server (IP) as the applet. Enabling "Make PT files local" will help there.
That's not much of a problem for me as I have everything on my personal server.
Second issue is that you found a bug (stuff deleted)
Ahhh. That's cool. However, the fix does not appear to work either. :( Even though I did not think changing the option "Make PT files local." should make any difference, it does. When it is set, it makes the viewing box the correct size, but it is all gray where the image should be. If I leave that not set, then I still get the tiny, tiny box with nothing in it.
Since all of the files and the applet exist on my server, why should setting the "Make PT files local." affect anything? There is something I'm not getting here.
This is on todo list. Per photo settings for all that.
Great! That will be a nice feature. I will happily wait and make do in the meantime. Thanks for the great work Pekka!
= Ed =
TomKa
22nd of November 2003 (Sat), 02:17
Hi Ed,
you can display the flat panos as normal images. The only reason to use the PTViewer for flat images could be an image encrypted with PTCrypt (jpa extension).
Ed Rotberg
22nd of November 2003 (Sat), 11:06
Hmmm. I thought flat panos could be displayed differently from 360 panos in that the image would not be able to be rotated completely around, rather stopping at both the left and right edges. For large panos this would allow greater detail though the PTViewer "window".
= Ed =
TomKa
22nd of November 2003 (Sat), 11:55
Ahh, i understand.
Have a look here: http://www.zoomify.com/ez/
Zoomifyer EZ is free - we have only to convince Pekka to include Flash support into the EEngine.... 8-)
Thomas
Ed Rotberg
22nd of November 2003 (Sat), 12:45
Tom,
That's very cool. However, I believe that ptviewer.jar can be used to do a similar thing so that you can pan and zoom around a flat image as well, and EE already has support for ptviewer.jar, so less work for Pekka. Here is the reference:
http://home.no.net/dmaurer/~dersch/PTVJ/partial.html
= Ed =
Pekka
22nd of November 2003 (Sat), 13:08
Ahhh. That's cool. However, the fix does not appear to work either. :( Even though I did not think changing the option "Make PT files local." should make any difference, it does. When it is set, it makes the viewing box the correct size, but it is all gray where the image should be. If I leave that not set, then I still get the tiny, tiny box with nothing in it.
What do you see in html source code? Could you paste and post the fraction of code from your gallery's PT viewer enable image, for example:
Here is a ptviewer test page to test Java works in browser you use:
http://photography-on-the.net/gallery/jtest.php
There is always a possibility that some Java interpreters can not open the .jar package.
Since all of the files and the applet exist on my server, why should setting the "Make PT files local." affect anything? There is something I'm not getting here.
The bug I mentioned was in fetching image size. With "make local" code it worked.
Pekka
22nd of November 2003 (Sat), 13:12
Ed Rotberg wrote:
Tom,
That's very cool. However, I believe that ptviewer.jar can be used to do a similar thing so that you can pan and zoom around a flat image as well, and EE already has support for ptviewer.jar, so less work for Pekka. Here is the reference:
http://home.no.net/dmaurer/~dersch/PTVJ/partial.html
= Ed =
That is exactly what "Use Panorama Tools Java viewer for normal photos" switch enables.
TomKa
22nd of November 2003 (Sat), 13:42
Ed, have a look here to test all parameters of the PTViewer:
http://users2.ev1.net/~wufdog/PT/ptviewertester/ptviewertester.htm
A greeat source it the PanoTools Group on YahooGroups.com.
Ed Rotberg
22nd of November 2003 (Sat), 14:33
Pekka wrote:
What do you see in html source code? Could you paste and post the fraction of code from your gallery's PT viewer enable image, for example:
As requested here is the html:
NOTE: the file temp/fda0375f9990fec911989331585ebcad.jpg exists in the "gallery" folder and is the correct image. I don't know what this all means however since what shows up is gray.
Pekka wrote:
Here is a ptviewer test page to test Java works in browser you use:
http://photography-on-the.net/gallery/jtest.php
I tried that page and my the Java app in browser (IE v6.0.2800.1106) and all I got was the gray square - strange. I tried the page that Thomas referred to as well, and that one worked perfectly in my browser :(. I've very confused right now.
One additional note is that the 360 degree panos work just fine.
= Ed =
Ed Rotberg
22nd of November 2003 (Sat), 14:59
Interesting. I just tried the page you referenced: http://photography-on-the.net/gallery/jtest.php
from Opera instead of IE and it seemed to work. So I tried my site again from Opera and still got the same gray square even with Opera. Then I rebooted my PC (windows 2K) and your test page worked fine from IE, but my site still did not. I went back to your test page with IE and the test still worked fine. I'm even more confused now than before :(
NOTE: Pekka, I've left my gallery set so that normal images are displayed with ptviewer and to make the images local to the server. You have the URL for the site so you can see if you get the same results on your browser. If you wish I can email the input folder name and set you up with a login and password (that directory is password protected as you suggested) so you can check out all of my various settings. Let me know if you are interested in this.
= Ed =
Pekka
22nd of November 2003 (Sat), 15:40
Ed,
I mailed you the applet I use. It looks like the one you have is not the correct one or it is corrupted.
Also, reinstalling Java support on your system may be wise.
http://java.com/en/index.jsp
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.