Hello,
I am building a website and using an object model make with the krpano droplet. I need to have polygon hotspots on the object that change depending on which frame is visible. I know that I will likely need to define the polygon hotspots for each frame, but I cant figure out how to recognize the current frame in order to load up new hotspots. How can I identify the frame to change the hotspots? Or does anyone know of another solution?
Thank you in advance.
I have included my current code below.
Code
<krpano version="1.16"> <plugin name="editor" url="plugins/editor.swf" keep="true" /> <include url="skin/objectskin.xml" />
<image type="CYLINDER" hfov="1.00" vfov="0.750000" voffset="0.00" multires="true" tilesize="512" progressive="true" frames="20" frame="11"> <level tiledimagewidth="1024" tiledimageheight="768"> <cylinder url="MyTile1.tiles//l3/%v_%h.jpg" /> </level> <level tiledimagewidth="512" tiledimageheight="384"> <cylinder url="MyTile1.tiles//l2/%v_%h.jpg" /> </level> <level tiledimagewidth="256" tiledimageheight="192" aspreview="true"> <cylinder url="MyTile1.tiles//l1/%v_%h.jpg" /> </level> </image>
</krpano>
With hot spots like this
Code
<hotspot name="hs1" onclick="js(loadtileinterface('hs1'));"> <point ath="0.011189" atv="0.117508" /> <point ath="0.11853" atv="0.105246" /> <point ath="0.158381" atv="0.055178" /> <point ath="0.11853" atv="0.0" /> <point ath="0.014254" atv="-0.01124" /> <point ath="0.072549" atv="0.05717" /> </hotspot>
<hotspot name="hs2" onclick="js(loadtileinterface('hs1'));"> <point ath="0.139937" atv="0.103203" /> <point ath="0.207376" atv="0.088897" /> <point ath="0.224747" atv="0.059265" /> <point ath="0.208449" atv="0.014305" /> <point ath="0.144024" atv="0.002044" /> <point ath="0.177795" atv="0.054156" /> </hotspot>