Post Number: 35
|Posted on Tuesday, November 18, 2003 - 3:41 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 the Java version of the IVR viewer (panoapplet.jar) 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 initialView parameter to the Java viewer.
The zoom factor is determined by setting the vertical 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).
The initialView parameter sets the tilt angle, pan angle and zoom scale. For example, to set the initial view point 15 degrees above the midline, 60 degrees from the left hand end of the panorama, and with vertical field of view of 22.5 degrees, add the line:
<param name="initialView" value="15.0,60.0,22.5">
after the line
<param name="file" value="yourfile.ivr">
The syntax of the initialView parameter is:
<param name="initialView" value="tilt, pan, zoom">
The tilt angle should be a value from -90 to 90. -90 is straight down, 90 is straight up. If the tilt angle is too large, the viewer adjusts the angle to the maximum value possible.
The pan angle should be a value from 0 to 360. 0 is at the left hand end of a 360 degree panorama, 360 is at the right hand end. If it is a partial panorama (less than 360 degrees), some values will be out of range. In this case, the viewer adjusts the angle to the maximum value possible.
The zoom value sets the vertical field of view in degrees. Smaller values increase the zoom, larger values decrease the zoom. If the zoom value is too large, the viewer adjusts the it to the maximum field of view possible.