View Full Version : Setting up Panorama?
photocroatia
7th of February 2004 (Sat), 04:57
Quick question please, are there details anywhere on how to setup panorama to work with EE?
I searched around but couldn't see any instructions anywhere.
Please help.
Thank You
TomKa
7th of February 2004 (Sat), 05:51
You have to tag the parameter panorama in the picture editor of the admin section for the panorama picture.
Inside the root directory of the gallery you have to place the PTViewer.
Latest version is PTViewer 2.7L2 beta3ca, you can get it from the file section of http://groups.yahoo.com/group/PanoTools/files/PTViewer/ or I can send it to you (you have to register for the group).
To display undistorted cylindrical panos you have to enlarge the canvas of the picture to get a, for example, a picture with the proportions of 1:2 like 1000x2000 pixel.
Next step is to restrict the Tiltmax and Tiltmin if you have a cylindrical pano, there is a useful online tester:
http://users2.ev1.net/~wufdog/PT/ptviewertester/ptviewertester.htm
Inside the file pt_panorama.php in the directory viewerstyles of the gallery you have to define the applet parameter, eventuell also with tiltmax and tiltmin for cylindrical pans. Here is a part of the code in the file:
?><applet name="ptviewer" archive="<?php print $toroot; ?>ptviewer.jar" code="ptviewer.class" width="500" height="300">
<param name="file" value="<?php print $url; ?>">
<param name="fov" value="100">
<param name="fovmax" value="120">
<param name="fovmin" value="30">
<param name="auto" value="0.3">
<param name="bgcolor" value= "<?php print $s_back_color; ?>" >
</applet><?php
photocroatia
7th of February 2004 (Sat), 07:07
Thank you very much for your help! By cylindrical panos you mean left, right up and down?
All I wanted is a way of seeing panormama photos, so left and right only
Pekka
7th of February 2004 (Sat), 11:44
Tomka, can you list of a set of parameters to change in EE editor for each photo in order to make PT customizable and working nicely for each photo?
TomKa
8th of February 2004 (Sun), 02:17
Customizable parameters:
"width" and "height" of the applet window
<applet code="ptviewer.class" width="300" height="120" archive="ptviewer.jar">
"tiltmin" minimum tilt angle (-90 to 0, default -90 for spherical, or -vertical field of view for cylindrical panos)
"tiltmax" maximum tilt angle (90 to 0, default 90 for spherical, or vertical field of view for cylindrical panos)
For a spherical pano with the proportions 1:2 (1000x2000 pixel) there is no need fo tiltmin and tiltmax.
If somebody wants to display a cylindrical pano with the size of, let's say, 500x2000 pixel, he has to enlarge the canvas of the picture to the size proportions of 1:2, to 1000x2000 pixel. So we end up with the pano picture in the middle and two stripes over and under the panorama picture. Next step is to set the parameters for "Tiltmin" and "Tiltmax" to limit the display of the pano viewer:
<param name="tiltmin" value="-45">
<param name="tiltmax" value="45">
These parameters have to be customizeable for every individual panorama picture. Otherwise I can only display spherical panoramas (no need for tiltmin/tiltmax) or cylindrical panos with a fixed value (without the possibility to look up and down in spherical panorama. Don't know if this can be done for individual pictures.
"pan" initial pan angle (-180...180, default 0)
To define the start point of the rotating panorama
"panmax" maximum pan angle ( 0...180, default none)
"panmin" minimum pan angle (0..-180, default none)
If somebody wants to display only partial and not 360° panoramas, don't know if this is useful.
The other, basic, parameters can remain fixed.
<param name="file" value="<?php print $url; ?>">
<param name="fov" value="100">
<param name="fovmax" value="120">
<param name="fovmin" value="30">
<param name="auto" value="0.3">
<param name="bgcolor" value= "<?php print $s_back_color; ?>"
If somebody wants to set other parameters like a wait-image or the color and the size of the loading bar, these parameters can be defined in a file named PTDefault.html where I put these always the same parameters like:
{bar_y=230} {bar_x=150} {bar_width=200} {bar_height=5} {barcolor=FF0000}
{wait=wait.gif}
With PTViewer it is also possible to display a whole virtual tour with all the definitions in the parameter tags, here is an example http://www.panoviews.com/panodemo/tour/tour_it.htm - you have to look at the source code of the html page. But this possiblity goes definitvly beyond the features of a gallery for single pictures, because the tour must be scripted by hand or another tools. A possiblity to insert the scripted code would be fine, but it's not needed for EE.
Here is a brief description for all parameters:
http://users2.ev1.net/~wufdog/PT/ptviewerscripting/_ptViewer_Start.htm
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.