07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADOBE DIRECTOR BASICS<br />

3D basics<br />

The position of vertex 1 after the cube has been moved and rotated<br />

As before, use the Rotate Camera tool to look at the cube from all sides.<br />

In this movie, the cube can be imagined with respect to two different frames of reference: model space and world space.<br />

The first vertex in the model resource's vertexList is still at vector(25, -25, -25), when it is seen from the model's<br />

point of view. Because of the altered position of the model in the 3D world, the same point is now at a different point<br />

when it is seen in world space. (See the orange circle). The output in the Message window indicates the position of the<br />

vertex in world space: vector(59.1506, -50.0000, -9.1506).<br />

Using the debug property of a model<br />

Type the statement below into the Message window.<br />

member("3D World").model("Cube").debug = TRUE<br />

When you do so, <strong>Director</strong> displays:<br />

The x-, y- and z-axes for the model<br />

The model's boundingSphere. This is the smallest sphere that can contain all the vertex points in the model.<br />

The image below shows the result. Note that the statement shown in the Message window has exactly the same effect<br />

as the statement quoted above.<br />

Last updated 8/26/2011<br />

26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!