PDA

View Full Version : smartscale


Sully
01-25-2009, 10:08 AM
I'm having a problem using the smartscale plugin, probably due to my inexperience and lack of knowledge of xml code.
I have attached 3 screen shots of the tour taken from the same perspective on three different screens set at different resolutions.
125

126

127
As you will see, the two pop-up images (wine bottle & text scroll) are not being scaled into place.
I have tried editing the default width of the plugin and adding a default height all with similar results.
The tour was created on the 1680x1050 resolution.
Below is the xml for the tour.... can anyone tell me what I've done wrong please.

<?xml version = '1.0' encoding = 'utf-8'?>

<panorama>

<parameters>

panoType = cube
loaderText =


layer_1 = files/files/vtMeter.swf

//layer_2 = files/files/autorotator.swf

layer_3 = files/files/smartscale.swf
layer_99 = files/files/editor.swf
layer_6 = files/files/hotspots.swf
layer_7= files/files/tooltips.swf
layer_8= files/files/mp3hotspot.swf

</parameters>
<smartscale>
mode=reduce
</smartscale>

<hotspots>
<global

onStart="loadFirstPano;"
loadFirstPano="loadbar; ontransitionstart=downstart; ontransitionend=downentry;"

downstart="
pano.segments = 15
pano.pan_v=0;
pano.tilt_v=-0;
pano.zoom_v=0;
pano.zoom=1;
pano.pan=-20
pano.tilt=0;"

downentry="global.timer+=1,750,,doentry"
downentry = "
pano.zoom=1,1000,easyOut;
pano.pan=-1,1000;
pano.tilt=0,1750,easyOut,normalize;"
normalize="
pano.segments=25;
pano.qualityStatic=high;"

loadbar="loadPano(panoName=images/bar/la_barca_bar,500,fade);
external.autorotator.pause=3000;"

navSwitch="navSwitchOff"
navSwitchOn="nav_hide.staticY=-100,500;
nav_show.staticY=-100,500;
normalscreen.staticY=-100,500;
fullscreen.staticY=-100,500,,afterNavSwitchOn;
navSwitch=navSwitchOff"
afterNavSwitchOn="nav_hide.visible=1;nav_hide.alpha=1,250;nav_show.a lpha=0,250,,afterNavSwitchOn2;"afterNavSwitchOn2="nav_show.visible=0;"
navSwitchOff="thumbs_underlay.staticY=92,500;thumbs_underlay_lin e.staticY=-31,500;
nav_hide.staticY=0,500;nav_show.staticY=0,500;norm alscreen.staticY=0,500;fullscreen.staticY=0,500,,a fterNavSwitchOff;
navSwitch=navSwitchOn"afterNavSwitchOff="nav_show.visible=1;nav_show.alpha=1,250;nav_hide.a lpha=0,250,,afterNavSwitchOff2;"afterNavSwitchOff2="nav_hide.visible=0;"
onEnterFullscreen="fullscreen.alpha=0,250,,afterFullscreen;
normalscreen.alpha=0;
normalscreen.visible=1;
normalscreen.alpha=1,250;"afterFullscreen="fullscreen.visible=0"onExitFullscreen="normalscreen.alpha=0,250,,afterNormalscreen;
fullscreen.alpha=0;fullscreen.visible=1;fullscreen .alpha=1,250;"afterNormalscreen="normalscreen.visible=0"

goUp="
pano.qualityStatic=low
pano.blur=10,500
pano.brightness=-0.3,500
glow=0,250
depth=15
static=1
scaleable=0
staticX=0,500
staticY=0,500
scale=1,500
alpha=1,200
distance=1,500
rotationX=0,500,elastic
rotationY=0,500,elastic
rotationZ=0,500,elastic"
goDown="
pano.qualityStatic=low
pano.blur=0,250
pano.brightness=0,500
glow=10,500,easyIn
depth=10
static=0
scaleable=1
distance=1,600
rotationX=0,600
rotationY=0,600
global.timer=1,700,-,restoreQuality"
restoreQuality="pano.qualityStatic=medium"
glowStart="glow=2,25,easyout,glowUp;"
glowUp="glowcolor=#ffffff;glow=20,50,easyin,glowDown"
glowDown="glow=2,150,easyout,glowUp"
glowNormalize="glow=5,100"
glowEnd="glow=0,100"

><spot id="fullscreen" url="files/graphics/fs.png" static="1" salign="BR" align="BR" staticX="-80" staticY="-28" scale="1" smartscale="1" depth="5" smoothing="1"
onClick="fullscreen(-)"
onOver="glowUp"
onOut="glowEnd"/>

<spot id="normalscreen" url="files/graphics/normal.png" static="1" salign="BR" align="BR" staticX="-80" scale="1" smartscale="1" depth="5" staticY="-57" visible="0" smoothing="1"
onClick="fullscreen(-)"
onOver="glowUp"
onOut="glowEnd"/>

<spot id="music" url="files/files/mp3hotspot.swf" file="files/sounds/music1.mp3;"
repeat="1000" pan="-7.24" tilt="9.84" depth="3" smartscale="1" enableSoundPanning="1" soundRadius="200" />


<spot id="email" url="files/files/contact.swf?email=jeanleon@jeanleon.com"
static="1" staticX="356.00" staticY="160.00" depth="1" smartscale="1" alpha="0" visible="0" />

<box id="emailbox" url="files/graphics/emailbox.png"
static="1" staticX="356.00" staticY="160.00" depth="1" scaleable="1" smartscale="1" alpha="0" visible="0" />

<spot id="sound1" url="files/graphics/sound.png"
static="1" staticX="0.00" staticY="0.00" salign="RB" align="RB" depth="23" smartscale="1" scale="1.50"/>



<spot id="sound2" url="files/graphics/soundoff.png"
visible="0" static="1" staticX="0.00" staticY="0.00" salign="RB" align="RB" depth="23" smartscale="1" scale="1.57"
onclick="music.soundvolume=1,500; sound1.visible=1; sound2.visible=0" />



<spot id="fs1" url="files/graphics/fs1.png" static="1" staticX="-9.00" staticY="-16.00" alpha="0" salign="RB" align="RB" depth="40" smartscale="1" scale="1.50" glow="1"
onclick="moff" moff="music.soundvolume=0,500;sound1.visible=0;sound2.vi sible=1;onclick=mon"
mon="music.soundvolume=1,500;sound1.visible=1;sound2.vi sible=0;onclick=moff"/>



<box id="text_petit" url="files/graphics/petit_text.png"
static="1" staticX="-480" staticY="-420.00" salign="RB" depth="-5" scale="1" alpha="0" smartscale="1" buttonMode="0" useHandCursor="0" />



<box id="text_reserva" url="files/graphics/reserva_text.png"
static="1" staticX="-480" staticY="-420.00" salign="RB" depth="-5" scale="1" alpha="0" smartscale="1" buttonMode="0" useHandCursor="0" />




<box id="photo1" url="files/graphics/petit_chardonnay.png" orientation="front"
linked="images/bar/la_barca_bar"
pan="-3" tilt="4.13" distance="1.8" rotationX="0.00" rotationY="0.00" depth="1" scaleable="1" smartscale="1" scale="0.14" alpha="0" glow="1" glowColor="#FFFFFF"
onClick="goUpAndSwitch"
goUpAndSwitch="goUp;text_petit.alpha=1,500;email.visible=1;
onClick=goDownIntoPlace; onOver=; onOut=;"
goDownIntoPlace="goDown; pan=-3,500; tilt=4.13,500; distance=1.8,500; depth=1,500; scale=0.14,500; alpha=0,500;email.visible=0; text_petit.alpha=0,500;
onClick=goUpAndSwitch; onOver=glowStart; onOut=glowNormalize;"
onOver="glowStart"
onOut="glowNormalize"
glowStart="glow=2,25,easyout,glowUp"
glowUp="glow=20,50,easyin,glowDown" glowDown="glow=2,150,easyout,glowUp"
glowNormalize="glow=5,100"
/>

<box id="photo2" url="files/graphics/reserva_03.png" orientation="front"
linked="images/bar/la_barca_bar"
pan="0.75" tilt="4.13" distance="1.8" rotationX="0.00" rotationY="0.00" depth="1" scaleable="1" smartscale="1" scale="0.14" alpha="0" glow="1" glowColor="#FFFFFF"
onClick="goUpAndSwitch"
goUpAndSwitch="goUp;text_reserva.alpha=1,500;email.visible=1;
onClick=goDownIntoPlace; onOver=; onOut=;"
goDownIntoPlace="goDown; pan=0.75,500; tilt=4.13,500; distance=1.8,500; depth=1,500; scale=0.14,500; alpha=0,500; text_reserva.alpha=0,500;
onClick=goUpAndSwitch; onOver=glowStart; onOut=glowNormalize;"
onOver="glowStart"
onOut="glowNormalize"
glowStart="glow=2,25,easyout,glowUp"
glowUp="glow=20,50,easyin,glowDown" glowDown="glow=2,150,easyout,glowUp"
glowNormalize="glow=5,100"
/>


</global>
</hotspots>

</panorama>

siesfor
01-27-2009, 12:36 AM
hey Sully,

I'm not exactly sure what's wrong with your pano off-hand, but I'd check out the distance setting you have for the hotspots first. distance=1 is the same plane as the pano, but 1.8 has the hotspots floating on a different plane which I'm thinking may be causing them not to stay aligned.

Sully
01-31-2009, 12:25 PM
Thanks for the tip Siesfor. I've tried messing about with the distance and depth settings but still not having any luck.
Anyone else got any ideas?
Here's a link to the tour (unfinished). It might be easier to see what's wrong by looking at it. 2 wine bottles on the top shelf are active. http://www.virtualtours.es/downloads/la_barca1/la_barca_bar.html