Difference between revisions of "Particle Life"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "== General == Image:17_Par36_e.jpg Inside the flag "particles life" the appearance of the particles during their life time is adjusted. == Size of particles == This curv...")
 
(Redirected page to Particle System)
 
Line 1: Line 1:
== General ==
+
#Redirect [[Particle System]]
[[Image:17_Par36_e.jpg]]
 
 
 
Inside the flag "particles life" the appearance of the particles during their life time is adjusted.
 
 
 
== Size of particles ==
 
This curve characterises the size of a particle during its lifetime. More precisely you adjust a factor with this curve. Multiplicated by the starting size of particles (see [[Particle_Emitter#Size_of_particles|Size of particles]]) its current size results at every point of time.
 
 
 
The factor can accept values between 0.0 to 1.0.
 
 
 
<font class="important">Hint</font>: A factor with a value of 0.0 reduces a particle to a very small one, depending on the graphic driver is starts to flicker possibly but it will '''not''' become invisible. Better use black than one of the mixtured colors (see below).
 
 
 
 
 
{| id="AutoNumber1" style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FFFF99"
 
| width="100%" |
 
 
 
'''Handling of the imput field of curves'''
 
 
 
This imput field it is possible to model a curve progression. At the beginning the curve has two reference points - one at the beginning and one at the end.
 
 
 
By adding new reference points more complex curve progressions are possible.
 
 
 
'''Adding a reference point'''
 
 
 
[[Image:17_Par26.jpg]]
 
 
 
Move the mouse along the imput field to a position where no reference point exists - a vertical mark appears. If you now press the left mouse button a new reference point will be inserted into the curve.
 
 
 
<font size="1">Figure above: vertical marker, Figure below: curve progression with a new reference point</font>
 
 
 
[[Image:17_Par27.jpg]]
 
 
 
'''Move Point'''
 
 
 
[[Image:17_Par28.jpg]]
 
 
 
You activate a reference point by moving the vertical marker into its direction. The reference point changes the color from white to <font color="#FF0000">red</font>.
 
 
 
You can now pull the point directly by holding and moving the '''left mousebutton'''. If a point is already choosen and the mousebutton is pressed only the vertical position of the cursor can be changed.
 
The reference point also can be moved by the '''mousewheel''', without pressing the mousebutton. Thereby the cursor has to stay at the position of the reference point.
 
 
 
'''Delete a point'''
 
 
 
Mark a reference point and press the '''right mousebutton''' to delete it. Start- and End-point cannot be deleted.
 
|}
 
 
 
==Combination color==
 
Every particle gets a starting color at formation (see [[Particle_Emitter#Min..2FMax._Life|Min./Max. Life]]). During its lifetime 4 more colors can be mixtured to this color. The combination color is defined by a seperate curve.
 
 
 
[[Image:17_Par29_e.jpg]]
 
 
 
The number of all <font class="keyword">active combination colors</font> will be adjusted by this modulator. If the adjustement is 0 the particle keeps its starting color - at 1 the combination color will be activated, at 2 two combination colors will be activated and so on.
 
 
 
==Combination colors 0-3==
 
The adjusted combination factors move inside the area of values between 0.0 and 1.0. The value 0.0 means, that particle keeps its color, at 1.0 the particle completely takes over the combination color.
 
 
 
{| id="AutoNumber2" style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FFFF99"
 
| width="100%" |
 
'''Exact calculation of the color:'''<br /> <br /> C be the starting color of the particle<br /> C<sub>0</sub>-C<sub>3</sub> the combination colors<br /> f<sub>0</sub>(t)-f<sub>3</sub>(t) the combination factors,<br /> and C<sup>n</sup>(t) the resulting color after using the combination colors 0-n,<br /><br /> as a result the color C<sub>a</sub>(t) of the particle will be calculated,<br /> When there are "a" active combination colors (see [[Particle Life#Combination color|Combination color]]),<br /> at a special time "t" as follows::
 
 
 
<font face="Courier New"> <font size="2">C<sup>0</sup>(t) = (1.0-f<sub></sub>(t))*C<sup>0</sup> +f<sub>0</sub>(t)*C<sub>0</sub><br/>C<sup>1</sup>(t) = (1.0-f<sub>1</sub>(t))*C<sup>0</sup>(t)+f<sub>1</sub>(t)*C<sub>1<br /> </sub>C<sup>2</sup>(t) = (1.0-f<sub>2</sub>(t))*C<sup>1</sup>(t)+f<sub>2</sub>(t)*C<sub>2<br /> </sub>C<sup>3</sup>(t) = (1.0-f<sub>3</sub>(t))*C<sup>2</sup>(t)+f<sub>3</sub>(t)*C<sub>3<br /> </sub><br /> If a = 0: C<sub>a</sub>(t) = C<br /> If a > 0: C<sub>a</sub>(t) = C<sup>a-1</sup>(t)</font><br /><br /> </font><font face="Arial">In a nutshell: The starting color first will be combined with combination color 0, the output will be combined with combination color 1, and so on. This sequence can influence the final output.</font>
 
|}
 
 
 
[[Category: Particles]]
 

Latest revision as of 16:19, 20 July 2023

Redirect to: