Models - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

Method
newModel
Resource(name,
type)
newMesh(name,
numFaces,
numVertices,
numNormals
numColors,
numTexture
Coordinates)

Models

Models can be referred to by name or number. Models can be added to or removed from the
world at any time.
In the member's parent-child hierarchy, each model can have a maximum of one parent, but it
can have an unlimited number of children. Models with no parent can exist in the 3D world but
are not rendered. A child's position and orientation depend on its parent's position and
orientation, and it changes when the position and orientation of the parent changes. Models can
have any other group, light, camera or model as their parent, or they can have no parent specified.
In this case, their
is identical to their
relationship both to their immediate parent and to the world parent. You can add or remove
models from the 3D world at any time by using the
methods.
For example, if the first child of the model named
script would refer to the position of the wheel relative to the model named
transform
car1.child[1].transform.position
To refer to the position of the wheel model relative to the world itself, use
getWorldTransform()
car1.child[1].getWorldTransform().position
346
Chapter 16: Working with Models and Model Resources
Description
Creates a new model resource and adds it to the
model resource palette. The
,
,
#box
#sphere
#cylinder
The
cannot be
type
model resource, use the
below.
Creates a new mesh model resource.
is the user-specified number of triangles.
numFaces
is the user-specified number
numVertices
of vertices. A vertex can be used by more than one
face.
is the user-specified number of normals.
numNormals
Enter
or omit this step to use the
0
generateNormals()
is the user-specified number of colors.
numColors
You can specify a color for each point of a triangle.
numTextureCoordinates
specified texture coordinates. Enter
step to get the default coordinates.
property describes their position and rotation in the 3D world, and
transform
getWorldTransform()
:
can be
type
#plane
, or
.
#particle
. To create a new mesh
#mesh
method detailed
newMesh
method.
is the number of user-
or omit this
0
property. All models that have parents have a
addToWorld()
is a wheel model, the following
car1
Returns
New model resource
,
object
New mesh model
resource
or
removeFromWorld()
car1
:

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Director mx 2004

Table of Contents