• dear krpano user

    im trying to make an krpano autotour. the code below works good, except one thing.
    the tween in step 2 dose not start easeInOutSine- like. it starts sudden.
    can anyone help there


    <scene name="scene_p03" title="p03" onstart="set(step,1);
    if (step == 1, tween(view.fov, 66,13,easeInOutsine);tween(view.hlookat, 28,13,easeInOutSine,wait);inc(step););
    if (step == 2, tween(view.fov,120,21,easeInOutSine);tween(view.hlookat,-90,31,eeaseInOutSine,wait);inc(step););
    if (step == 3, loadscene('scene_p04',null,MERGE,BLEND(3));inc(step););"

    ..........................</scene>

  • the problem keeps same

    step 2 starts to fast not slow in

    slow out is working ok!

    <scene name="scene_p03" title="p03" onstart="set(step,1);
    if (step == 1, tween(view.fov, 66,13,easeInOutsine);tween(view.hlookat, 28,13,easeInOutSine,wait);inc(step););
    if (step == 2, tween(view.fov,120,21,easeInOutSine);tween(view.hlookat,-90,31,easeInOutSine,wait);inc(step););
    if (step == 3, loadscene('scene_p04',null,MERGE,BLEND(3));inc(step););"

    ..........................</scene>

  • the autotour projekt inclode 8 scenes.
    with the onstart action a view camera movements each scene shoud be done.

    if im using only one tween step..
    forex:
    onstart="set(step,1);
    if (step == 1, tween(view.fov, 66,13,easeInOutsine);tween(view.hlookat, 28,13,easeInOutSine,wait);inc(step););
    if (step == 2, loadscene('scene_p04',null,MERGE,BLEND(3));inc(step););"
    zooming and paning is starting slow and ends slow.

    by the use of a second tween step , or a wait() step the easeInOutsine does not work ok.

    <scene name="scene_p03" title="p03" onstart="wait(5);set(step,1);
    if (step == 1, tween(view.fov, 66,13,easeInOutsine);tween(view.hlookat, 28,13,easeInOutSine,wait);inc(step););
    if (step == 2, tween(view.fov,120,21,easeInOutSine);tween(view.hlookat,-90,31,easeInOutSine,wait);inc(step););
    if (step == 3, loadscene('scene_p04',null,MERGE,BLEND(3));inc(step););"

    ..........................</scene>

    lgk

Participate now!

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