j3d.examples.particles.influences
Class ParticleAgeAlpha
java.lang.Object
j3d.examples.particles.influences.ParticleAgeAlpha
public class ParticleAgeAlpha
- extends java.lang.Object
A particle age alpha object produces a value, called the
alpha value, between 0.0 and 1.0, inclusive. The alpha value
changes over the life time of a particle as specified by the
parameters of the object. For specific parameter values affineTransform any
particular age, there is only one alpha value the alpha object
will produce. This object is very similar in concept to the
Java3D Alpha object. The Java3D Alpha object is based on time
while the particle age alpha is based on the age of a particle.
Not all features of the Java3D Alpha are needed or implemented
in the particle age alpha object.
The particle age alpha object has the following phases (all
expressed as a percentage of the age of a particle):
A. Phase Delay - How much age should pass before proceeding
to the next phase. Default is zero.
B. Increasing Alpha - How much of the particle age is used
to linearly increase the alpha value from 0 to 1.
C. Alpha affineTransform One - How long the alpha value stays affineTransform 1.
D. Decreasing Alpha - How much of the particle age is used
to linearly decrease the alpha value from 1 to 0.
1 +---------+
/ \
/ \
/ \
0_______/ \
| A | B | C | D |
The duration of the phases is specified by a float value
expressing the percentage of a particle lifetime.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParticleAgeAlpha
public ParticleAgeAlpha()
ParticleAgeAlpha
public ParticleAgeAlpha(float phaseDelay,
float increasingAlpha,
float alphaAtOne,
float decreasingAlpha)
value
public float value(Particle aParticle)
value
public float value(float aPercentage)