Show Progress bar only at beginning

  • Hi,
    in a multires pano I often see the progress bar for loading the images. I know I can deactivate this with:

    Quote

    <progress showload="none"
    showwait="none" />

    But the problem is that I also have NO progress bar at beginning. Is it possible, that when I first open the pano, I see the progress bar, but when the player loads the next level of multires tiles I don´t see this bar?

    Regards,
    Maw

  • Hallo Marc,
    hast Du schon probiert, "showload" mit dem "set..."-Befehl umzudefinieren? Zeitpunkt: dazu würde sich das "onloadcomplete"-event der ersten scene anbieten, das feuert bei multires nämlich nicht erst, wenn die ganzen bilddaten des panos geladen sind, sondern...

    - onloadcomplete
    - called when the loading of the pano is finished
    - note for multiresolution panorams this is only called once
    when the first view loading is finished
    Ich weis nicht, ob das geht, aber in der doku steht nicht, dass diese progress-parameter nur initial eingelesen werden...

    Alternativ:
    Ich verwende grundsätzlich eine sehr kleine, unauffällig platzierte showwait-variante, weil ich mich weiter dann nicht mehr darum kümmer möchte:

    Code
    <progress showload="bar(lefttop,8%,6,3,3,solid, 0x000000,0xFFCC00,0xFFCC00)" showwait="none" />


    allerdings sollte dort während Ladeaktivitäten noch ein Miniminikommentar hin (zB.: "loading")

    Grüße,
    Oliver

  • Hallo Oliver,
    ich bin es wieder *wink*

    Ich habe es nun versucht, also die Ladebalken sind zuerst aktiviert und dann mit onloadcomplete wird die Action ausgeführt, die die Ladebalken ausschaltet.
    Leider klappt es bisher nicht. Entweder habe ich einen Fehler drinnen, oder man kann "progress" nicht mit set() ansprechen...

    Quote

    <krpano onloadcomplete="hideprogressbar">

    <progress showload="bar()"
    showwait="loopings()"
    />

    <action name="hideprogressbar">
    set(progress.showwait,none);
    set(progress.showload,none);
    </action>

    Gruß Marc

  • Ich weis nicht, ob das geht, aber in der doku steht nicht, dass diese progress-parameter nur initial eingelesen werden...

    mittlerweile können die <progress> Einstellungen auch dynamisch geändert werden


    Quote

    Leider klappt es bisher nicht. Entweder habe ich einen Fehler drinnen, oder man kann "progress" nicht mit set() ansprechen...

    da ist noch ein kleiner Fehler drin
    das "onloadcomplete" Event wird in <events> definiert,
    so sollte es funktionieren:

    Schöne Grüße,
    Klaus

  • Freut mich für Dich!

    Arbeitest Du schon mit der neuen release, wenn ja, würde mich (vielleicht auch Klaus) interessieren, ob sich bei deinen HiRes Panos auch der Browser aufhängt, wenn man in fullscreen umschaltet (dürfte bei geringeren Auflösungen seltener auftreten) - ich hab dazu von Klaus "ruckzuck" gerade ein bugfix erhalten...

    Grüße,
    Oliver

  • to marc:
    here you find the link to the bugfix, it solved my problems immediately!

    to babel fishing people:
    we first talked about finding a way for switching off the loading bar after an initial show up, eg after loading preview or after a first loading sequence of multires panos. Klaus told us this is possible now with the latest beta...
    then exchanged our first bug experience (new release) - firefox and safari sometimes run into a memory overflow on switching to fullscreen (more often on higher res panos). Here is my thread about it in english.

    btw: I read what babelfish did for you and - surprise - not so bad! Could you understand its translations? - but i hope the english translated by my own "babelbrabelbrain" is better...

Participate now!

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