MGI Photovista Virtual Tour Maker: Developer’s Guide for XML
Version 1.02

Image Navigator

The Image Navigator section of the XML file contains information essential to displaying your virtual tours. This includes specifying the location of image files, viewer type and how your project will be displayed.

Image Navigator Syntax:

<ImageNavigator>
  <ImageFile>PHOTOS/inside2-gallery611.jpg</ImageFile>
  <ViewerType>Pano</ViewerType>
  <panotype>SPHERE</panotype>
  <pitchRange>-0.487 0.487</pitchRange>
  <vFov>-0.487 0.487</vFov>
</ImageNavigator>

Syntax: <vFov>-0.487 0.487</vFov>

Values: This parameter has two values, the minimum value and the maximum value. Both are expressed in radians.

Syntax:

For 2d images:

<initialView>0.280922 0.725367 0.30814 0.686047</initialView>

Values: This parameter represents the “x1, y1, x2, y2” coordinates.

For Panoramas:

<initialView>-0.592979 268.96 96.0835</initialView>

Values: This parameter represents the “yaw, pitch, zoom” coordinates within the panorama.

For Objects:

 <initialView>21 0 0.946667 0.1090910.818182</initialView>

Values: This parameter represents the “frame, x1, y1, x2, y2” coordinates. The first value of the object initial view is the frame you want to display when first loading the viewer.

Example of defining the coordinates for a 2d image: If you are not sure of the coordinates to use for hotspots, you can use an image-editing application to obtain image size in pixels and pixel coordinates so you can translate them into relative coordinates.

  1. In your image editor, take note of the image dimensions (for example, 500 x 300).
  2. Drag out the area for the hotspot, noting the pixel coordinates of the upper left and lower right corners of the area. For example, 106, 66 (upper left corner) and 346, 196 (lower right corner).
  3. Divide the horizontal pixel coordinates by the image width, and the vertical pixel coordinates by the image height. The results in the following example are rounded to a single decimal point, but you can specify more precise coordinates if you want.

Example:

106 (x1) ÷ 500 = .2, 66 (y1) ÷ 300 = .2

346 (x2) ÷ 500 = .7, 196 (y2) ÷ 300 = .7

 

The relative values for this upper left coordinate are 0.2, 0.2

The relative values for this lower right coordinate are 0.7, 0.7

Syntax: <Autospin>-5</Autospin>

Values: There is only one value for Autospin within the valid range of -50 to 50. This is the number of seconds it takes to fully rotate the panorama once. A negative value causes the panorama to rotate in reverse.

Hotspot

Hotspots allow you to define areas within your virtual tour, which can be used as hyperlinks to cause other actions. You can use hotspots to link panoramas, objects and 2d images. They can also load new HTML pages. There are a number of different parameters you can use to customize your hotspots.

Hotspot Syntax:

<Hotspot>
  <XMLSource>XML/your.xml</XMLSource>
  <Position>0.72 0.486 0.7253 0.5016</Position>
  <entryPointPano>1.55118 52.7309 84.3166</entryPointPano>
  <hotspotImage>CUSTOMGRAPHICS/custom.gif</hotspotImage>
  <Tip>Click Me</Tip>
</Hotspot>