[692] | 1 | // Example particle systems
|
---|
| 2 |
|
---|
| 3 | // Exudes greeny particles which float upwards
|
---|
| 4 | Examples/GreenyNimbus
|
---|
| 5 | {
|
---|
| 6 | material Examples/FlarePointSprite
|
---|
| 7 | point_rendering true
|
---|
| 8 | // point rendering means size is controlled by material
|
---|
| 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 40
|
---|
| 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 | // Exudes aureola particles which around the model float upwards
|
---|
| 183 | Examples/Aureola
|
---|
| 184 | {
|
---|
| 185 | material Examples/Aureola
|
---|
| 186 | particle_width 200
|
---|
| 187 | particle_height 200
|
---|
| 188 | cull_each false
|
---|
| 189 | quota 100
|
---|
| 190 | billboard_type perpendicular_common
|
---|
| 191 | common_direction 0 1 0
|
---|
| 192 | common_up_vector 0 0 1
|
---|
| 193 |
|
---|
| 194 | // Area emitter
|
---|
| 195 | emitter Box
|
---|
| 196 | {
|
---|
| 197 | angle 30
|
---|
| 198 | emission_rate 4
|
---|
| 199 | time_to_live 5
|
---|
| 200 | position 0 -100 0
|
---|
| 201 | direction 0 1 0
|
---|
| 202 | velocity_min 0
|
---|
| 203 | velocity_max 30
|
---|
| 204 | colour_range_start 0.3 0.3 0.3 0.0
|
---|
| 205 | colour_range_end 0.8 0.8 0.8 0.0
|
---|
| 206 | width 10
|
---|
| 207 | height 10
|
---|
| 208 | depth 30
|
---|
| 209 | }
|
---|
| 210 |
|
---|
| 211 | // Make em float upwards
|
---|
| 212 | affector LinearForce
|
---|
| 213 | {
|
---|
| 214 | force_vector 0 70 0
|
---|
| 215 | force_application add
|
---|
| 216 | }
|
---|
| 217 |
|
---|
| 218 | // Fader
|
---|
| 219 | affector ColourFader2
|
---|
| 220 | {
|
---|
| 221 | red1 +0.4
|
---|
| 222 | green1 +0.4
|
---|
| 223 | blue1 +0.4
|
---|
| 224 | alpha1 +0.7
|
---|
| 225 |
|
---|
| 226 | red2 -0.25
|
---|
| 227 | green2 -0.25
|
---|
| 228 | blue2 -0.25
|
---|
| 229 | alpha2 -0.3333
|
---|
| 230 |
|
---|
| 231 | state_change 3.5
|
---|
| 232 | }
|
---|
| 233 |
|
---|
| 234 | // Rotater
|
---|
| 235 | affector Rotator
|
---|
| 236 | {
|
---|
| 237 | rotation_range_start 0
|
---|
| 238 | rotation_range_end 360
|
---|
| 239 | rotation_speed_range_start 0
|
---|
| 240 | rotation_speed_range_end 180
|
---|
| 241 | }
|
---|
| 242 | }
|
---|
| 243 |
|
---|
| 244 |
|
---|
| 245 | Examples/Swarm
|
---|
| 246 | {
|
---|
| 247 | quota 3000
|
---|
| 248 | material Examples/Flare2
|
---|
| 249 | particle_width 12
|
---|
| 250 | particle_height 24
|
---|
| 251 | cull_each true
|
---|
| 252 | renderer billboard
|
---|
| 253 | sorted true
|
---|
| 254 | local_space false
|
---|
| 255 | billboard_type oriented_self
|
---|
| 256 |
|
---|
| 257 | emitter Box
|
---|
| 258 | {
|
---|
| 259 | angle 180
|
---|
| 260 | colour 1 1 1 1
|
---|
| 261 | colour_range_start 1 1 1 1
|
---|
| 262 | colour_range_end 1 1 1 1
|
---|
| 263 | direction 0 1 0
|
---|
| 264 | emission_rate 30
|
---|
| 265 | position 0 0 0
|
---|
| 266 | velocity 50
|
---|
| 267 | velocity_min 50
|
---|
| 268 | velocity_max 1
|
---|
| 269 | time_to_live 20
|
---|
| 270 | time_to_live_min 20
|
---|
| 271 | time_to_live_max 20
|
---|
| 272 | duration 0
|
---|
| 273 | duration_min 0
|
---|
| 274 | duration_max 0
|
---|
| 275 | repeat_delay 0
|
---|
| 276 | repeat_delay_min 0
|
---|
| 277 | repeat_delay_max 0
|
---|
| 278 | width 80
|
---|
| 279 | height 80
|
---|
| 280 | depth 80
|
---|
| 281 | }
|
---|
| 282 |
|
---|
| 283 | affector ColourFader
|
---|
| 284 | {
|
---|
| 285 | red -0.05
|
---|
| 286 | green 0
|
---|
| 287 | blue 0
|
---|
| 288 | alpha 0
|
---|
| 289 | }
|
---|
| 290 |
|
---|
| 291 | affector DeflectorPlane
|
---|
| 292 | {
|
---|
| 293 | plane_point 0 -50 0
|
---|
| 294 | plane_normal 0 1 0
|
---|
| 295 | bounce 1
|
---|
| 296 | }
|
---|
| 297 |
|
---|
| 298 | affector DeflectorPlane
|
---|
| 299 | {
|
---|
| 300 | plane_point 0 50 0
|
---|
| 301 | plane_normal 0 -1 0
|
---|
| 302 | bounce 1
|
---|
| 303 | }
|
---|
| 304 |
|
---|
| 305 | affector DeflectorPlane
|
---|
| 306 | {
|
---|
| 307 | plane_point 50 0 0
|
---|
| 308 | plane_normal -1 0 0
|
---|
| 309 | bounce 1
|
---|
| 310 | }
|
---|
| 311 |
|
---|
| 312 | affector DeflectorPlane
|
---|
| 313 | {
|
---|
| 314 | plane_point -50 0 0
|
---|
| 315 | plane_normal 1 0 0
|
---|
| 316 | bounce 1
|
---|
| 317 | }
|
---|
| 318 |
|
---|
| 319 | affector DeflectorPlane
|
---|
| 320 | {
|
---|
| 321 | plane_point 0 0 50
|
---|
| 322 | plane_normal 0 0 -1
|
---|
| 323 | bounce 1
|
---|
| 324 | }
|
---|
| 325 |
|
---|
| 326 | affector DeflectorPlane
|
---|
| 327 | {
|
---|
| 328 | plane_point 0 0 -50
|
---|
| 329 | plane_normal 0 0 1
|
---|
| 330 | bounce 1
|
---|
| 331 | }
|
---|
| 332 |
|
---|
| 333 | affector DirectionRandomiser
|
---|
| 334 | {
|
---|
| 335 | randomness 60
|
---|
| 336 | }
|
---|
| 337 | }
|
---|
| 338 |
|
---|
| 339 |
|
---|
| 340 | Examples/Snow
|
---|
| 341 | {
|
---|
| 342 | quota 2000
|
---|
| 343 | material Examples/Flare
|
---|
| 344 | particle_width 4
|
---|
| 345 | particle_height 4
|
---|
| 346 | cull_each true
|
---|
| 347 | renderer billboard
|
---|
| 348 | sorted true
|
---|
| 349 | local_space false
|
---|
| 350 | billboard_type point
|
---|
| 351 |
|
---|
| 352 | emitter Box
|
---|
| 353 | {
|
---|
| 354 | angle 0
|
---|
| 355 | colour 1 1 1 1
|
---|
| 356 | colour_range_start 1 1 1 1
|
---|
| 357 | colour_range_end 1 1 1 1
|
---|
| 358 | direction 0 -1 0
|
---|
| 359 | emission_rate 100
|
---|
| 360 | position 0 200 0
|
---|
| 361 | velocity 20
|
---|
| 362 | velocity_min 20
|
---|
| 363 | velocity_max 20
|
---|
| 364 | time_to_live 20
|
---|
| 365 | time_to_live_min 20
|
---|
| 366 | time_to_live_max 20
|
---|
| 367 | duration 0
|
---|
| 368 | duration_min 0
|
---|
| 369 | duration_max 0
|
---|
| 370 | repeat_delay 0
|
---|
| 371 | repeat_delay_min 0
|
---|
| 372 | repeat_delay_max 0
|
---|
| 373 | width 200
|
---|
| 374 | height 200
|
---|
| 375 | depth 1
|
---|
| 376 | }
|
---|
| 377 |
|
---|
| 378 | affector DeflectorPlane
|
---|
| 379 | {
|
---|
| 380 | plane_point 0 0 0
|
---|
| 381 | plane_normal 0 1 0
|
---|
| 382 | bounce 0
|
---|
| 383 | }
|
---|
| 384 |
|
---|
| 385 | affector DirectionRandomiser
|
---|
| 386 | {
|
---|
| 387 | randomness 10
|
---|
| 388 | }
|
---|
| 389 | }
|
---|
| 390 |
|
---|
| 391 |
|
---|