I have edited a virtual tour to include the slide-blend-cubes slider, my problem is when Include this option any polygon hotspots appear then once the pano loads they disappear. When moving the slider the polygon fades in slightly, so it is there??
Any ideas anyone? I have tried adding zorder but nothing seems to work.
Code
<scene name="scene_1" title="1" onstart="updateradar();start();" lat="" lng="" heading="">
<action name="updateradar">
set(layer[activespot].parent, mapspot1);
set(layer[radar].parent, mapspot1);
set(layer[radar].heading, -90);
</action>
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<include url="xml_plugins/compass/compass.xml" />
<hotspot name="temp_spot" visible="true" url="skin/x.png" scale="0.5" ath="0" atv="0" ondown="draghotspot();" zorder="1"></hotspot>
<hotspot name="hs1" visible="true" zorder="11" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="2.0" bordercolor="0xff0000" borderalpha="1.0" >
<point ath="0" atv="0"/>
<point ath="-49.919787" atv="-5.83232"/>
<point ath="-49.919787" atv="-5.83232"/>
</hotspot>
<image>
<cube url="panos/1.tiles/pano_colour_%s.jpg" />
</image>
<action name="addface">
addhotspot(%1);
set(hotspot[%1].url, %2);
set(hotspot[%1].ath, %3);
set(hotspot[%1].atv, %4);
set(hotspot[%1].zorder, 0);
set(hotspot[%1].width, 1000);
set(hotspot[%1].height, 1000);
if(device.html5, if(device.desktop,
<!-- desktop html5 browsers need overlapping cube faces -->
set(hotspot[%1].width, 1002);
set(hotspot[%1].height, 1002);
));
set(hotspot[%1].distorted, true);
set(hotspot[%1].enabled, false);
if(isflash, set(hotspot[%1].visible, false));
set(hotspot[%1].alpha, 0.0);
set(hotspot[%1].details, 16);
</action>
<action name="addcube">
addface(face_%1_F, 'panos/1.tiles/%1_f.jpg', 0, 0);
addface(face_%1_L, 'panos/1.tiles/%1_l.jpg', -90, 0);
addface(face_%1_R, 'panos/1.tiles/%1_r.jpg', +90, 0);
addface(face_%1_B, 'panos/1.tiles/%1_b.jpg', +180, 0);
addface(face_%1_Z, 'panos/1.tiles/%1_u.jpg', 0, -90);
addface(face_%1_N, 'panos/1.tiles/%1_d.jpg', 0, +90);
</action>
<action name="setalpha" devices="flash">
set(%1.alpha, %2);
if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true));
</action>
<action name="setalpha" devices="html5">
<!-- safari has some framerate stops/problems when toggling the visibility - so keep here the spots always visible -->
set(%1.alpha, %2);
</action>
<action name="setcubealpha">
setalpha(hotspot[face_%1_F], %2);
setalpha(hotspot[face_%1_L], %2);
setalpha(hotspot[face_%1_R], %2);
setalpha(hotspot[face_%1_B], %2);
setalpha(hotspot[face_%1_Z], %2);
setalpha(hotspot[face_%1_N], %2);
</action>
<action name="start">
addcube(pano_mono);
addcube(pano_colour);
setblend(0);
</action>
<action name="setblend" devices="flash">
sub(blend2, 1.0, %1);
setcubealpha(pano_mono, get(blend2));
setcubealpha(pano_colour, %1);
</action>
<action name="setblend" devices="html5">
set(blend1, %1);
sub(blend2, 1.0, %1);
copy(hotspot[face_pano_mono_F].alpha, blend1);
copy(hotspot[face_pano_mono_L].alpha, blend1);
copy(hotspot[face_pano_mono_R].alpha, blend1);
copy(hotspot[face_pano_mono_B].alpha, blend1);
copy(hotspot[face_pano_mono_Z].alpha, blend1);
copy(hotspot[face_pano_mono_N].alpha, blend1);
copy(hotspot[face_pano_colour_F].alpha, blend2);
copy(hotspot[face_pano_colour_L].alpha, blend2);
copy(hotspot[face_pano_colour_R].alpha, blend2);
copy(hotspot[face_pano_colour_B].alpha, blend2);
copy(hotspot[face_pano_colour_Z].alpha, blend2);
copy(hotspot[face_pano_colour_N].alpha, blend2);
</action>
<action name="show_add_item">
if(layer[target_spot].visible == false,
set(layer[target_spot].visible, true);
,
set(layer[target_spot].visible, %1);
);
</action>
</scene>
Alles anzeigen