John Strait
Moderator Username: Jstrait
Post Number: 18 Registered: 5-2001
| Posted on Tuesday, October 28, 2003 - 2:26 pm: | |
The current release of The Panorama Factory (V3.1) does not provide a direct method for controlling the initial viewpoint and zoom factor for panoramic viewers. Happily, with PTViewer you can set the initial viewpoint and zoom by editing the HTML code in the web page. You set the initial zoom, pan and tilt by using the fov, pan and tilt parameters to PTViewer. The zoom factor is determined by setting the horizontal field of view in degrees. A larger field of view corresponds to a smaller zoom setting. You set the initial view point by setting the pan angle (left-right) and tilt angle (up-down). You use the fov parameter to set the zoom scale. For example, to set the initial field of view to 22.5 degrees, add the line: <param name="fov" value="22.5"> after the line <param name="file" value="yourfile.jpg"> You can also control the initial view point by setting the pan and tilt parameters in a similar way. For example, to set the initial view point 30 degrees to the right from the middle of the panorama and 15 degrees above the midline, add the lines: <param name="pan" value="30.0"> <param name="tilt" value="15.0"> after the line <param name="file" value="yourfile.jpg"> The fov parameter sets the horizontal field of view in degrees. It should be a value from 12 to 165. 12 is maximum zoom, 165 is maximum wide angle. The pan angle should be a value from -180 to 180. -180 is at the left hand end of a 360 degree panorama, 180 is at the right hand end. If it is a partial panorama (less than 360 degrees), some values will be out of range. The tilt angle should be a value from -90 to 90. -90 is straight down, 90 is straight up. If the vertical field of view of your panorama is less than 180 degrees, some values will be out of range. PTViewer contains a command to help you figure out what settings to use. View your panorama in PTViewer and zoom and pan until you have the desired view. Pressing the "v" key on the keyboard will display the current pan, tilt and fov angles in the status line of your browser. (You may have to click on the PTViewer image before pressing the "v" key.) Then you can enter these values into the <param ...> lines to set the initial view.
|