Difference between revisions of "Particle Emitter"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "== General == Image:17_Par6_e.jpg In the flag "Emitter" the settings for the emitter ("source of particle") are choosen, which concern the formation of the particles: The...")
 
(Redirected page to Particle System)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== General ==
+
#Redirect [[Particle System]]
[[Image:17_Par6_e.jpg]]
 
 
 
In the flag "Emitter" the settings for the emitter ("source of particle") are choosen, which concern the formation of the particles: The primary color, speed, direction, etc.
 
 
 
==Number of particles==
 
<font size="1" color="#FF0000">(The change of this setting will restart the system!)</font>
 
 
 
This is the ''maximum'' number of particles which can "live" at the same time but it is not necessarily the number of existent particles at any time. This is dependend on to the created particles ''BY TIME'' and their endurance. The setting <font class="keyword">number of particle</font> is a upper limit, the ressouces are only "reserved".
 
 
 
If the upper limit is reached, the emitter stops the creation of new particles until particles "die" and resources run clear. So an emitter can be configured, that it creates particles batch-wise.
 
 
 
==New per time==
 
New particles per ''time-unit''. A time-unit takes 15ms, so there are 66 of them per second. If you fill in a 1 in this field, 66 particles per second will be created. If an endurance of 66 time-units is configured, you get a particle-system with 66 particles at any time.
 
 
 
==Type of emitter==
 
 
 
There are two types of emitters: <font class="keyword">Point</font>- and <font class="keyword">space</font>-emitter.
 
 
 
[[Image:17_Par5.jpg]]
 
 
 
<font size="1">Left figure: Point-emitter, Right figure: Space-emitter</font>''
 
 
 
[[Image:17_Par12_e.jpg]]
 
 
 
*<font class="keyword">Point-emitter</font>: All particles will be created inside this point. From there they will be sent into the opening-volume of the set direction.
 
*<font class="keyword">Space-emitter</font>: The particle is created at a random point inside the space. The opening-volume and the direction start at this point.
 
 
 
==Enlargement==
 
(only for type of emitter <font class="keyword">space</font>)
 
 
 
[[Image:17_Par13.jpg]]
 
 
 
Defines the enlargement of the area where the particles are created. The three axes are set as you see it on the picture right hand. X- and Y-axis are in the screen-layer and Z shows to the monitor.
 
 
 
If the enlargement of one of the axis is set to 0, a surface is created as an emitter. If two enlargements are set to 0 a straight line will be created inside the area. If all enlargements are set to 0 a point-emitter is created. It's easier to do with the type of emitter <font class="keyword">point-emitter</font>.
 
 
 
{| id="AutoNumber1" style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FFFF99"
 
| width="100%" |
 
''' Handling of the input field for numbers with decimal places'''
 
 
 
[[Image:17_Par16_e.jpg]]
 
 
 
The enlargement of an emitter and many other variables will be set by this special input field.
 
 
 
These input fields are handled with the mouse because handling with the keyboard would be too complicated.
 
 
 
* '''Left mouseclick''' inside an area of the input field increases the number. Left mouseclick on the tens column would increase the numerical value by 10.
 
* '''Right mouseclick''' decreases the value of the number
 
* '''Mouse wheel''' up and down increases/decreases the value of the number at this position.
 
|}
 
 
 
== Position ==
 
(of the emitter)
 
 
 
Sets the position of the emitter inside the area. Adjustment of the coordinate axis like TODO
 
 
 
== Opening Angle ==
 
see [[Particle_Basics#Opening_angle|Basics: Opening Angle]]
 
 
 
==Direction angle==
 
see [[Particle_Basics#Direction_angle|Basic: Direction angle]]
 
 
 
==Velocity==
 
Defines the minimum and maximum velocity of every new particle. Every new particle gets a random beginning-velocity.
 
 
 
{| style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FF9999"
 
| width="100%" | <font class="important">Information</font>:  If you want the particle-system to work '''faster''' with the same mode it is not only sufficient to change the velocity. You also have to decrease the endurance otherwise the particles fly farther in the same span of life. If you want to double the velocity of a system without changing the mode you have to double the initial velocity and halve the endurance.
 
|}
 
 
 
==Min./Max. Life==
 
Minimum and maximum <font class="keyword">span of life</font>. The span of life of a particle is set to a random value inside the maximum/minimum area.
 
 
 
==Size of particles==
 
Indicates the minimum and maximum size of a new particle. A random size inside this area is assigned to every new particle.
 
 
 
==Min./Max. color==
 
[[Image:17_Par22.jpg]]
 
 
 
<font size="1">Illustration: RYB-range of colors (also known as ryb cube)</font>
 
 
 
Minimum and maximum color. The final color arises at random on the straight line which associates the two defined colors of the <font class="keyword">RYB-range of colors</font>.
 
 
 
It is a color gradient that you would expect intuitively. It's the same result like if you would merge different amounts of light to the adjusted colors.
 
 
 
{| style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FFFF99"
 
| width="100%" |
 
'''Handling of the input fields of colors'''
 
 
 
[[Image:17_Par23.jpg]] (TODO)
 
 
 
With this GUI-element you can choose a color of the ryb/hsv-range of colors.
 
 
 
'''Explanation of the range of colors''':
 
 
 
* <font class="keyword">RYB-range of colors</font> - This range of color is spanned by the axes of a kartesian (rectangular) coordinate system, where red, green and blue are applied. It is ''hardware orientated'', monitors recompose colored pixels of red, green and blue. Calculating a tone is very easy with this range of colors, bus finding a color is ''not very intuitive''.
 
     
 
[[Image:17_Par24.jpg]]
 
 
 
* <font class="keyword">HSV-range of colors</font> - this range of colors is more geared to the cognition and imagination of the people. The coordinate system is cylindrical, the range of color has got the form of a six-sided conus standing on the peak.
 
 
 
** '''Hue (H)''' - pointed up by an angle, red at 0°, green at 120°, etc.
 
**'''Saturation (S)''' - 0.0 means absolutely colorless, 1.0 stands for completely saturated colors. The unsaturated "colors" are situated at the perpendicular bisector of the side - the gray tones.
 
**'''Value (V)''' - 0.0 means black, 1.0 shows the brightest stage of a color.
 
 
 
{| id="AutoNumber3" style="border-collapse: collapse" width="100%" border="1" cellpadding="4" bgcolor="#FF8080"
 
| width="100%" | <font class="important">Note</font>: By changing the range of colors, from RYB to HSV rounding errors could happen - but dont panic: it's normal. ;o)
 
|}
 
 
 
'''Handling of the GUI-elements''':
 
 
 
Inside of our input field red, green, blue as well as hue, saturation and value are apped onto the range of '''values 0-255'''.
 
 
 
If you click into one of the color value fields a color gradient will be shown that demonstrates which colors are possible by changing the value. Leftmost you see the the color which wil be created if you change the value to 0, rightmost the color if the value is set to 255. The current color is marked by a vertical line.
 
 
 
This value can be changed by '''dragging the mouse''' with '''pressed kept mouse-button'''. The effect is directly visible.
 
|}
 

Latest revision as of 16:18, 20 July 2023

Redirect to: