Blending Cubes / XML Slider Example "Tuning"

  • Hello Forum,

    I`d like to have a Panorama with 3 Pictures and the cube blending must be automatic without the slider.
    The part with implementing 3 Pictures I just did with help of Klaus.
    Here is the Code:


    But how can I implement the automatic cube blending? It must be iPhone compatible...

  • for example so:

    Code
    <krpano version="1.0.8.14" onstart="set(newx,0);delayedcall(1,blend(););">
    ....
    <action name="blend">
    if(newx LT 1,
      wait(0.05);
      inc(newx, 0.02);
      setblend(get(newx));
      blend();
    );
    </action>

    Greetz

    Mil

    Edited once, last by milemann (July 28, 2012 at 2:04 AM).

  • Thank you very much milemann. :)

    This is very good, the only thing is it does'nt work simultaneous with the autorotation.
    And it should be a infinity loop so that when the action has finished it has to start again.

    Is this possible?
    thx

  • hi!

    the blending speed you could change adjusting wait time/inc-dec value.

    greetz

    mil

  • Ok thanks, there is only one problem...
    I can not control the panorama and the rest of my plugins with the mouse anymore. *cry*

    When I only use the blend action without blend_back I can use the mouse after the action is finished...

  • so, than change "wait" with "delayedcall":

    greetz

    mil

Participate now!

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