I took the old xml (krpano version 1.16) and try to make it work with krpano version 1.19-pr8. All works, except that the variable (viewdir), which I use to determine the view direction is not taken from the hotspot.
What could be the problem ?
Code
<style name="skin_hotspotstyle" url="img/hotspot.png" scale="0.3" edge="center" oy="0"
distorted="true"
onclick="if(linkedscene, tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); lookto(get(ath),0);
loadscene(get(linkedscene),null, MERGE ,ZOOMBLEND(1,2)););
lookat(get(viewdir),0);"
onhover="tween(scale,0.35,0.1);"
onout="tween(scale,0.3,0.1)"
/>
Code
<scene name="scene_01" title="01" onstart="activatespot(point01,79.48)" thumburl="panos/01.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="panos/01.tiles/preview.jpg" />
<image>
<cube url="panos/01.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/01.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" viewdir="189" ath="-140.654" atv="38.671" linkedscene="scene_02" />
<hotspot name="spot2" style="skin_hotspotstyle" viewdir="180" ath="-25.030" atv="40.703" linkedscene="scene_13" />
</scene>
Display More