1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<krpano onstart="" >
<view fovtype="hfov" fov="1" limitview="fullrange" fovmax="130" maxpixelzoom="2.0" />
<control zoomtocursor="true" zoomoutcursor="false" />
<image type="sphere" hfov="1.00" multires="true" tilesize="512">
<level tiledimagewidth="6284" tiledimageheight="3142">
<sphere url="cube_sphere.tiles/l4/%0v_%0h.jpg" />
</level>
<level tiledimagewidth="3142" tiledimageheight="1571">
<sphere url="cube_sphere.tiles/l3/%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1571" tiledimageheight="786">
<sphere url="cube_sphere.tiles/l2/%0v_%0h.jpg" />
</level>
<level tiledimagewidth="786" tiledimageheight="393">
<sphere url="cube_sphere.tiles/l1/%0v_%0h.jpg" />
</level>
</image>
<action name="do_flat_to_360" >
set(image.hfov,360);
set(image.vfov,180);
mul(view.fov,360);
mul(view.hlookat,360);
mul(view.vlookat,360);
reloadpano();
wait(load);
</action>
<action name="do_360_to_flat" >
set(image.hfov,1);
set(image.vfov,0.5);
copy(tempfov,view.fov);
adjusthlookat(view.hlookat);
if(view.hlookat GT 180,sub(view.hlookat,360));
if(view.hlookat LT -180,add(view.hlookat,360));
copy(temphlookat,view.hlookat);
copy(tempvlookat,view.vlookat);
reloadpano();
wait(load);
div(view.fov,tempfov,360);
div(view.hlookat,temphlookat,360);
div(view.vlookat,tempvlookat,360);
</action>
<style name="buttonstyle"
url="%SWFPATH%/plugins/textfield.swf" children="false"
width="130" height="22"
css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
backgroundcolor="0xFFFFFF" roundedge="5" shadow="1" borderwidth="0" glow="4" glowcolor="0xFFFFFF"
visible="false"
onover="tween(alpha,0.7,distance(0.3,0.2));"
onout="tween(alpha,1.0,distance(0.3,0.2));"
onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
/>
<plugin name="bt" keep="true" style="buttonstyle"
html="[p]do_flat_to_360[/p]"
align="top" x="0" y="0"
click_A="set(html,[p]do_360_to_flat[/p]);set(plugin[bt].onclick,click_B());freezeview(true);do_flat_to_360();wait(load);freezeview(false);"
click_B="set(html,[p]do_flat_to_360[/p]);set(plugin[bt].onclick,click_A());freezeview(true);do_360_to_flat();wait(load);freezeview(false);"
onclick="click_A();"
/>
</krpano>
|