Well, I see your code. You might consider changing the FRAME param file from a bar.png to a transparent bar.gif.
The Shot spots 0 through 7 are mouse click hotzone box positions over the frame (containing the 3 buttons). Shotspots are defined as:
Starting at the upper left corner of the viewer box as 0,0 pixels. So for each button on the 'Frame' param button graphic you will have x,y,a,b coordinate points.
Yes you can get these coordinates automatically using PT Viewer Scripter. But this is the basis.
<PARAM name = shotspot0 value = " x635 y458 a651 b478 u'ptviewer:startAutoPan(0,0,1.01)' ">
0,0 upper left corner of the viewer window
x---------a |.............| y---------b
x = 458 pixels upper left corner of the hotzone a = 478 pixels upper right
y= 635 pixels lower left corner b=651 pixels lower right corner
<PARAM NAME=file value="biral1.jpg"> <PARAM name=wait value="wait.gif"> <PARAM name=frame value="bar.png"> change to transparent bar.jif <param name=barcolor value="993333"> <PARAM name=bgcolor value="003333"> <PARAM name=auto value="0.6"> <PARAM name=panmin value="-180"> <PARAM name=panmax value="180"> <PARAM name=pan value="0"> <PARAM name=tiltmin value="-90"> <PARAM name=tiltmax value="90"> <PARAM name=tilt value="0"> <PARAM name=fovmin value="50"> <PARAM name=fovmax value="113"> <PARAM name=fov value="90"> <PARAM name = shotspot0 value = " x635 y458 a651 b478 u'ptviewer:startAutoPan(0,0,1.01)' "> <PARAM name = shotspot1 value = " x619 y458 a635 b478 u'ptviewer:startAutoPan(0,0,0.99)' "> <PARAM name = shotspot2 value = " x575 y467 a605 b478 u'ptviewer:startAutoPan(0,-1.0,1.0)' ">
Only need 3 buttons 0 through 2
<PARAM name = shotspot3 value = " x575 y457 a605 b468 u'ptviewer:startAutoPan(0,1.0,1.0)' "> <PARAM name = shotspot4 value = " x549 y457 a566 b478 u'ptviewer:startAutoPan(1.0,0,1.0)' "> <PARAM name = shotspot5 value = " x531 y457 a548 b478 u'ptviewer:startAutoPan(-1.0,0,1.0)' "> <PARAM name = shotspot6 value = " x661 y455 a714 b476 u'http://www.condottiero.com' t'_blank' "> <PARAM name = shotspot7 value = " x6 y2 a232 b25 u'http://www.condottiero.com' t'_blank' ">
------------- /s/
Dave
Forum Moderator for
EasyPano - Panoweaver
Pano2VR
Visit 360texas.com
|