Fade one pano into another after a certain amount of time

  • Hi Ricepixels,

    There are a few ways you could do it, try using a delayed call https://krpano.com/docu/actions/#delayedcall

    e.g. onstart="delayedcall(5, loadpano(%SWFPATH%/NAME-OF-YOUR-PANO.xml,null,MERGE,BLEND(1)););"

    Paste this at the top of your xml file like

    <krpano version="1.0.8" onstart="delayedcall(5, loadpano(%SWFPATH%/NAME-OF-YOUR-PANO.xml,null,MERGE,BLEND(1)););" >

    You might want to do other things though like pan to somewhere in your panorama, in which case it would be best to use an action, like

    <krpano version="1.0.8" onstart="action(move-1);">

    <action name="move-1">
    set(autorotate.enabled,true);
    wait(5);
    loadpano(%SWFPATH%/NAME-OF-YOUR-PANO.xml,null,MERGE,BLEND(1);
    action(move-2);
    </action>

    <action name="move-2">
    set(autorotate.enabled,true);
    wait(5);
    loadpano(%SWFPATH%/NAME-OF-YOUR-PANO.xml,null,MERGE,BLEND(1);
    action(move-3);
    </action>

    etc....

    The number 5 after delayed call ans wait function is seconds, till it loads a new pano, so adjust accordingly. You might also want to use KEEPVIEW so yuo have seemless transition to the same point in the loading panorama.

    Hope that helps, I think a better way to do what you want though would be to look at the 'slider-blend-cubes' example, and that will give you a slider so the user can control when they want to see before and after.

    Best wishes,

    tom

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!