Go to: Related nodes. Attributes.
Normally, this node is created automatically when you click on the map button beside the Life Color, Life Transparency, or Life Incandescence fields in the Attribute Editor of a Particle Cloud.
For example, if you map a "Cloth" texture to Life Color, you will get the following nodes and connections:
ParticleAgeMapper Place2dTexture Cloth ParticleCloud ----------------- -------------- ----- ------------- out UV Coord -------> UV Coord Out UV ---------------> UV Coord Out UV Filter Size ---> UV Filter Size Out Color -------> ColorHow it Works: Each time a particle in the Particle Cloud is rendered, the Particle Age Mapper knows its current age. This is converted to a number between 0 and 1, based on either the particle's total life-span, or another number that you provide (in the Time Scale attribute). The output of the Particle Age Mapper node is a UV coordinate --- the "U" value is always 0, and the "V" value is the number between 0 and 1.
Example:Say you want to have particles that are emitted white-hot, then cool to red over their lifetime, before disappearing. To do this, use a Particle Age Mapper with a Ramp texture, set to type V Ramp. The ramp should go from white at the start to red at the end. In the Particle Age Mapper, turn on Relative Age. When the particles are rendered, the "young" particles will have a low value for age, and therefore take their color from the beginning (white) part of the ramp. Older particles will get their color from the other end of the ramp.
Note: This node is obsolete, and used for backward compatiblity only The functionality is now provided by the ParticleSamplerInfo node.
In the table below, important attributes have their names listed in bold in the description column.
This node is MP safe
Node name | Parents | MFn type | Compatible function sets |
---|---|---|---|
particleAgeMapper | node | kParticleAgeMapper | kBase kNamedObject kDependencyNode kParticleAgeMapper |
particleTranspMapper, particleColorMapper, particleIncandMapper, particleSamplerInfo, particleCloud
foldAtEnd, outUCoord, outUvCoord, outVCoord, particleAge, particleLifespan, relativeAge, timeScale
Long name (short name) | Type | Default | Flags | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
foldAtEnd
(fae )
| bool | false | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
| |||||||||||||||||
outUvCoord
(ouv )
| float2 | ![]() ![]() | |||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
particleAge
(pa )
| float | 0.0 | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
particleLifespan
(pls )
| float | 0.0 | ![]() ![]() ![]() ![]() | ||||||||||||||
relativeAge
(rea )
| bool | false | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
| |||||||||||||||||
timeScale
(ts )
| float | 1 | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||
|