Difference between revisions of "HPL1/Editors/Particle Editor"
m (Fixed broken link) |
Iamrealife (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | =HPL1/Content Creation Chapter | + | =HPL1/Content Creation Chapter 6 HPL Particle Editor= |
==1 Introduction== | ==1 Introduction== | ||
− | This is the guide for the HPL-Particle editor which is a tool for creating various particle effects. | + | This is the guide for the HPL-Particle editor which is a tool for creating various particle effects.<br /><br /> |
===1.1 Min and Max values=== | ===1.1 Min and Max values=== | ||
− | A lot of values in the editor have both a min and max. This means that when the value is set to a particle a value between min and max is randomly selected. | + | A lot of values in the editor have both a min and max. This means that when the value is set to a particle a value between min and max is randomly selected.<br /><br /> |
===1.2 Fading=== | ===1.2 Fading=== | ||
− | Fading can be used to fade in and/or out some property like size or colour. The fading works like this. There are three relative values that are relative to the start value of the particle. The names for these values are start, middle and end and are used in that order. There are also two times that are relative to the life of the particle, for example if a particle has 2 seconds life time and the middle time is 0.5 then this occurs after 1 second (0.5 * 2). The first time is called middle time and this is when the start value is entirely faded from start to middle. The middle length is how long the middle value lasts. After middle time + middle length the middle value is faded to the end value.<br /><br /><br /> | + | Fading can be used to fade in and/or out some property like size or colour. The fading works like this. There are three relative values that are relative to the start value of the particle. The names for these values are start, middle and end and are used in that order. There are also two times that are relative to the life of the particle, for example if a particle has 2 seconds life time and the middle time is 0.5 then this occurs after 1 second (0.5 * 2). The first time is called middle time and this is when the start value is entirely faded from start to middle. The middle length is how long the middle value lasts. After middle time + middle length the middle value is faded to the end value.<br /><br /> |
+ | ===1.3 File=== | ||
+ | *New - Creates a new particle system and resets all the settings to default. | ||
+ | *Save - Saves your settings to the currently opened Particle System (*.ps) file. | ||
+ | *Save as... - Allows you to save your particle under a different name. | ||
+ | *Open - Lets you open particle files.<br /><br /> | ||
+ | |||
+ | ===1.4 Emitters=== | ||
+ | This section allows you to view a list of all the currently available emitters in your particle file as well as Add, Copy and remove emitters.<br /><br /> | ||
+ | ===1.5 Room=== | ||
+ | *Show Room - Here you can choose whether or not the Particle Viewer program should render a small room around the particle that you're currently viewing. | ||
+ | *Room size - This defines how large said room should be. Default settings are 6x6x6<br /><br /> | ||
+ | ===1.6 Particle Viewer=== | ||
+ | This program allows you to view your Particle by pressing the large and obvious Save and View Particle System button.<br /> | ||
+ | Left Mouse Button lets you move the view around and Middle Mouse Button zooms in and out. Pressing B toggles the bloom option.<br /><br /> | ||
+ | |||
==2 Parameters== | ==2 Parameters== | ||
===2.1. General=== | ===2.1. General=== | ||
'''Name'''<br />The name of the emitter currently selected.<br /><br /> | '''Name'''<br />The name of the emitter currently selected.<br /><br /> | ||
+ | '''Type'''<br />Only Normal type can be used, Beam type was never implemented.<br /><br /> | ||
'''Max Particles'''<br />The maximum number of particles that can be alive at once. When this limit is reached no more particles willl be created.<br /><br /> | '''Max Particles'''<br />The maximum number of particles that can be alive at once. When this limit is reached no more particles willl be created.<br /><br /> | ||
'''Particles per Second'''<br />The number of particles per second that will be created.<br /><br /> | '''Particles per Second'''<br />The number of particles per second that will be created.<br /><br /> | ||
Line 20: | Line 36: | ||
'''Offset position'''<br />How the emitter is offset relative to its starting positon.<br /><br /> | '''Offset position'''<br />How the emitter is offset relative to its starting positon.<br /><br /> | ||
'''Offset angle'''<br />How to particle system is offset relative to its start angles.<br /><br /><br /> | '''Offset angle'''<br />How to particle system is offset relative to its start angles.<br /><br /><br /> | ||
+ | ===2.2 Rendering=== | ||
+ | '''Draw Type'''<br />The different ways in which the particles can be draw to screen.<br />Point: The particle is a point and will always be pointing towards the camera.<br />Line: The particle is aligned in the direction in which the particle is travelling.<br /><br /> | ||
+ | '''Multiply RGB with Alpha'''<br />Some materials does not fade out the image when alpha is decreased (for example Additive) in this case it can be good to check this.<br /><br /> | ||
+ | '''Size'''<br />The size of the particle. This is the value used in the fading.<br /><br /> | ||
+ | '''Size Fading'''<br />See 1.2 for instructions on fading.<br /><br /><br /> | ||
+ | ===2.3 Collision=== | ||
+ | '''Use Collision'''<br />If collision detection should be used.<br /><br /> | ||
+ | '''Update Rate'''<br />How many times a second collision is check for each particle.<br /><br /> | ||
+ | '''Maximum Collisions'''<br />The maximum amount of collions can have before dying.<br /><br /> | ||
+ | '''Bounce Amount'''<br />How much of the speed is retained when bouncing. 0.5 means half of the speed. 2 means that the speed doubles when bouncing.<br /><br /><br /> | ||
+ | ===2.4 Beam Specific=== | ||
+ | This was meant to create and handle [[HPL1/Content_Creation_Chapter_3#3.13_Beams|Beam]] files, never implemented. | ||
+ | |||
+ | <br /><br /> | ||
+ | ===2.5 Rotation=== | ||
+ | '''Use Particle Spinning'''<br /> | ||
+ | If enabled, particles will rotate around themselves.<br /><br /> | ||
+ | '''Spin Type'''<br /> | ||
+ | Type for the particle spinning. Can be:<br /><br /> | ||
+ | '''Constant'''<br /> | ||
+ | A value will be picked from the spin velocity range at random.<br /><br /> | ||
+ | '''Movement'''<br /> | ||
+ | The rotation will be linked to how fast the particle is moving.<br /><br /> | ||
+ | '''Particle spin velocity range (rad/s)'''<br /> | ||
+ | Spin velocity for constant spin type. About 6.283 radians is a single spin.<br /><br /> | ||
+ | '''Use Revolution'''<br /> | ||
+ | If enabled, particles will rotate around some axis.<br /><br /> | ||
+ | '''Revolution Velocity (rad/s)'''<br /> | ||
+ | 3D Vector that will determine the axis and rotation speed for particles. | ||
− | ===2. | + | <br /><br /> |
+ | |||
+ | ===2.6 Start=== | ||
'''Start type'''<br />Sets what method to use to generate the start position of the particles in the emitter.<br /><br /> | '''Start type'''<br />Sets what method to use to generate the start position of the particles in the emitter.<br /><br /> | ||
'''Box start'''<br />A box start is created using an x, y and z min and max value. The collection of particles will get the shape of a box.<br /><br /> | '''Box start'''<br />A box start is created using an x, y and z min and max value. The collection of particles will get the shape of a box.<br /><br /> | ||
'''Sphere start'''<br />The positions are generated using an angle interval and the min and max value for the radius. You can think of it like this; an arrow start pointing up. This arrow is then rotated around the X axis (red) using a value between min and max. After that the arrow is rotated by the y axis (blue). The arrow will now be pointing in a specific direction and in this direction a position is created at a distance from center according to a number generated from min/max radius.<br />[[File:spherestart.jpg]] | '''Sphere start'''<br />The positions are generated using an angle interval and the min and max value for the radius. You can think of it like this; an arrow start pointing up. This arrow is then rotated around the X axis (red) using a value between min and max. After that the arrow is rotated by the y axis (blue). The arrow will now be pointing in a specific direction and in this direction a position is created at a distance from center according to a number generated from min/max radius.<br />[[File:spherestart.jpg]] | ||
− | <br /><br /> | + | <br /><br /><br /> |
− | ===2. | + | ===2.7 Color=== |
+ | ''NOTE: all of the colour channels have values from 0 -1.''<br /> | ||
+ | '''Color'''<br />This sets the colour of the particle.<br /><br /> | ||
+ | '''Fading'''<br />Settings for fading the colour. See chapter 1.2 for fading.<br /><br /><br /> | ||
+ | ===2.8 Movement=== | ||
'''Velocity type'''<br />The way in which the starting velocity is generated.<br /><br /> | '''Velocity type'''<br />The way in which the starting velocity is generated.<br /><br /> | ||
'''Box velocity'''<br />The same as box start but with velocity instead.<br /><br /> | '''Box velocity'''<br />The same as box start but with velocity instead.<br /><br /> | ||
Line 38: | Line 89: | ||
'''Speed multiplier'''<br />How much the speed is multiplied by each second. For example, 0.5 means that the speed halfed each second. 2 means it is doubled each second.<br /><br /> | '''Speed multiplier'''<br />How much the speed is multiplied by each second. For example, 0.5 means that the speed halfed each second. 2 means it is doubled each second.<br /><br /> | ||
'''Maximum speed'''<br />The maximum speed that the particles can reach.<br /><br /><br /> | '''Maximum speed'''<br />The maximum speed that the particles can reach.<br /><br /><br /> | ||
− | ===2. | + | ===2.9 Life=== |
− | '''Lifespan'''<br />Time in seconds that the particle will live. | + | '''Lifespan'''<br />Time in seconds that the particle will live.<br /><br /> |
− | + | '''Death Type'''<br />Type of death for the particles. Only Age can be selected.<br /><br /> | |
− | + | '''PS created at death'''<br />Particle System to be spawned when the particle dies. Could be used to loop particle creations. | |
− | + | <br /><br /><br /> | |
− | |||
− | |||
− | ''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ===2. | + | ===2.10 Material=== |
'''File'''<br />The material file to use.<br /><br /> | '''File'''<br />The material file to use.<br /><br /> | ||
'''Number of Files'''<br />The number of material files used. Normally this should just be one, but in some cases an animation needed is spread out over several material files. When using several material files these must be name “[name]01.mat”, “[name]02.mat”, etc. Also the file text must be just “[name]”. So if the files are called “test01.mat”, “test02.mat”, etc it must say “test” in the file field.<br /><br /> | '''Number of Files'''<br />The number of material files used. Normally this should just be one, but in some cases an animation needed is spread out over several material files. When using several material files these must be name “[name]01.mat”, “[name]02.mat”, etc. Also the file text must be just “[name]”. So if the files are called “test01.mat”, “test02.mat”, etc it must say “test” in the file field.<br /><br /> |
Latest revision as of 13:34, 8 April 2023
Contents
HPL1/Content Creation Chapter 6 HPL Particle Editor
1 Introduction
This is the guide for the HPL-Particle editor which is a tool for creating various particle effects.
1.1 Min and Max values
A lot of values in the editor have both a min and max. This means that when the value is set to a particle a value between min and max is randomly selected.
1.2 Fading
Fading can be used to fade in and/or out some property like size or colour. The fading works like this. There are three relative values that are relative to the start value of the particle. The names for these values are start, middle and end and are used in that order. There are also two times that are relative to the life of the particle, for example if a particle has 2 seconds life time and the middle time is 0.5 then this occurs after 1 second (0.5 * 2). The first time is called middle time and this is when the start value is entirely faded from start to middle. The middle length is how long the middle value lasts. After middle time + middle length the middle value is faded to the end value.
1.3 File
- New - Creates a new particle system and resets all the settings to default.
- Save - Saves your settings to the currently opened Particle System (*.ps) file.
- Save as... - Allows you to save your particle under a different name.
- Open - Lets you open particle files.
1.4 Emitters
This section allows you to view a list of all the currently available emitters in your particle file as well as Add, Copy and remove emitters.
1.5 Room
- Show Room - Here you can choose whether or not the Particle Viewer program should render a small room around the particle that you're currently viewing.
- Room size - This defines how large said room should be. Default settings are 6x6x6
1.6 Particle Viewer
This program allows you to view your Particle by pressing the large and obvious Save and View Particle System button.
Left Mouse Button lets you move the view around and Middle Mouse Button zooms in and out. Pressing B toggles the bloom option.
2 Parameters
2.1. General
Name
The name of the emitter currently selected.
Type
Only Normal type can be used, Beam type was never implemented.
Max Particles
The maximum number of particles that can be alive at once. When this limit is reached no more particles willl be created.
Particles per Second
The number of particles per second that will be created.
Start time offset
Time offset in seconds before the emitter starts.
Respawn dead particles
If dead particles should be respawned.
Warm up time
Time that the emitter gets to warm up. This is useful when doing a a stream of something (like a fire or waterfall) and the particles should not be shown “starting up”.
Pause
A pause is a break during which no particles are created. Particles are updated though.
Pause Length
The length of the pauses, 0 and 0 means that there are no pauses.
Pause Interval
The length between pauses. 0 and 0 means that there are no pauses.
Offset position
How the emitter is offset relative to its starting positon.
Offset angle
How to particle system is offset relative to its start angles.
2.2 Rendering
Draw Type
The different ways in which the particles can be draw to screen.
Point: The particle is a point and will always be pointing towards the camera.
Line: The particle is aligned in the direction in which the particle is travelling.
Multiply RGB with Alpha
Some materials does not fade out the image when alpha is decreased (for example Additive) in this case it can be good to check this.
Size
The size of the particle. This is the value used in the fading.
Size Fading
See 1.2 for instructions on fading.
2.3 Collision
Use Collision
If collision detection should be used.
Update Rate
How many times a second collision is check for each particle.
Maximum Collisions
The maximum amount of collions can have before dying.
Bounce Amount
How much of the speed is retained when bouncing. 0.5 means half of the speed. 2 means that the speed doubles when bouncing.
2.4 Beam Specific
This was meant to create and handle Beam files, never implemented.
2.5 Rotation
Use Particle Spinning
If enabled, particles will rotate around themselves.
Spin Type
Type for the particle spinning. Can be:
Constant
A value will be picked from the spin velocity range at random.
Movement
The rotation will be linked to how fast the particle is moving.
Particle spin velocity range (rad/s)
Spin velocity for constant spin type. About 6.283 radians is a single spin.
Use Revolution
If enabled, particles will rotate around some axis.
Revolution Velocity (rad/s)
3D Vector that will determine the axis and rotation speed for particles.
2.6 Start
Start type
Sets what method to use to generate the start position of the particles in the emitter.
Box start
A box start is created using an x, y and z min and max value. The collection of particles will get the shape of a box.
Sphere start
The positions are generated using an angle interval and the min and max value for the radius. You can think of it like this; an arrow start pointing up. This arrow is then rotated around the X axis (red) using a value between min and max. After that the arrow is rotated by the y axis (blue). The arrow will now be pointing in a specific direction and in this direction a position is created at a distance from center according to a number generated from min/max radius.
2.7 Color
NOTE: all of the colour channels have values from 0 -1.
Color
This sets the colour of the particle.
Fading
Settings for fading the colour. See chapter 1.2 for fading.
2.8 Movement
Velocity type
The way in which the starting velocity is generated.
Box velocity
The same as box start but with velocity instead.
Sphere Velocity
The same as sphere start but with velocity instead.
Coord system
The way in which the particles are related to the world and the object the system is attached to (if any). In world all the particles have an individual postion that does change depending on the parent object. In local however the particle position is dependant on the parent object so if that the particle moves and turns along with the parent.
Uses direction
If the direction of the start velocity depends on the way the particle system is “facing” (with no rotation it faces up). This is useful for systems like steam where the system has a direction.
Gravity Type
The type of gravity being applied to the particles.
None: No gravity it applied.
Vector: The gravity acceleration is applied.
Centre: The particles are drawn towards the centre of the particle system with Gravity Acceleration Y as acceleration.
Gravity Acceleration
Used differently according by the gravity type.
Acceleration
Accleration applied to all bodies.
Speed multiplier
How much the speed is multiplied by each second. For example, 0.5 means that the speed halfed each second. 2 means it is doubled each second.
Maximum speed
The maximum speed that the particles can reach.
2.9 Life
Lifespan
Time in seconds that the particle will live.
Death Type
Type of death for the particles. Only Age can be selected.
PS created at death
Particle System to be spawned when the particle dies. Could be used to loop particle creations.
2.10 Material
File
The material file to use.
Number of Files
The number of material files used. Normally this should just be one, but in some cases an animation needed is spread out over several material files. When using several material files these must be name “[name]01.mat”, “[name]02.mat”, etc. Also the file text must be just “[name]”. So if the files are called “test01.mat”, “test02.mat”, etc it must say “test” in the file field.
Animation length
The number of seconds the animation lasts, if the particle lives longer than this time, the animation is looped.
Sub Division
This is used in order to animate individual particles (when using several files, the material for all particles are changed at the same time). It can also be used for more variety among particles. The sub divisoion is set up by specifying how the texture is to be split and then setting how the particles will be assigned to a sub division. The splitting is like this:
Sub Division Amount
The number of divisons on each axis.
Sub Division Type
How the subdivisions are assigned to the particles.
Random: A division is randomly picked.
Animation: During the life time of an object it has all the subdivisions. Starting in the upper left corning and ending in the lower right.