Virtualguide
07-23-2008, 09:24 AM
Hi all,
I would like to share one idea Iґve got.
Maybe you many times foound the situation where the autorotation is not good for you cause your pano was shot on sloping terrain, or you have some higher bulding on the one half of pano and some depression on the second...
try to add this 2 simple functions:
<global
updown = "
pano.pan+=180,18000;pano.tilt-=10,18000,smooth,downup,stopauto
"
downup = "
pano.pan+=180,18000;pano.tilt+=10,18000,smooth,upd own,stopauto
"
stopauto = "
external.autorotator.disabled=1
pano.pan_v+=0.001
pano.tilt_v+=0.001
pano.zoom_v-=0.001
"
>
JUst change the time and tilting according to your taste... ;)
function stopauto starts, when the user would interact with panorama - it definitely stops the moving...
I use it for example with my linking with other panos:
<spot id="h5_4" pan="-102" tilt="-4" url="stop01/vlavo.png" alt="jazierko s rotundou" linked="mov/ext5" depth="27" onClick="loadpano(panoName=mov/ext4&pan=-16&tilt=18&hfov=95);stopauto();timer+=1,3000,,updown" />
clicking on this hotspot would open pano "ext5" with specific pan, tilt, hfov; stops any movement of pano and after 3 sec starts updown function...
Hope it will help someone,
:D
Regards,
Igor.
I would like to share one idea Iґve got.
Maybe you many times foound the situation where the autorotation is not good for you cause your pano was shot on sloping terrain, or you have some higher bulding on the one half of pano and some depression on the second...
try to add this 2 simple functions:
<global
updown = "
pano.pan+=180,18000;pano.tilt-=10,18000,smooth,downup,stopauto
"
downup = "
pano.pan+=180,18000;pano.tilt+=10,18000,smooth,upd own,stopauto
"
stopauto = "
external.autorotator.disabled=1
pano.pan_v+=0.001
pano.tilt_v+=0.001
pano.zoom_v-=0.001
"
>
JUst change the time and tilting according to your taste... ;)
function stopauto starts, when the user would interact with panorama - it definitely stops the moving...
I use it for example with my linking with other panos:
<spot id="h5_4" pan="-102" tilt="-4" url="stop01/vlavo.png" alt="jazierko s rotundou" linked="mov/ext5" depth="27" onClick="loadpano(panoName=mov/ext4&pan=-16&tilt=18&hfov=95);stopauto();timer+=1,3000,,updown" />
clicking on this hotspot would open pano "ext5" with specific pan, tilt, hfov; stops any movement of pano and after 3 sec starts updown function...
Hope it will help someone,
:D
Regards,
Igor.