PTViewer3dProf. Dr. H. Dersch - HFU Furtwangen This panorama viewer uses depthmaps to calculate stereoscopic images on-the-fly from monoscopic images. Unlike conventional viewers it provides stereoscopic vision vertically up and down as well as z-rotated views and head-motion parallax. This is a javascript port of previous desktop and java implementations. It requires a recent WebGL enabled browser and has been tested on Firefox. It is free software (GPL), see the Javascript sources for the license text.
|
<script type="text/javascript" src="ptviewer.js"></script>
<canvas id="ptviewer3d-canvas" style="border: medium none;" width="500" height="400"></canvas>
<script type="text/javascript"> var viewer = new PTViewer3d( document.getElementById("ptviewer3d-canvas"), PanoramaURL ); </script>
<script type="text/javascript"> viewer.set('parameter', 'value'); </script>Parameters:
panorama- URL of panoramic image.
pan- degrees
tilt- degrees
hfov- degrees
stereobase- in % of width
wiggle- in % of width
displaymode- Mono (0), Anaglyph (1), Left-Right (2), Left-Right-Squeezed (3)