Importing Panoramas from PTGui
- Run PTGui, load in your photographs, and assemble them as normal until you have achieved your desired result. At the
bottom of the panorama editor window you will see the field of view angles reported by PTGui and you should make a note
Here we cover three types of panorama: cylindrical, cylindrical transverse and spherical (equirectangular). If you choose a cylindrical panorama in the panorama editor and the panorama has its largest field of view in the horizontal direction then it is of the normal "cylindrical" type. If it is larger in the vertical direction or wraps around overhead then it has a "cylindrical transverse" type. Spherical panoramas can wrap around in both vertical and horizontal directions.
- Calculate the minimum and maximum field of view (FOV) angles for the horizontal and vertical directions. In our example
with a spherical panorama, the horizontal field of view is 360 degrees (wraps around) and the vertical field of view is
115 degrees. From these values we calculate the four constants:
thetaMin = 180 - (Horizontal_FOV / 2)
thetaMax = 180 + (Horizontal_FOV / 2)
phiMin = 90 - (Vertical_FOV / 2)
phiMax = 90 + (Vertical_FOV / 2)
The meaning of these constants is illustrated by the following diagram:
- Save the final version of your panorama to a jpeg file, e.g. testpano.jpg.
- You now have two choices, either 4a you manually create a small xml file and link the stitched panorama directly, or 4b you create a tile set and xml file using the hdmake tool. Use method 4a if the file size is small, less than 4MB, otherwise use method 4b which enables progressive updating in the viewer.
Write a small XML file to inform HD View about your jpeg file. This XML file should have the
Run hdmake from the command line as
hdmake -src tstpano.jpg -dst testpanotiles 0.75 -xmlsphere testpano.xml 0 360 32.5 147.5