Line | |
---|
1 | // Example particle systems
|
---|
2 |
|
---|
3 | // Exudes greeny particles which float upwards
|
---|
4 | Examples/GreenyNimbus
|
---|
5 | {
|
---|
6 | material Examples/Flare
|
---|
7 | particle_width 30
|
---|
8 | particle_height 30
|
---|
9 | cull_each false
|
---|
10 | quota 10000
|
---|
11 | billboard_type point
|
---|
12 |
|
---|
13 | // Area emitter
|
---|
14 | emitter Box
|
---|
15 | {
|
---|
16 | angle 30
|
---|
17 | emission_rate 30
|
---|
18 | time_to_live 5
|
---|
19 | direction 0 1 0
|
---|
20 | velocity 0
|
---|
21 | colour_range_start 1 1 0
|
---|
22 | colour_range_end 0.3 1 0.3
|
---|
23 | width 60
|
---|
24 | height 60
|
---|
25 | depth 60
|
---|
26 | }
|
---|
27 |
|
---|
28 | // Make em float upwards
|
---|
29 | affector LinearForce
|
---|
30 | {
|
---|
31 | force_vector 0 100 0
|
---|
32 | force_application add
|
---|
33 | }
|
---|
34 |
|
---|
35 | // Fader
|
---|
36 | affector ColourFader
|
---|
37 | {
|
---|
38 | red -0.25
|
---|
39 | green -0.25
|
---|
40 | blue -0.25
|
---|
41 | }
|
---|
42 |
|
---|
43 |
|
---|
44 | }
|
---|
45 |
|
---|
46 | // A sparkly purple fountain
|
---|
47 | Examples/PurpleFountain
|
---|
48 | {
|
---|
49 | material Examples/Flare2
|
---|
50 | particle_width 20
|
---|
51 | particle_height 20
|
---|
52 | cull_each false
|
---|
53 | quota 10000
|
---|
54 | billboard_type oriented_self
|
---|
55 |
|
---|
56 | // Area emitter
|
---|
57 | emitter Point
|
---|
58 | {
|
---|
59 | angle 15
|
---|
60 | emission_rate 75
|
---|
61 | time_to_live 3
|
---|
62 | direction 0 1 0
|
---|
63 | velocity_min 250
|
---|
64 | velocity_max 300
|
---|
65 | colour_range_start 0 0 0
|
---|
66 | colour_range_end 1 1 1
|
---|
67 | }
|
---|
68 |
|
---|
69 | // Gravity
|
---|
70 | affector LinearForce
|
---|
71 | {
|
---|
72 | force_vector 0 -100 0
|
---|
73 | force_application add
|
---|
74 | }
|
---|
75 |
|
---|
76 | // Fader
|
---|
77 | affector ColourFader
|
---|
78 | {
|
---|
79 | red -0.25
|
---|
80 | green -0.25
|
---|
81 | blue -0.25
|
---|
82 | }
|
---|
83 | }
|
---|
84 |
|
---|
85 |
|
---|
86 | // A downpour
|
---|
87 | Examples/Rain
|
---|
88 | {
|
---|
89 | material Examples/Droplet
|
---|
90 | particle_width 20
|
---|
91 | particle_height 100
|
---|
92 | cull_each true
|
---|
93 | quota 10000
|
---|
94 | // Make common direction straight down (faster than self oriented)
|
---|
95 | billboard_type oriented_common
|
---|
96 | common_direction 0 -1 0
|
---|
97 |
|
---|
98 | // Area emitter
|
---|
99 | emitter Box
|
---|
100 | {
|
---|
101 | angle 0
|
---|
102 | emission_rate 100
|
---|
103 | time_to_live 5
|
---|
104 | direction 0 -1 0
|
---|
105 | velocity 50
|
---|
106 | colour_range_start 0.3 1 0.3
|
---|
107 | colour_range_end 0.7 1 0.7
|
---|
108 | width 1000
|
---|
109 | height 1000
|
---|
110 | depth 0
|
---|
111 | }
|
---|
112 |
|
---|
113 | // Gravity
|
---|
114 | affector LinearForce
|
---|
115 | {
|
---|
116 | force_vector 0 -200 0
|
---|
117 | force_application add
|
---|
118 | }
|
---|
119 |
|
---|
120 | }
|
---|
121 |
|
---|
122 | // A jet engine (of sorts)
|
---|
123 | Examples/JetEngine1
|
---|
124 | {
|
---|
125 | material Examples/Flare
|
---|
126 | particle_width 25
|
---|
127 | particle_height 25
|
---|
128 | cull_each false
|
---|
129 | quota 200
|
---|
130 | billboard_type point
|
---|
131 |
|
---|
132 | emitter Point
|
---|
133 | {
|
---|
134 | angle 5
|
---|
135 | emission_rate 100
|
---|
136 | time_to_live 1
|
---|
137 | direction 0 -1 0
|
---|
138 | velocity_min 250
|
---|
139 | velocity_max 300
|
---|
140 | colour_range_start 1 1 0.5
|
---|
141 | colour_range_end 1 0.8 0.3
|
---|
142 |
|
---|
143 | }
|
---|
144 | affector ColourFader
|
---|
145 | {
|
---|
146 | red -0.25
|
---|
147 | green -1
|
---|
148 | blue -1
|
---|
149 | }
|
---|
150 |
|
---|
151 | }
|
---|
152 | Examples/JetEngine2
|
---|
153 | {
|
---|
154 | material Examples/Flare
|
---|
155 | particle_width 15
|
---|
156 | particle_height 15
|
---|
157 | cull_each false
|
---|
158 | quota 200
|
---|
159 | billboard_type point
|
---|
160 |
|
---|
161 | emitter Point
|
---|
162 | {
|
---|
163 | angle 3
|
---|
164 | emission_rate 100
|
---|
165 | time_to_live 1
|
---|
166 | direction 0 -1 0
|
---|
167 | velocity_min 350
|
---|
168 | velocity_max 400
|
---|
169 | colour_range_start 0.5 1 1
|
---|
170 | colour_range_end 0.3 0.8 1
|
---|
171 |
|
---|
172 | }
|
---|
173 | affector ColourFader
|
---|
174 | {
|
---|
175 | red -1
|
---|
176 | green -1
|
---|
177 | blue -0.5
|
---|
178 | }
|
---|
179 |
|
---|
180 | }
|
---|
181 |
|
---|
182 |
|
---|
183 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.