Hi,
you want the buttons (the user interface) to zoom when zooming in the pano?

that doesn't make sense, or?
but anyway - if you want - it would be possible of course:
the fov can be recalculated to a scaling factor and then this scaling factor be applied to the buttons that should zoom,
e.g.:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
|
<events onviewchanged="zoombuttons();" />
<action name="zoombuttons">
div(tmp, view.fov, 360);
mul(tmp, 3.14159);
Math.tan(tmp);
div(scale, 1, tmp);
copy(plugin[button1].scale, scale);
copy(plugin[button2].scale, scale);
...
</action>
|
best regards,
Klaus