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 IVR (J...

The Panorama Factory Forum » The Panorama Factory FAQ » Initial viewpoint and zoom for IVR (Java viewer) « Previous Next »

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

John Strait
Moderator
Username: Jstrait

Post Number: 35
Registered: 5-2001
Posted on Tuesday, November 18, 2003 - 3:41 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 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.
Top of pagePrevious messageNext messageBottom of page Link to this message

John Strait
Moderator
Username: Jstrait

Post Number: 36
Registered: 5-2001
Posted on Tuesday, November 18, 2003 - 3:47 pm:   Edit PostDelete Post

See also

Initial viewpoint and zoom for QTVR

Initial viewpoint and zoom for PTViewer

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