How to create Pano's with Radar plug, where on different Scene You have different Map?
Code
<scene name="scene1" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dodatkowa.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick="action(closemap);"
/>
<action name="startscene">
showtext('[b][i]scene 1[/i][/b]', infostyle);
plugin[box].selectIdItem(1);
action(activatespot,scene1,190);
</action>
<view hlookat="2.40" vlookat="-21.20" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot1" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"/>
</scene>
<scene name="scene2" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dzieci_blank.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick=""/>
<action name="startscene">
showtext('[b][i]scene 2[/i][/b]', infostyle);
plugin[box].selectIdItem(2);
action(activatespot,scene2,190);
</action>
<view hlookat="52.40" vlookat="-1.20" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot2" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"/>
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
</scene>
<scene name="scene3" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dodatkowa_light.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick="action(closemap);"/>
<action name="startscene">
plugin[box].selectIdItem(3);
action(activatespot,scene3,190);
</action>
<view hlookat="0" vlookat="0" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot3" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"/>
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
</scene>
Display More
As You can see, there are different maps on each Scene. When I go between scenes, map changes, but hot spots, got out of the map.
Below full source:
Code
<krpano version="1.0.8" onstart="action(start);">
<view hlookat="12.40" vlookat="-21.20" fisheye="0.35" fov="179" />
<!-- Miejsce na def text -->
<textstyle name="infostyle" origin="top" edge="top"
yoffset="20" textalign="center"
background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false"
effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="1.0" fadetime="1.0"
/>
<!-- Eof text. def -->
<plugin name="box" url="plugins/combobox.swf" preload="true"
keep="true"
align="left" x="10" y="10" width="100"
blendmode="layer"
/>
<action name="start">
plugin[box].addIdItem(1, 'Scene 1', loadscene(scene1, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(2, 'Scene 2', loadscene(scene2, null, MERGE, BLEND(1)); );
plugin[box].addIdItem(3, 'Scene 3', loadscene(scene3, null, MERGE, BLEND(1)); );
<!-- load 1. scene on start -->
loadscene(scene3, null, MERGE);
</action>
<scene name="scene1" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dodatkowa.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick=""
/>
<action name="startscene">
showtext('[b][i]scene 1[/i][/b]', infostyle);
plugin[box].selectIdItem(1);
action(activatespot,scene1,190);
</action>
<view hlookat="2.40" vlookat="-21.20" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot1" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"
/>
</scene>
<scene name="scene2" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dzieci_blank.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick=""
/>
<action name="startscene">
showtext('[b][i]scene 2[/i][/b]', infostyle);
plugin[box].selectIdItem(2);
action(activatespot,scene2,190);
</action>
<view hlookat="52.40" vlookat="-1.20" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot2" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"
/>
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
</scene>
<scene name="scene3" onstart="action(startscene);">
<plugin name="map" url="plugins/img/mapka_dodatkowa_light.jpg" keep="false"
align="topleft" x="16" y="16" alpha="0.85" handcursor="false"
scalechildren="true"
width="320"
height="227"
onclick=""
/>
<action name="startscene">
showtext('[b][i]scene 3[/i][/b]', infostyle);
plugin[box].selectIdItem(3);
action(activatespot,scene3,190);
</action>
<view hlookat="0" vlookat="0" fisheye="0.35" fov="179" />
<preview type="grid(cube,32,32,256,0x223344,0x000011,0xFFFFFF);" details="8" />
<hotspot name="spot3" url="plugins/img/kropek_in.png" ath="-20" atv="-20" scale="0.6" zoom="true"
alpha="0.8"
onover="tween(alpha,1);tween(scale,1);"
onout="tween(alpha,0.8);tween(scale,0.6);"
onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"
/>
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
</scene>
<!-- global -->
<!-- BOF MAPA -->
<plugin name="scene1" url="plugins/img/kropek_out.png" keep="true" parent="map" align="lefttop" edge="center" x="50" y="30" zorder="4" onhover="showtext(Scena 1);" onclick="loadscene(scene1, null, MERGE, BLEND(1));" />
<plugin name="scene2" url="plugins/img/kropek_out.png" keep="true" parent="map" align="lefttop" edge="center" x="193" y="60" zorder="4" onhover="showtext(Scena 2);" onclick="loadscene(scene2, null, MERGE, BLEND(1));" />
<plugin name="scene3" url="plugins/img/kropek_out.png" keep="true" parent="map" align="lefttop" edge="center" x="153" y="195" zorder="4" onhover="showtext(Scena 3);" onclick="loadscene(scene3, null, MERGE, BLEND(1));" />
<plugin name="activespot" url="plugins/img/kropek_out.png" keep="true" align="center" edge="center" visible="false" zorder="3" />
<!-- radar plugin, set heading with "plugin[radar].heading" -->
<!-- update mask for radar -->
<action name="updatemask">
set(plugin[radar].mask, mapmask);
</action>
<plugin name="radar"
url="plugins/radar.swf"
zorder="1"
keep="true"
heading="0"
parent="map"
align="lefttop"
edge="center"
x="0" y="0"
linecolor="0"
fillcolor="0xFF0000"
scale="2.5"
visible="false"
/>
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
<!-- EOF MAPA -->
</krpano>
Display More