trouble with intro image

  • Hi, I need your help
    I'm using image intro 100% of the screen. I want this image to be displayed for a few seconds before displaying the pano. But first shown briefly, the pano, then the intro image and again the scene. as I can avoid that instant that initially displays the scene?

    <events name="panoevents"
    onxmlcomplete="delayedcall(introimage, 4.0, if(layer[introimage], hideintroimage() ); ); set(events[panoevents].onloadcomplete,null);
    "
    onremovepano="stopdelayedcall(introimage);" keep="true"
    />

    <layer name="introimage"
    zorder="20"
    url="intro3.jpg"
    devices="all"
    align="center" width="112%" height="prop"
    keep="true"
    visible="true"
    onclick="hideintroimage();"
    onloaded="set(alpha,0); tween(alpha,1.0);"

    />

    <action name="hideintroimage">
    tween(layer[introimage].);
    tween(layer[introimage].scale.normal,1);
    tween(layer[introimage].scale.mobile,0.3);
    tween(layer[introimage].alpha,0,1);
    set(layer[introimage].enabled, false);
    /> keep="true"
    </action>

    http://www.ciudadcubica.com/pdb/

    Edited once, last by ramirox3 (June 22, 2016 at 2:41 PM).

  • Hi,

    right, there seems to be problem with preload in the html5 version... I will check this.

    But you could also just load the image and then in the onloaded event of the introimage call the loading of the first pano scene. That means remove the default 'startup' action.

    Best regards,
    Klaus

  • Take that whole part of your tour.xml:

    and fully replace it with that:

Participate now!

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