pan0

pan0 is a spherical panorama viewer, based on Flash 9 and Papervision3D engine and meant to be embedded in a web page.

pan0 is the new name of the formerly known fspp - Flash Spherical Panorama Player since version 0.10.

pan0 is the engine of pan0.net.

pan0's goals are to be simple, effective and easy to use player for spherical panoramas.



Usage

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
    width="100%" height="100%" title="Hello, Panorama">
    <param name="allowFullScreen" value="true" />
    <param name="movie" value="pan0.swf?panoSrc=pano.jpg" />
    <param name="quality" value="high" />
    <param name="BGCOLOR" value="#AAAAAA" />
    <embed src="pan0.swf?panoSrc=pano.jpg" allowFullScreen="true" 
        width="100%" height="100%" quality="high" 
        pluginspage="http://www.macromedia.com/go/getflashplayer" 
        type="application/x-shockwave-flash" bgcolor="#DDDDDD">
    </embed>
</object>

Parameters are not required. If you omit them they will have default values. In the example above only panoSrc parameter has been set.Use & to separate parameters.

Note:
The parameters that are passed to pan0 are the ones after the "?" (and there are 2 fragments, one for the <object> and one for the <embed> tag, this is because of browser compatibility)
Do not confuse allowFullScreen parameter that is passed to Flash Player (it doesn't need to be modified) with the one that is passed to pan0.


ParameterDefault valueDescription
panoSrcpano.jpgPanorama image to display. Must be in equirectangular projection.
tesselation30Tesselation of the sphere where panorama image is projected. More is smoother, but slower.
PA0Initial pitch angle in degrees. Default points to the horizon.
minPA-90Minimal pitch angle in degrees. Default points to the nadir.
maxPA90Maximal pitch angle in degrees. Default points to the zenith.

Note: If you set minPA and maxPA to 0 you can display cylindrical panoramas with pan0
(Removed since 0.03) zoom1.5Initial zoom.
(Removed since 0.03) minZoom1Minimal zoom.
(Removed since 0.03) maxZoom5Maximal zoom.
(Added in 0.03) FOV70Vertical field of view in degrees
(Added in 0.03) minFOV40Minimal vertical field of view in degrees
(Added in 0.03) maxFOV120Maximal vertical field of view in degrees
(Added in 0.10) mirrorImagefalseMirror image horizontally. For compatibility with versions before 0.10, which had a bug and displayed horizontal flipped panorama.
allowFullScreentrueAllow fullscreen mode.





Download

pan0 is licensed under GNU GPL. Since version 0.10, however, there is one more restriction:

You agree not to use and/or implement pan0 in any other website, providing the same or similar features as pan0.net

If in doubt, please use the link from the footer to contact me. However, it is perfectly ok to use pan0 - as is, modified or as a part of another software, in any other kind of website - commercial or not, as well for any kind of offline content.

© 2008 Atanas Minev

download latest compiled version (0.10)

download source code (0.10)
download old version source code (0.03)
download old version source code (0.02)
download old version source code (0.01)
download sample Windows .bat script to compile the source using the Adobe Flex SDK (this is needed only for the 0.01 and 0.02 versions)

If you want to compile pan0 yourself you need the free Adobe Flex SDK and for the 0.01 and 0.02 versions also the Papervision3D Flash 3D engine.


ChangeLog:
-----------------------------------------------------------------------------------------------------------
dd.mm.yy    version     description
-----------------------------------------------------------------------------------------------------------
20.10.08    0.10        - fixed horizontal panorama mirroring issue
                    
                        - added commandline parameter:
                            mirrorImage - preserve old behaviour, e.g. image is mirrored horizontally,
                            this is for compatibility with old versions
                        
                        - added help panel
                        
                        - added pan0.net logo
                        
                        - added double click toggle fullscreen functionality
-----------------------------------------------------------------------------------------------------------
29.07.08    0.03        - removed zoom, minZoom, maxZoom parameters, they are obsolete now
            
                        - added commandline parameters:
                            FOV    - set initial vertical field of view in degrees, default = 70
                            minFOV - set minimal FOV, default = 40
                            maxFOV - set maximal FOV, default = 120
                            
                        - field of view now is consistent, regardless of windows size or fullscreen mode
                        
                        - added load progress indicator
                        
                        - Papervision3D engine is now bundled with the source for easier maintaining
-----------------------------------------------------------------------------------------------------------
09.06.08    0.02        added commandline parameters:

                        tesselation - tesselation of the pano sphere - default = 30, more is smoother, 
                            but slower

                        PA    - initial pitch angle - default = 0 degrees, points to horizon
                        minPA - min pitch angle - default = -90 degrees, camera points to nadir
                        maxPA - max pitch angle - default = 90 degrees, camera points to zenith
                        
                        zoom    - initial zoom - default = 1.5
                        minZoom - min camera zoom - default = 1
                        maxZoom - max camera zoom - default = 5
                        
                        allowFullScreen - allow fullscreen mode - default = true
-----------------------------------------------------------------------------------------------------------
06.06.08    0.01        initial revision