What I tried now is the following code with load scene in the WebVR example:
|
Quellcode
|
1
|
<!-- 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>
|
|
Quellcode
|
1
|
<!-- 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
|
Quellcode
|
1
|
<!-- 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.