home

Topics Topics Edit Profile Profile Help/Instructions Help Register Register  
Search Last 1 | 3 | 7 Days Search Search Tree View Tree View  

Initial viewpoint and zoom for PTViewer

The Panorama Factory Forum » The Panorama Factory FAQ » Initial viewpoint and zoom for PTViewer « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 18
Registered: 5-2001
Posted on Tuesday, October 28, 2003 - 2:26 pm:   Edit PostDelete Post

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.
Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 19
Registered: 5-2001
Posted on Tuesday, October 28, 2003 - 2:28 pm:   Edit PostDelete Post

See also:

PTViewer documentation

and

Initial viewpoint and zoom for QTVR

Initial viewpoint and zoom for IVR (Java viewer)

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Administration Administration Log Out Log Out   Previous Page Previous Page Next Page Next Page