Hello everybody! Here is my code:
Code
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
</action>
<action name="transition">
<!-- move the hotspot to the destination position -->
tween(hotspot[%1].alpha, 0.0, 0.25, default); tween(hotspot[%1].rotate, %4, 0.25, default); tween(hotspot[%1].ath, %2, 0.25, default); tween(hotspot[%1].atv, %3, 0.25, default, WAIT);
<!-- look at the hotspot position -->
looktohotspot(%1); set(plugin[loading].visible,true);
<!-- load and blend to the new scene -->
loadscene(%5, null, MERGE, BLEND(2));
<!-- save the startup view position of the scene -->
copy(startview_hlookat, view.hlookat); copy(startview_vlookat, view.vlookat); copy(startview_fov, view.fov);
<!-- look at the given position and wait for blending -->
lookat(%6, %7, %8); wait(LOAD); set(plugin[loading].visible,false); wait(BLEND);
<!-- return to startup position -->
oninterrupt(break); lookto(get(startview_hlookat), get(startview_vlookat), get(startview_fov), smooth(60,-60,180));
</action>
<!-- %1 = name of plugin where is the circular picture to show -->
<action name="hs_over">
tween(scale, 1.5, 0.2); tween(hotspot[%1].scale, 0.68, 0.2); tween(hotspot[%1].oy, -11, 0.2);
</action>
<action name="hs_out">
tween(scale, 1.0, 0.2); tween(hotspot[%1].scale, 0.45, 0.2); tween(hotspot[%1].oy, -8, 0.2);
</action>
<!--autorotate enabled="true" speed="3"/-->
<scene name="scene_scene_1" title="scene_1" onstart="" havevrimage="true" thumburl="scene_1_tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto"/>
<preview url="scene_1_tiles/preview.jpg"/>
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="2304" tiledimageheight="2304">
<cube url="scene_1_tiles/%s/l2/%v/l2_%s_%v_%h.jpg"/>
</level>
<level tiledimagewidth="1152" tiledimageheight="1152">
<cube url="scene_1_tiles/%s/l1/%v/l1_%s_%v_%h.jpg"/>
</level>
<mobile>
<cube url="scene_1_tiles/mobile/mobile_%s.jpg"/>
</mobile>
</image>
<image if="webvr.isenabled" >
<cube url="scene_1_tiles/vr/pano_%s.jpg"/>
</image>
<hotspot name="hs0_back" onclick="looktohotspot(hs0_back); loadscene(scene_scene_2, null, MERGE, BLEND(1));" onout="hs_out(hs0);" onover="hs_over(hs0);" atv="1.46" ath="-1.6" url="/web/images/krpano/rounded-back.png" zorder="1" height="87" width="72"/>
<hotspot url="rounded/120x120/scene_2.png" name="hs0" atv="1.46" ath="-1.6" enabled="false" zorder="2" oy="-8" scale="0.45"/>
</scene>
Alles anzeigen
I use first hotspot as a background for the second one.
When I try it from my PC everything works perfect. Only from my mobile device onover of hotspot doesn't work. It starts to work when I tap on VR SetUp and Save. Any idea what could be the reason?