Ich verstehe nur noch Bahnhof
Also es ist so ich habe eine Bowlingbahn 2 mal Fotografiert. einmal normal und einmal mit schwarzlicht. Bei der Navigation habe ich einen Button Der zeigt an Disco Modus an. Klickt man drauf erscheint das zweite Pano. Ich habe dazu Beide Panoramern als cubefaces nach einer Vorlage vom Klaus erstellt.
Hier der Code:
krpano onstart="start();">
<view hlookat="180" vlookat="0" fovtype="HFOV" fov="100" fovmin="70" fovmax="120" />
<action name="addface">
addhotspot(%1);
set(hotspot[%1].url, %2);
set(hotspot[%1].ath, %3);
set(hotspot[%1].atv, %4);
set(hotspot[%1].width, 1000);
set(hotspot[%1].height, 1000);
set(hotspot[%1].distorted, true);
set(hotspot[%1].details, 16);
set(hotspot[%1].enabled, false);
set(hotspot[%1].visible, false);
set(hotspot[%1].alpha, 0.0);
set(hotspot[%1].zorder, %1);
</action>
<action name="addcube">
addface(face_%1_F, %1_f.jpg, 0, 0);
addface(face_%1_L, %1_l.jpg, -90, 0);
addface(face_%1_R, %1_r.jpg, +90, 0);
addface(face_%1_B, %1_b.jpg, +180, 0);
addface(face_%1_Z, %1_u.jpg, 0, -90);
addface(face_%1_N, %1_d.jpg, 0, +90);
</action>
<action name="checkvisible">
if(%3 != 0.0, if(%1.alpha == 0.0, set(%1.visible,%2)) );
</action>
<action name="tweencubealpha">
checkvisible(hotspot[face_%1_F], true, %2);
checkvisible(hotspot[face_%1_L], true, %2);
checkvisible(hotspot[face_%1_R], true, %2);
checkvisible(hotspot[face_%1_B], true, %2);
checkvisible(hotspot[face_%1_Z], true, %2);
checkvisible(hotspot[face_%1_N], true, %2);
tween(hotspot[face_%1_F].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_F],false) );
tween(hotspot[face_%1_L].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_L],false) );
tween(hotspot[face_%1_R].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_R],false) );
tween(hotspot[face_%1_B].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_B],false) );
tween(hotspot[face_%1_Z].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_Z],false) );
tween(hotspot[face_%1_N].alpha, %2, 0.5, default, checkvisible(hotspot[face_%1_N],false) );
</action>
<action name="start">
addcube(sommer);
addcube(fruehling);
addcube(herbst);
addcube(winter);
sommer();
</action>
<action name="fruehling">
tweencubealpha(fruehling, 1.0);
tweencubealpha(sommer, 0.0);
tweencubealpha(herbst, 0.0);
tweencubealpha(winter, 0.0);
</action>
<action name="sommer">
tweencubealpha(fruehling, 0.0);
tweencubealpha(sommer, 1.0);
tweencubealpha(herbst, 0.0);
tweencubealpha(winter, 0.0);
</action>
<action name="herbst">
tweencubealpha(fruehling, 0.0);
tweencubealpha(sommer, 0.0);
tweencubealpha(herbst, 1.0);
tweencubealpha(winter, 0.0);
</action>
<action name="winter">
tweencubealpha(fruehling, 0.0);
tweencubealpha(sommer, 0.0);
tweencubealpha(herbst, 0.0);
tweencubealpha(winter, 1.0);
</action>
<textstyle name="DEFAULT" font="Arial" fontsize="14" bold="true" italic="true" background="false" border="false"
textcolor="0x000000" effect="glow(0xFFFFFF);" textalign="center"
/>
<style name="button"
scale="0.5"
alpha="0.5"
onover="tween(scale,0.6); tween(alpha,1.0);"
onout="tween(scale,0.5); tween(alpha,0.5);"
onhover="showtext(get(desc));"
align="bottom" edge="bottom" y="10"
/>
<plugin name="fruehling" desc="Frühling" style="button"
url="thumb_fruehling.jpg"
x="-180"
onclick="fruehling();"
/>
<plugin name="sommer" desc="Sommer" style="button"
url="thumb_sommer.jpg"
x="-60"
onclick="sommer();"
/>
<plugin name="herbst" desc="Herbst" style="button"
url="thumb_herbst.jpg"
x="+60"
onclick="herbst();"
/>
<plugin name="winter" desc="Winter" style="button"
url="thumb_winter.jpg"
x="+180"
onclick="winter();"
/>
</krpano>
Ich habe das Pano leider noch nicht online sonst könnte ich Dir bessser zeigen was ich meine. Ich werde es heute abend noch hochladen.
Bin grad am verzweifeln...
gruß Martin