Panoramabilder miteinander verbinden

  • hallo!

    kann man die xml so programmieren, dass wenn man ein panoramabild mit autorotation bewegt und es dann wieder am anfang ist wo es angefangen hat automatisch sich das naechste bild oeffnet und so weiter......?

    damit man dann eine tour hat und die bilder in einer endlosschlaufe durchlaufen....

    was muss ich hier in die xml schreiben, damit das moeglich ist???

    es waere nett wenn mir jemand weiter helfen koennte

    gruss, schramml

  • Danke für den Link *smile*


    Aber es ist mir leider nicht ganz klar wie ich auf ein 3 ,4,5 ....Pano verlinke und dann zurück auf mein Start Pano komme,

    ich bin leider kein Programierer. *cry*

    Ich habe mal die Bilder die vorhanden sind mit meinen eigenen getauscht echt Hammer funktion ( autostart funktioniert tadellos) ich würde aber gerne eine Tour mit ca 5 - 7 Bildern erstellen.

    Es wäre echt super wenn mir jemand den Code von Klaus erläutern kann damit ich ihn für mich umbauen kann.


    Habe ihn mal angehängt vielleicht kann mir ja jemand Helfen *unsure*


    Danke und Gruss Schramml


    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].enabled, false);
    set(hotspot[%1].visible, false);
    set(hotspot[%1].alpha, 0.0);
    set(hotspot[%1].details, 16);
    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="setalpha">
    set(%1.alpha, %2);
    if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true));
    </action>


    <action name="setcubealpha">
    setalpha(hotspot[face_%1_F], %2);
    setalpha(hotspot[face_%1_L], %2);
    setalpha(hotspot[face_%1_R], %2);
    setalpha(hotspot[face_%1_B], %2);
    setalpha(hotspot[face_%1_Z], %2);
    setalpha(hotspot[face_%1_N], %2);
    </action>


    <action name="start">
    addcube(sommer);
    addcube(winter);
    </action>


    <action name="blendcubes720">


    set(overlap, 30); <!-- set overlapping/blending range in degrees -->


    mul(edge1, overlap, 0.5);
    sub(edge2, 360, edge1);
    add(edge3, 360, edge1);
    sub(edge4, 720, edge1);

    mod(pan, view.hlookat, 720);
    if(pan LT 0, add(pan,pan,1440);mod(pan,pan,720); );

    if(pan GT edge2,
    if(pan LT edge3,
    sub(blend,pan,edge2);
    div(blend,blend,overlap);
    ,
    set(blend,1);
    );
    if(pan GT edge4,
    sub(blend,pan,edge4);
    div(blend,blend,overlap);
    sub(blend,1,blend);
    );
    ,
    if(pan LT edge1,
    add(blend,pan,edge1);
    div(blend,blend,overlap);
    sub(blend,1,blend);
    ,
    set(blend,0);
    );
    );

    sub(blend2, 1.0, blend);
    setcubealpha(sommer, get(blend));
    setcubealpha(winter, get(blend2));
    </action>


    <events onviewchange="blendcubes720();" />

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!