Mesh generator methods
Use these methods to work with mesh primitives:
Method
build()
generateNormals
(style)
Particle system properties
Particle systems are unique among model resources in that they include animation by default.
Particle systems, whose
simulating fire, smoke, running water, and other streaming or bursting effects.
Use these properties to work with particle systems:
Property
lifetime
colorRange.
end
colorRange.
start
tweenMode
sizeRange.
start
342
Chapter 16: Working with Models and Model Resources
Description
Builds the mesh according to the current property
values. (The mesh construction properties specified
in the previous table have no effect until
is called.)
Generates a script error if any properties specify an
invalid list.
Generates a new normal for every vertex in every
triangle. The
style
each triangle is clearly delineated, or
method assumes that all triangles were specified in a
clockwise order.
is
type
#particle
Access
Description
Get and set
Lifetime of all particles emitted, in
milliseconds.
Get and set
Color value of a particle at the end
of its life.
Get and set
Color value of a particle at the start of its
life.
Get and set
The variation of a particle's color
throughout its life. The change can be
based on either velocity or age.
Get and set
The size of a particle at the start of its life. Positive integer.
build()
parameter can be
#flat
#smooth
, can have an almost infinite variety of appearances,
Returns
Nothing
Nothing
, so that
. The
Value Range
Positive integer. The
default is
10.000
Any color value. The
default is
color(255,
.
255, 255)
Any color value. The
default is
color(255,
.
255, 255)
:
#velocity
Alter particle color
between
colorRange.
and
start
colorRange.
based on velocity.
end
#age:
Alter particle color
between
colorRange.start
colorRange.end
based on the
particle's lifetime.
The default is
ms.
and
.
1
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers