Bild im ersten Pano als Hotspot . .

  • Hi!

    Ich möchte gern im ersten Pano ein Bild haben (Logo), das beim Draufklicken das Pano mit einem Zoom startet und von einem sehr engen Blickwinkel (6°) ein schnelles Zuzrückzoomen auf 90° startet.
    Ich hab das mit der Autorotation gemacht - aber das Zurückfahren ist dann zu langsam.

    Für eine kleine Anleitung wäre ich sehr dankbar . . . *squint* Ich arbeite mit PanoTourPro - editiere auch viel im XML, aber diese Funktion im *ersten* Pano hab ich noch nicht gefunden.

    herzliche Grüße, Klaus

    Hier mal zum Anschauen worum es geht: http://www.360impressions.de/KB2 Das Zurückzoomen ist zu langsam, weil es die Autorotation benutzt.
    ich wuerde gern ein einstellbares zoom-out mit dem Klicken auf den Splash-Screen triggern und erst dann sollte die Autorotation starten.

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

    Edited 2 times, last by klausesser (May 23, 2012 at 3:05 PM).

  • Hi,

    am besten einfach per lookto Action...

    ich nehme einmal das mit 'Splash-Screen' das 'introimage' <plugin> Bild in der XML gemeint ist,

    d.h. dort im onclick den lookto Aufruf hinzufügen und damit das Bild nicht von selber verschwindet den onloaded="autohideintroimage();" Aufruf entfernen,

    z.B.
    <plugin name="introimage" url="KB2data/graphics/introImage.png" align="center" onclick="hideintroimage();lookto(0,0,90,smooth(10,10,30));" onloaded="autohideintroimage();"/>

    die Geschwindigkeit kann mit den Parameter in der smooth() Funktion gesteuert werden,
    1. Wert = Beschleunigung in Grad/Sekunden²
    2. Wert = Brems-Beschleunigung in Grad/Sekunden²
    3. Wert = Maximale Geschwindigkeit in Grad/Sekunden

    siehe hier:
    https://krpano.com/docu/actions/#lookto

    Schöne Grüße,
    Klaus

  • Vielen Dank, Klaus!!

    Ich ahnte, dass ich mich auf Dich verlassen kann . . *thumbsup* - das werd ich jetzt mal versuchen.

    ich hatte das noch nie versucht - im Start-Pano eine Funktion im selben Pano zu triggern. Dachte, das ginge nur von einem Pano ins Nächste . . *squint*

    herzliche Grüße, Klaus

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

  • Hii Klaus!

    Ich meinte eigentlich, dass das Pano started, wenn man auf den SplashScreen klickt und dann ein linearer Zoom von 6° auf 90° stattfindet - ohne Schwenk!
    Danach soll dann die Autorotaion beginnen.

    ich nehme an, es gibt einen "zoom out" Befehl der aktiviert wird, wenn man auf den SplashScreen klickt - finde ihn aber nicht

    herzlichen Gruß, Klaus

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

  • Hi KLaus!

    Hier die beiden xml:ich weiss nicht, WO ich da WAS einfügen muss - werde aus der Dokumentation und Deiner Empfehlung nicht richtig schlau . . *squint* , sorry.

    KB2.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- for xml compliance -->
    <!-- Generated By Kolor Panotour 1.8.0 -->
    <krpano version="1.0.8.14" logkey="false">
    <action name="mainloadpano">
    closepanoobjects();
    ifnot(stopSequence === undefined,interruptAnimation(););
    loadpano(%1,NULL,NULL,BLEND(1));
    </action>
    <!--************** KrPano Pluginsund Daten ****************************************************-->
    <plugin name="data" firstPanoHasBeenPlayed="false" introImageHasBeenPlayed="false" keep="true"/>
    <!--************** Das erste Pano öffnen ******************************************************-->
    <include url="KB20.xml"/>
    <autorotate enabled="false"/>
    <!--************** Schriftarten ***************************************************************-->
    <textstyle name="DEFAULT" background="false" bold="false" border="false" effect="dropshadow(0,45,0x000000,4,2);" font="Arial Narrow" fontsize="16" italic="false" textcolor="0xffffffff"/>
    <!--************** Einführung *****************************************************************-->
    <action name="firstloadcompleteaction">
    if(plugin[data].firstPanoHasBeenPlayed==false,
    set(plugin[data].firstPanoHasBeenPlayed,true);
    set(autorotate.enabled,true);
    );
    </action>
    <plugin name="introimage" url="KB2data/graphics/introImage.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();lookto(183.97,0,6,smooth(2,2,10));"/>
    <action name="hideintroimage">
    if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
    </action>
    <action name="autohideintroimage">
    if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
    set(plugin[data].introImageHasBeenPlayed,true););
    </action>
    <!--************** Menü ***********************************************************************-->
    <plugin name="in" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="KB2data/graphics/menu/menu0.png" width="40" x="-160" y="10"/>
    <plugin name="out" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="KB2data/graphics/menu/menu1.png" width="40" x="-120" y="10"/>
    <plugin name="left" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="KB2data/graphics/menu/menu2.png" width="40" x="-80" y="10"/>
    <plugin name="right" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="KB2data/graphics/menu/menu3.png" width="40" x="-40" y="10"/>
    <plugin name="up" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="KB2data/graphics/menu/menu4.png" width="40" x="0" y="10"/>
    <plugin name="down" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="KB2data/graphics/menu/menu5.png" width="40" x="40" y="10"/>
    <plugin name="home" align="bottom" crop="0|0|65|65" height="prop" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="" onover="" onovercrop="0|65|65|65" url="KB2data/graphics/menu/menu6.png" width="40" x="80" y="10"/>
    <plugin name="openfs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,true);" onout="" onover="" onovercrop="0|65|65|65" url="KB2data/graphics/menu/menu7.png" width="40" x="120" y="10"/>
    <plugin name="closefs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,false);" onout="" onover="" onovercrop="0|65|65|65" url="KB2data/graphics/menu/menu8.png" visible="false" width="40" x="120" y="10"/>
    <plugin name="autorotationON" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationON].visible,false); set(plugin[autorotationOFF].visible,true);" onout="" onover="" onovercrop="0|65|65|65" url="KB2data/graphics/menu/menu9.png" visible="" width="40" x="160" y="10"/>
    <plugin name="autorotationOFF" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);" onovercrop="0|65|65|65" url="KB2data/graphics/menu/menu10.png" visible="" width="40" x="160" y="10"/>
    <events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
    <!--************** Pano-Liste *****************************************************************-->
    <plugin name="combobox" url="KB2data/graphics/combobox.swf" preload="true" alturl="KB2data/graphics/combobox.js" keep="true" align="righttop" x="10" y="10" rowcount="10">
    <item name="combobox0" caption="Schadowstrasse" onClick="mainloadpano(KB20.xml);"/>
    <item name="combobox1" caption="Berliner Alleee 1" onClick="mainloadpano(KB21.xml);"/>
    <item name="combobox2" caption="Hofgarten" onClick="mainloadpano(KB22.xml);"/>
    <item name="combobox3" caption="Kaufhof" onClick="mainloadpano(KB23.xml);"/>
    <item name="combobox4" caption="Oper" onClick="mainloadpano(KB24.xml);"/>
    <item name="combobox5" caption="Schadowplatz" onClick="mainloadpano(KB25.xml);"/>
    <item name="combobox6" caption="Tausendfuessler" onClick="mainloadpano(KB26.xml);"/>
    <item name="combobox7" caption="Koenigsallee" onClick="mainloadpano(KB27.xml);"/>
    </plugin>
    <!--************** Sequenz-Animation **********************************************************-->
    <action name="animate">
    if (stopSequence == false,
    inc(hotspot[%1].frame,1,get(hotspot[%1].lastframe),0);
    mul(hotspot[%1].ypos,hotspot[%1].frame,hotspot[%1].frameheight);
    txtadd(hotspot[%1].crop,'0|',get(hotspot[%1].ypos),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));
    delayedcall(%2, animate(%1,%2) );
    );
    </action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
    ifnot (stopSequence === undefined,
    set(stopSequence, true);
    wait(0.1);
    );
    </action>
    </krpano>

    _______________________________________

    und KB20.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- for xml compliance -->
    <krpano version="1.0.8.14">
    <!-- Während des Ladens auszuführende Aktionen -->
    <events onxmlcomplete="onxmlcompleteaction();"/>
    <action name="onxmlcompleteaction">
    plugin[combobox].selectiditem(combobox0);
    if(autorotate.enabled==false,set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);,set(plugin[autorotationOFF].visible,true); set(plugin[autorotationON].visible,false););
    firstloadcompleteaction();
    </action>
    <action name="playpanosounds">
    playbackgroundsound(none);
    </action>
    <action name="stoppanosounds">
    stopbackgroundsound();
    </action>
    <action name="closepanoobjects">
    </action>
    <!--************** Panorama *******************************************************************-->
    <!-- @File="KB20.xml" @PanoName="SchadStr!" @FilePath="/Volumes/Speedy/KBogenTourNeu/SchadStr!.psb" -->
    <panoview h="-183.97" v="0" fov="5"/>
    <!-- Parameter anzeigen -->
    <view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90" maxpixelzoom="1.0" fovmax="90" fov="5" hlookat="-183.97" vlookat="6"/>
    <progress showload="none" showwait="none"/>
    <autorotate horizon="0" tofov="90" waittime="2" speed="6"/>
    <!-- Bildvorschau -->
    <preview url="KB2data/KB20/preview.jpg" type="CUBESTRIP" striporder="FRBLUD" details="16"/>
    <!-- Pano selbst -->
    <image type="CUBE" multires="true" tilesize="848" baseindex="0">
    <level tiledimagewidth="27136" tiledimageheight="27136">
    <left url="KB2data/KB20/3/5/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/5/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/5/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/5/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/5/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/5/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="13568" tiledimageheight="13568">
    <left url="KB2data/KB20/3/4/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/4/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/4/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/4/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/4/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/4/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="6784" tiledimageheight="6784">
    <left url="KB2data/KB20/3/3/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/3/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/3/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/3/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/3/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/3/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="3392" tiledimageheight="3392">
    <left url="KB2data/KB20/3/2/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/2/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/2/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/2/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/2/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/2/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="1696" tiledimageheight="1696">
    <left url="KB2data/KB20/3/1/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/1/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/1/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/1/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/1/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/1/%v_%u.jpg"/>
    </level>
    <level tiledimagewidth="848" tiledimageheight="848">
    <left url="KB2data/KB20/3/0/%v_%u.jpg"/>
    <front url="KB2data/KB20/0/0/%v_%u.jpg"/>
    <right url="KB2data/KB20/1/0/%v_%u.jpg"/>
    <back url="KB2data/KB20/2/0/%v_%u.jpg"/>
    <up url="KB2data/KB20/4/0/%v_%u.jpg"/>
    <down url="KB2data/KB20/5/0/%v_%u.jpg"/>
    </level>
    <!-- mobile phone / iphone images -->
    <mobile>
    <left url="KB2data/KB20/3/mobile_face.jpg"/>
    <front url="KB2data/KB20/0/mobile_face.jpg"/>
    <right url="KB2data/KB20/1/mobile_face.jpg"/>
    <back url="KB2data/KB20/2/mobile_face.jpg"/>
    <up url="KB2data/KB20/4/mobile_face.jpg"/>
    <down url="KB2data/KB20/5/mobile_face.jpg"/>
    </mobile>
    <!-- tablet pc / ipad images -->
    <tablet>
    <left url="KB2data/KB20/3/tablet_face.jpg"/>
    <front url="KB2data/KB20/0/tablet_face.jpg"/>
    <right url="KB2data/KB20/1/tablet_face.jpg"/>
    <back url="KB2data/KB20/2/tablet_face.jpg"/>
    <up url="KB2data/KB20/4/tablet_face.jpg"/>
    <down url="KB2data/KB20/5/tablet_face.jpg"/>
    </tablet>
    </image>
    <!--************** Hotspots und Lensflares ****************************************************-->
    <hotspot name="spot0" hview="-86.69" vview="0" fovview="70" hcenter="168.465" vcenter="-0.404908" onclick="looktohotspot(get(name),get(view.fovmin),smooth(200,10,50));mainloadpano(KB21.xml);lookat(get(panoview.h),get(panoview.v),get(panoview.fov));" url="KB2data/graphics/spots/spot0.png" crop="0|0|64|64" frame="0" lastframe="19" frameheight="64" framewidth="64" onloaded="set(stopSequence,false);animate(spot0,0.1);" onh

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

    Edited once, last by klausesser (May 23, 2012 at 7:28 PM).

  • Hey Klaus!

    ich glaube, ich muss die "zoomto" und nicht die "lookto" action nehmen, richtig? Aber da lässt sich die Geschwindigkeit nicht verstellen - es ist viel zu schnell, egal was ich bei smooth(...) reinschreibe.

    Wie krieg ich jetzt noch hin, dass das Zoomen erst nach dem Klick auf den SplashScreen started? *cool*

    Gruß, Klaus

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

    Edited once, last by klausesser (May 23, 2012 at 8:00 PM).

  • Hi,

    ich glaube, ich muss die "zoomto" und nicht die "lookto" action nehmen, richtig?

    es ist natürlich auch möglich zoomto zu verwenden, damit bleibt die aktuelle Blickrichtung erhalten, bei lookto(0,0, ...) ändert sich diese zusätzlich zu den angegeben Werten...


    Aber da lässt sich die Geschwindigkeit nicht verstellen - es ist viel zu schnell, egal was ich bei smooth(...) reinschreibe.

    dann wurde irgendetwas falsch gemacht

    im Prinzip ist lookto und zoomto das gleiche, nur das bei zoomto die automatisch aktuellen view.hlookat, view.vlookat Werte auch Ziel verwendet werden...

    wurde smooth() an der 'richtigen' Stelle verwendet?
    d.h. als 2. Parameter der zoomto() Action?


    Wie krieg ich jetzt noch hin, dass das Zoomen erst nach dem Klick auf den SplashScreen started?

    so wie in meinem Beispiel von oben - siehe den rot-markierten Code im onclick Event,
    in deinem gepostetem XML steht der lookto Code im onloaded Event

    Schöne Grüße,
    Klaus

  • Hi Klaus!

    Inzwische hab ich es begriffen *thumbup* - ich hatte den Text an der falschen Stelle eingefügt. Hab ihn jetzt dahin gesetzt, wo er funktioniert. Speed geht auch.
    Start beim Klicken auf den Splashscreen ebenfalls: http://www.360impressions.de/KB2/ (Wir arbeiten noch dran, das ist eine Entwurfsversion).
    Also - DANK nochmal! *smile*

    herzlichen Gruß, Klaus

    herzlichen Gruß, Klaus

    --
    “Simplicity is the keynote of all true elegance.”
    ― Coco Chanel

Participate now!

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