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
|
<krpano version="1.16" onstart="showlog(); set(counter, 0); startup();">
<events onviewchange="transition();" />
<action name="transition">
if(counter == 0,
if(view.hlookat GE 0,
if(view.hlookat LT 1.0,
delayedcall(1.0, changetonight(); );
);
);
);
if(counter == 1,
if(view.hlookat GE 0,
if(view.hlookat LT 1.0,
delayedcall(1.0, changetoday(); );
);
);
);
</action>
<action name="changetonight">
set(counter, 1); if(counter == 1, stopall(););
for(set(i, 1), i LE 6, inc(i),
txtadd(night, 'hot_', get(i));
set(hotspot[get(night)].visible, true);
tween(hotspot[get(night)].alpha, 1.0, 0.3, linear);
);
trace(Its Night);
</action>
<action name="changetoday">
set(counter, 0); if(counter == 0, stopall(););
for(set(i, 1), i LE 6, inc(i),
txtadd(day, 'hot_', get(i));
set(hotspot[get(day)].visible, true);
tween(hotspot[get(day)].alpha, 0.0, 0.3, linear);
);
trace(Its Day);
</action>
<action name="startup">
loadscene(scene_day, null, MERGE);
</action>
<scene name="scene_day" title="day" onstart="" thumburl="panos/day.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="-1" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/day.tiles/preview.jpg" />
<image>
<cube url="panos/day.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/day.tiles/mobile_%s.jpg" />
</mobile>
</image>
<style name="cubeface" width="1002" height="1002" distorted="true" enabled="false" pixelhittest="true" preload="true" visible="false" alpha="0.0" />
<hotspot name="hot_1" style="cubeface" url="panos/night.tiles/pano_l.jpg" ath="-90" atv="0" zorder="2" />
<hotspot name="hot_2" style="cubeface" url="panos/night.tiles/pano_f.jpg" ath="0" atv="0" zorder="2" />
<hotspot name="hot_3" style="cubeface" url="panos/night.tiles/pano_r.jpg" ath="+90" atv="0" zorder="2" />
<hotspot name="hot_4" style="cubeface" url="panos/night.tiles/pano_b.jpg" ath="+180" atv="0" zorder="2" />
<hotspot name="hot_5" style="cubeface" url="panos/night.tiles/pano_u.jpg" ath="0" atv="-90" zorder="2" />
<hotspot name="hot_6" style="cubeface" url="panos/night.tiles/pano_d.jpg" ath="0" atv="+90" zorder="2" />
</scene>
</krpano>
|