Fri Apr 08, 2005

Plugin mem_panorama

Adds an easy access tag for PTViewer 3.1.2. PTViewer is an applet use to display panoramic images in an interactive way.

PTViewer was created and is maintained by Helmut Dersch. For more information about PTViewer, please visit http://webuser.fh-furtwangen.de/~dersch/.

If you are hosting on TextDrive, or on a server with mod_security, you may need to add the following line to an .htaccess file. Forum Thread


SecFilterSelective "HTTP_USER_AGENT" "Java" "allow,nolog"

—>

Thanks to Mickael over at www.360Days.com for this gorgeous 360×180 shot in Barcelona, June 2004.

Usage

Place the tag <mem_panorama <span>attrs</span> /> in an entry, page or form. Replace attrs with the attributes from the completed list below.

<mem_panorama file="/images/panorama_1.jpg" pan="-30" tilt="5" />

COMPLETED

All features added after v2.5 – http://webuser.fh-furtwangen.de/~dersch/hdr/Readme.txt

Basic features from < v2.5

  1. auto – autorotation angle (-360…360, default 0) pan angle is incremented by that amount for each frame. Specify degrees, fractional values allowed.
  2. barcolor – the color of the progress bar (default dark gray).
  3. bar_x – the x-coordinate of the upper left point of the progress bar (default width/4)
  4. bar_y – the y-coordinate of the upper left point of the progress bar (default height*3/4)
  5. bar_height – the height of the progress bar (default 10 pixels).
  6. bar_width – the width of the progress bar (default width/2).
  7. bgcolor – Hexadecimal integer specifying color of background
  8. file – The filename of the panoramic image. Alternatively, a panorama from a list specified using the pano0/1/2 tag can be loaded using the filename ‘ptviewer:Number’ . Example: ‘ptviewer:3’ loads the panorama with list number 3.
  9. fov – initial horizontal field of view (12…165, default 70)
  10. fovmax – maximum field of view (default 165)
  11. fovmin – minimum field of view (default 12)
  12. maxarray – the maximum size for linear arrays on this machine (default 524288 for Netscape). See the notes about large images.
  13. pan – initial pan angle (-180…180, default 0)
  14. panmax – maximum pan angle ( 0…180, default none)
  15. panmin – minimum pan angle (0..-180, default none)
  16. pwidth, pheight – Width and height of Panoramic image in pixel. By default, these parameter equal the width and height of the image specified in ‘file’. Required only if regions of interest (ROI) are inserted later. See chapter below.
  17. quality – determines which of the two built-in pixel-interpolators are used for rendering the images: either the nearest-neighbor (nn, fast, low image quality) or the bilinear (bi, slow, high image quality) interpolator. The available options are 0 – always nn; 1 – nn for panning and autopanning, bi for stills; 2 – nn for panning, bi for stills and autopanning; 3 – always bi. (default 3).
  18. tilt – initial tilt angle (-90…90, default 0)
  19. tiltmax – maximum tilt angle (90 to 0, default 90 for spherical, or vertical field of view for cylindrical panos)
  20. tiltmin – minimum tilt angle (-90 to 0, default -90 for spherical, or -vertical field of view for cylindrical panos)
  21. view_x – x-coordinate of upper left corner of the panorama viewer. (default 0).
  22. view_y – y-coordinate of upper left corner of the panorama viewer. (default 0).
  23. wait – Name of image (gif or jpeg) to be displayed during download. Specify path relative to html-document. This image is displayed centered in the applet window
  24. waittime – Minimum time to display the wait image, in Milliseconds (default 0). This is useful if an animated gif-image is used, and the animation should finish before display of the panorama.
  25. view_height – the height of the panorama viewer in pixels. Defaults o height of applet window.
  26. view_width – the width of the panorama viewer in pixels. Defaults to width of applet window.

PENDING

These features may never be included.

  1. mousehs – Name of a user supplied javascript function which gets called everytime the mouse enters or leaves a hotspot. See example and notes on scripting below.
  2. getview – Name of a user supplied javascript function which gets called everytime the view (pan, tilt or field of view) changes. See example and notes on scripting below.
  3. frame – An image to be displayed in front of the panorama window. This should be a gif or jpeg image. It will be inserted into the applet window aligned to the lower right edge. See the control buttons in Controls.html for an example.
  4. shotspot0,1,2,...- Description of static hotspots, see next chapter
  5. pano0,1,2,3 -List of panorama images for built-in controls. See next chapters for details.
  6. hsimage – Name of hotspotimage describing masks for all hotspots. This image must have identical dimensions as the panoramic image. See chapter on hotspots below.
  7. hotspot0,1,2,... – Alternative way to set hotspots, see next chapter
  8. sound0, sound1, sound2,... – Names of sound files to be used by the applet.
  9. roi0/1/2 – List of high resolution images to be inserted into the panorama as zoomable feature. For syntax and details see separate chapter below

file: mem_panorama.zip [61.87KB]
Category: Textpattern
download: 516

Comment

Using Textpattern 4.0.5. Plugin is activated but not generating applet tag. The mem_panorama tag I place in article just appears in generated html. Thanks

— Darron · 07/13/07 09:37 AM · #

Darron, the tag shown above is intentionally missing the “txp:” prefix. Use ”< txp:mem_panorama …” (without the space after the < )

Manfre · 07/15/07 11:16 AM · #

Commenting is closed for this article.