I'm still concerned with this problem. My question: Is there another possibility to mask the winter-panorama properly?
This is my code for the mask, which works, but I get only 6-8 FPS, which is way too slow...
|
Source code
|
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<!-- Summer-Panorama - 24 Hotspots -->
<style name="hotspot-summer"
distorted="true"
width="500" height="500"
capture="false"
zorder="1"
blendmode="normal"
scale="1"
alpha="1.00"
/>
<hotspot name="Image Summer 01"
style="hotspot-summer"
url="summer.tiles/l2_b_01_01.jpg"
zoom="false" distorted="true"
ath="180"
atv="0"
oy="-250"
ox="-250"
/>
...
<!-- Winter-Panorama - 24 Hotspots with maks-->
<style name="hotspot-winter"
distorted="true"
width="500" height="500"
capture="false"
zorder="2"
blendmode="normal"
scale="1"
alpha="1.00"
/>
<hotspot name="Image Winter 01"
style="hotspot-winter"
url="winter.tiles/l2_b_01_01.jpg"
zoom="false" distorted="true"
ath="180"
atv="0"
oy="-250"
ox="-250"
mask="Mask Image 01"
/>
<hotspot name="Image Winter 02"
style="hotspot-winter"
url="winter.tiles/l2_b_01_02.jpg"
zoom="false" distorted="true"
ath="180"
atv="0"
oy="-250"
ox="250"
mask="Mask Image 02"
/>
...
<style name="Mask Style"
blendmode="normal"
scale="1.0"
zorder="3"
width="3000"
height="1440"
preload="true"
handcursor="false"
capture="false"
visible="false"
/>
<plugin name="Mask Image 01"
style="Mask Style"
url="img/mask.png"
/>
<plugin name="Mask Image 02"
style="Mask Style"
url="img/mask.png"
/>
...
|
Hotspot-Size is 955px, my mask image is attached: Note: it's 3000x1500px to fit most of the display resolutions
I know, in Flash each mask can only be used for one element - but is there a way to optimize my code to get a higher framerate?
If not, can it be done via blendmode? When I disable the masking of the hotspots and set one of the mask-plugins to blendmode invert, it inverts the winter-panorama behind the black parts of the mask.
Is there a way to make this parts transparent?
According to
http://help.adobe.com/en_US/FlashPlatfor…/BlendMode.html it should be possible when I use blendmode erase, but
it doesn't work?
Best Regards
Michael