source:
GTP/trunk/App/Demos/Illum/Ogre/Media/particle/GameTools.particle
@
1879
Revision 1879, 3.7 KB checked in by szirmay, 18 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[777] | 1 | GameTools/DemoParticle1 |
2 | { | |
[1339] | 3 | renderer sprite |
4 | material GameTools/SBB | |
5 | //material GameTools/HPS | |
[777] | 6 | particle_width 200 |
7 | particle_height 200 | |
8 | cull_each false | |
9 | quota 30 | |
10 | billboard_type point | |
11 | ||
12 | // Area emitter | |
13 | emitter Box | |
14 | { | |
15 | // colour 0.7 0.8 0.3 0 | |
16 | colour_range_start 1 1 1 0 | |
17 | colour_range_end 0.8 1 0.5 0 | |
18 | ||
19 | angle 30 | |
[847] | 20 | emission_rate 6 |
[777] | 21 | time_to_live 3 |
22 | direction 0 1 0 | |
23 | velocity 0 | |
24 | width 120 | |
25 | height 120 | |
26 | depth 30 | |
27 | } | |
28 | ||
29 | // Make em float upwards | |
30 | affector LinearForce | |
31 | { | |
32 | force_vector 0 40 0 | |
33 | force_application add | |
34 | } | |
35 | ||
36 | affector ColourFader2 | |
37 | { | |
[847] | 38 | alpha1 +0.5 |
39 | alpha2 -0.5 | |
[777] | 40 | state_change 0.5 |
41 | } | |
42 | } | |
43 | ||
[1336] | 44 | GameTools/Big |
45 | { | |
[1424] | 46 | renderer sprite |
47 | ||
[1879] | 48 | material HPS_SMOKE_L_Depth_Illum |
[1424] | 49 | //material GameTools/SpriteShader |
50 | particle_width 1.6 | |
51 | particle_height 1.6 | |
[1336] | 52 | cull_each false |
[1446] | 53 | quota 220 |
[1336] | 54 | billboard_type point |
[1424] | 55 | sorted true |
[1336] | 56 | |
57 | // Area emitter | |
[1525] | 58 | emitter Box |
[1336] | 59 | { |
[1424] | 60 | colour 1 1 1 0 |
61 | //colour_range_start 1 1 1 0 | |
62 | //colour_range_end 1 1 1 0 | |
[777] | 63 | |
[1336] | 64 | angle 30 |
[1446] | 65 | emission_rate 3 |
66 | time_to_live 10 | |
[1336] | 67 | direction 0 1 0 |
[1446] | 68 | velocity 20 |
69 | width 70 | |
70 | height 70 | |
71 | depth 70 | |
[1336] | 72 | } |
73 | ||
74 | // Make em float upwards | |
[1424] | 75 | // affector LinearForce |
76 | // { | |
77 | // force_vector 0 40 0 | |
78 | // force_application add | |
79 | // } | |
[1336] | 80 | |
81 | affector ColourFader2 | |
82 | { | |
83 | alpha1 +0.5 | |
84 | alpha2 -0.5 | |
[1424] | 85 | state_change 3 |
[1336] | 86 | } |
87 | } | |
88 | ||
89 | ||
[1061] | 90 | GameTools/Little |
91 | { | |
[1339] | 92 | //material Flare |
93 | material HPS_SMOKE_S | |
94 | renderer sprite | |
[1451] | 95 | particle_width 45 |
96 | particle_height 45 | |
[1061] | 97 | cull_each false |
[1424] | 98 | quota 400 |
[1061] | 99 | billboard_type point |
100 | ||
101 | // Area emitter | |
[1424] | 102 | emitter Ellipsoid |
[1061] | 103 | { |
[1424] | 104 | colour 1 1 1 0 |
105 | //colour_range_start 1 1 1 0 | |
106 | //colour_range_end 1 1 1 0 | |
[1061] | 107 | |
[1355] | 108 | angle 160 |
109 | emission_rate 20 | |
[1424] | 110 | time_to_live 6 |
[1061] | 111 | direction 0 1 0 |
[1451] | 112 | velocity 8 |
[1424] | 113 | |
[1446] | 114 | width 20 |
115 | height 20 | |
116 | depth 20 | |
[1061] | 117 | } |
118 | ||
119 | affector ColourFader2 | |
120 | { | |
121 | alpha1 +0.5 | |
122 | alpha2 -0.5 | |
[1424] | 123 | state_change 2 |
[1061] | 124 | } |
125 | } | |
126 | ||
[1879] | 127 | GameTools/FogBig |
128 | { | |
129 | renderer sprite | |
130 | ||
131 | material HPS_SMOKE_L_Depth | |
132 | ||
133 | particle_width 20.0 | |
134 | particle_height 20.0 | |
135 | cull_each false | |
136 | quota 50 | |
137 | billboard_type point | |
138 | sorted true | |
139 | ||
140 | // Area emitter | |
141 | emitter Box | |
142 | { | |
143 | colour 1 1 1 1 | |
144 | emission_rate 220 | |
145 | time_to_live 0 | |
146 | velocity 0 | |
147 | width 5000 | |
148 | height 10 | |
149 | depth 5000 | |
150 | } | |
151 | ||
152 | // affector ColourFader2 | |
153 | // { | |
154 | // alpha1 +0.5 | |
155 | // alpha2 -0.5 | |
156 | // state_change 3 | |
157 | // } | |
158 | } | |
159 | ||
160 | GameTools/FogLittle | |
161 | { | |
162 | material HPS_SMOKE_S | |
163 | renderer sprite | |
164 | particle_width 80 | |
165 | particle_height 80 | |
166 | cull_each false | |
167 | quota 400 | |
168 | billboard_type point | |
169 | ||
170 | // Area emitter | |
171 | emitter Ellipsoid | |
172 | { | |
173 | colour 1 1 1 0 | |
174 | ||
175 | angle 160 | |
176 | emission_rate 300 | |
177 | time_to_live 4 | |
178 | direction 0 1 0 | |
179 | velocity 10 | |
180 | ||
181 | width 200 | |
182 | height 200 | |
183 | depth 100 | |
184 | } | |
185 | ||
186 | affector ColourFader2 | |
187 | { | |
188 | alpha1 +0.5 | |
189 | alpha2 -0.5 | |
190 | state_change 2 | |
191 | } | |
192 | } |
Note: See TracBrowser
for help on using the repository browser.