panorama software,virtual tour software
Alternate Text
Joined: 2002-10-04
Send Msg:
Posts: 8
2002-10-30
#1

Setting initial zoom level

Can Ptviewer scripter set the initial zoom level on a 360 Pano?

Thanks

-John


Alternate Text
Joined: 2002-11-19
Send Msg:
Posts: 59
2002-11-19
#2

Yes indeed!  Not only can you set the initial zoom {fovini=??}, but you can also set the minimum and maximum zoom (fov- field of view); the initial (opening scene) horizontal position plus minimum and maximum horizontal pan; speed and direction of rotation (clockwise or counter-clockwise), and initial vertical position plus minimum and maximum vertical pan (tilt). 

<PARAM name = pano0 value = 
 "{file=pano/????.jpg}
 {auto=0.6}
 {panmin=-180}
 {panmax=180}
 {panini=90}
 {tiltmin=-90}
 {tiltmax=90}
 {tiltini=-30}
 {fovmin=50}
 {fovmax=119}
 {fovini=83}

Using your favorite html editor (Notebook works fine for this purpose), open the .html file you want to edit.  Find the section of source code that resembles the code above and insert your own value after the equals sign in each field you want to change.

HINT #1: If your html file references more than one image file, be sure you are editing the values for the correct image.      

<PARAM name = pano2 value = 
 "{file=pano/????.jpg}

The first image is always "pano0", the second is "pano1", etc.

HINT #2:  Be sure to enter a minus sign (negative value) whenever you edit "panmin" or "tiltmin" values.  A minus sign may also be used to set the initial pan and tilt positions ("panini" and "tiltini").  Entering a negative value in the "auto" field will cause your panorama to rotate counter-clockwise.

Happy editing!

     callgary


callgary
E-mail Gary
Every moment is a learning experience. What have I learned today? What have I taught today?