1. I was using the skin/ buttons example as a template for adding a custom set of buttons via the "plugin" along with usage of "button" and "crop".
a. Using a plugin to display an image of a bar behind the buttons will conceal some of the buttons and the mouse events. If I disable the bar image then all of the buttons are displayed and work well.
b. I tried using the attribute "zorder=2" for the button plugins, but krpano throws a syntax error.
c. The buttons concealed seems arbitrary.
Example ( with the plugin instance "rodape" keep=false so that the buttons do not disappear. plugin splash is kept )
http://stoneyphoto.com/shots360/coral/
<!-- some default buttons (zooming, direction, hotspots on/off, fullscreen) -->
87 <plugin name="in" keep="true" align="bottom" x="-280" y="10" style="button" crop="145|113|35|35" onovercrop="142|38|35|30" ondowncrop="142|38|35|35"
88 ondown="set(fov_moveforce,-1);" onup="set(fov_moveforce,0);" />
89 <plugin name="out" keep="true" align="bottom" x="-240" y="10" style="button" crop="178|113|35|35" onovercrop="178|38|35|35" ondowncrop="178|38|35|35"
90 ondown="set(fov_moveforce,+1);" onup="set(fov_moveforce,0);" />
91 <plugin name="left" keep="true" align="bottom" x="-200" y="10" style="button" crop= "0|113|35|35" onovercrop= "0|38|35|35" ondowncrop= "0|38|35|35"
92 ondown="set(hlookat_moveforce,-1);" onup="set(hlookat_moveforce,0);" />
93 <plugin name="right" keep="true" align="bottom" x="-160" y="10" style="button" crop= "39|113|35|35" onovercrop= "39|38|35|35" ondowncrop= "39|38|35|35"
94 ondown="set(hlookat_moveforce,+1)" onup="set(hlookat_moveforce,0);" />
95 <plugin name="up" keep="true" align="bottom" x="-120" y="10" style="button" crop= "74|113|35|35" onovercrop= "74|38|35|35" ondowncrop= "74|38|35|35"
96 ondown="set(vlookat_moveforce,-1)" onup="set(vlookat_moveforce,0);" />
97 <plugin name="down" keep="true" align="bottom" x="-80" y="10" style="button" crop="109|113|35|35" onovercrop="109|38|35|35" ondowncrop="109|38|35|35"
98 ondown="set(vlookat_moveforce,+1);" onup="set(vlookat_moveforce,0);" />
99
100 <plugin name="girar" keep="true" align="bottom" x="-40" y="10" style="button" crop="212|113|35|35" onovercrop="212|38|35|35" ondowncrop="212|38|35|35"
101 ondown="toggleRotate();" onup="" />
102 <plugin name="info" keep="true" align="bottom" x="+0" y="10" style="button" crop="250|113|35|35" onovercrop="250|38|35|35" ondowncrop="250|38|35|35"
103 ondown="toggleIntroImage();" onup="" />
104 <plugin name="pantalla" keep="true" align="bottom" x="+40" y="10" style="button" crop="287|113|35|35" onovercrop="287|38|35|35" ondowncrop="287|38|35|35"
105 ondown="toggleFullScreen();" onup="" />
106
107 <plugin name="twitter" keep="true" align="bottom" x="+100" y="10" style="button" crop="336|113|60|35" onovercrop="336|38|60|35" ondowncrop="336|38|60|35"
108 ondown="openurl(http://www.twitter.com/#!/TintasCoral,_blank)" onup="" />
109 <plugin name="facebook" keep="true" align="bottom" x="+160" y="10" style="button" crop="399|113|60|35" onovercrop="399|38|60|35" ondowncrop="287|38|60|35"
110 ondown="openurl(http://www.facebook.com/TintasCoral,_blank)" onup="" />
111
112 <plugin name="lataCom" keep="true" align="bottom" x="+300" y="8" style="button" crop="463|75|180|70" onovercrop="463|75|180|70" ondowncrop="463|75|180|70"
113 ondown="toggleDecora();" onup="set(visible,false);set(plugin[lataSem].visible,true);" visible="false" />
114 <plugin name="lataSem" keep="false" align="bottom" x="+300" y="8" style="button" crop="463|4|180|70" onovercrop="463|4|180|70" ondowncrop="463|4|180|70"
115 ondown="toggleDecora();" onup="set(visible,false);set(plugin[lataCom].visible,true);" visible="true" />
116
Alles anzeigen
2. Also two problems with image hotspots in polygon hotspots. Sometimes a image hotspot that is made visible by a "onhover" event will not be visible. Other times it will not be visible unless you hover over precise sub region of the polygon hotspot.
3. I find it necessary to project the image hotspots on the cube faces by using "distorted=true". Otherwise the image hotspots will move in a different trajectory than the sphere which I am trying to tag.