source:
code/trunk/Media/particle/emitted_emitter.particle
@
885
Last change on this file since 885 was 790, checked in by nicolasc, 17 years ago | |
---|---|
File size: 1.7 KB |
Rev | Line | |
---|---|---|
[270] | 1 | // Example emitted emitters |
2 | ||
3 | Examples/Fireworks | |
4 | ||
5 | { | |
6 | ||
7 | material Examples/Flare | |
8 | ||
9 | point_rendering false | |
10 | ||
11 | particle_width 10 | |
12 | ||
13 | particle_height 10 | |
14 | ||
15 | cull_each false | |
16 | ||
17 | quota 1000 | |
18 | ||
19 | emit_emitter_quota 10 | |
20 | ||
21 | billboard_type point | |
22 | ||
23 | ||
24 | ||
25 | // Emitter that emits multiple Point emitters with name 'explosion' | |
26 | ||
27 | emitter Box | |
28 | ||
29 | { | |
30 | ||
31 | name mainEmitter | |
32 | ||
33 | emit_emitter explosion | |
34 | ||
35 | angle 30 | |
36 | ||
37 | emission_rate 1000 | |
38 | ||
39 | time_to_live 3 | |
40 | ||
41 | direction 0 1 0 | |
42 | ||
43 | velocity 200 | |
44 | ||
45 | } | |
46 | ||
47 | ||
48 | ||
49 | // This Point emitter is emitted by the Box emitter and emits billboard particles itself | |
50 | ||
51 | emitter Point | |
52 | ||
53 | { | |
54 | ||
55 | name explosion | |
56 | ||
57 | angle 360 | |
58 | ||
59 | emission_rate 1000 | |
60 | ||
61 | time_to_live 2 | |
62 | ||
63 | direction 0 1 0 | |
64 | ||
65 | velocity 80 | |
66 | ||
67 | duration 0.1 | |
68 | ||
69 | repeat_delay_min 2 | |
70 | ||
71 | repeat_delay_max 3 | |
72 | ||
73 | } | |
74 | ||
75 | ||
76 | ||
77 | // Make em float downwards | |
78 | ||
79 | affector LinearForce | |
80 | ||
81 | { | |
82 | ||
83 | force_vector 0 -100 0 | |
84 | ||
85 | force_application add | |
86 | ||
87 | } | |
88 | ||
89 | ||
90 | ||
91 | // Give em some nice colours | |
92 | ||
93 | affector ColourInterpolator | |
94 | ||
95 | { | |
96 | ||
97 | time0 0 | |
98 | ||
99 | colour0 1 1 0 | |
100 | ||
101 | time1 0.5 | |
102 | ||
103 | colour1 1 0 0 | |
104 | ||
105 | time2 0.9 | |
106 | ||
107 | colour2 0 0 1 | |
108 | ||
109 | } | |
110 | ||
111 | } | |
112 |
Note: See TracBrowser
for help on using the repository browser.