Blend one pano image to another after some time *SOLVED*

  • Is it possible to change a <image></image> after some time to another <image></image>?

    I thought this could be done with the delayedcall action.

    E.g. I have a hotspot and want to "transition from one <image> to another <image> with the onclick event of the hotspot.

    Edited 2 times, last by Ibrendie (April 22, 2015 at 10:51 PM).

  • I know tried the following Tween code on a hotspot, but nothing happens:

    Code
    onclick="tween(image.cube.url,'panos/kuchlerhaus/aussen.tiles/pano_%s.jpg');

    I also tried without single quotes.

    Does the image.cube.url variable need a specific id or something? Like image.cube.url[image_id] ?

  • Load a new scene with loadscene or a new panorama with loadpano with blending option ?

    Thanks for your reply benji, but I don't think that's going to work. What I want to achieve is "substitute" one pano image for another one e.g. in the WebVR example substitute the intro pano for another one while maintaining all other aspects of the krpano_xml file.

    I know I can keep hotspots etc with the keep="true" parameter.

    So, actually my question is how can I transition from the intro image to let's say an intro2 image.

  • What I tried now is the following code with load scene in the WebVR example:

    Code
    <!-- the intro pano -->	<view fovtype="VFOV" fov="90" fovmin="40" fovmax="150" />	<preview url="panos/intro/preview.jpg" />	<image>		<cube url="panos/intro/pano_%s.jpg" />		<cube url="panos/intro/mobile_%s.jpg" devices="iOS" />	</image>        <scene name="test123">        <view fovtype="VFOV" fov="90" fovmin="40" fovmax="150" />        <preview url="panos/intro2/preview.jpg" />        <image>            <cube url="panos/intro2/pano_%s.jpg" />            <cube url="panos/intro/mobile_%s.jpg" devices="iOS" />        </image>                    </scene>
    Code
    <!-- start button -->	<hotspot name="start" distorted="true"	         url="texts.png" crop="80|450|690|100"	         ath="0" atv="0"	         depth="4000"	         vr_timeout="2000"	         zorder="99"	         onclick="set(enabled,false); tween(ty|alpha, 8000|0.0, 2.5, easeInQuint, removehotspot(start)); delayedcall(5, loadscene(test123,null,MERGE|KEEPVIEW|KEEPMOVING,BLEND(5));); delayedcall(2.0,start_vr());"	         alpha="0.0"	         onloaded="if(vr_start_done === true, removehotspot(start); start_vr(); , tween(alpha,1); );"	         />


    and also

    Code
    <!-- start button -->	<hotspot name="start" distorted="true"	         url="texts.png" crop="80|450|690|100"	         ath="0" atv="0"	         depth="4000"	         vr_timeout="2000"	         zorder="99"	         onclick="set(enabled,false); tween(ty|alpha, 8000|0.0, 2.5, easeInQuint, removehotspot(start)); delayedcall(5, loadscene(test123,null,KEEPVIEW|KEEPHOTSPOTS|KEEPMOVING,BLEND(5));); delayedcall(2.0,start_vr());"	         alpha="0.0"	         onloaded="if(vr_start_done === true, removehotspot(start); start_vr(); , tween(alpha,1); );"	         />




    In the first code sample the hotspots are all removed, even though I use the recommended MERGE method.

    In the second code sample the hotspots are removed after they are loaded and then again fade in.

    Sorry to say so, but the krpano documentation is really obscure, even though it isn't all that hard. A javadoc style documentation would be better imho.

  • Ah oke, I didn't know that.

    Still even with removing MERGE and e.g. only using KEEPALL|KEEPHOTSPOTS the hotspots are first removing and then re-added to the scene.

    I just don't understand the underlying rational of krpano I guess.

  • Up..

    Anyone know how to achieve something similar to the slider blend example, but without the slider part? Just a blend from one pano to another over some time period?

    Thanks.

Participate now!

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