PTViewer.js - JavaScript Panorama Viewer

PTViewer.js - JavaScript Panorama Viewer

PTViewer.js is a JavaScript-based panorama-viewer. It displays prerendered views of a scene for arbitrary viewing angles. Pan and Tilt angles are set interactively through button-controls or by clicking and moving the mouse. Alternatively, the view may pan automatically,see the example below. Each prerendered view has to be fetched from the HTTP-server, so there is some delay during the first moves. This viewer requires no plugins, Java or Flash support.


This example uses 37 rows of 72 images each for a total of 2664 frames. They cover the full spherical view of 360° horizontally and 180° vertically in steps of 5°. Images have been rendered using my Motion Picture Remapper mpremap in batch-mode. Each frame is jpeg-compressed to approximately 3kByte, and 25 frames per second are theoretically feasible over a DSL-connection. Practically, responsive mouse-interaction is possible only on a local installation, while panning (|> and <| - buttons) works even over slow connections due to caching.

The viewer may be used under the terms of the GNU-license.

Helmut Dersch
October 2007