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 />

3D Method for Text members<br />

member("text member").<br />

extrude3d(member("3D member"))<br />

Adding a text model to a 3D cast member<br />

To add 3D text to a 3D cast member, you can use the textMember.extrude3D() method. This creates an extruder model<br />

resource inside the 3D cast member of your choice. Each character in the text member is converted to a separate mesh<br />

inside the extrude resource. This means that you can apply a different shader to each letter.<br />

Note: You have to apply different shaders manually.<br />

To see an example of this, download the movie 3dExtruder.dir, , and launch it.<br />

The extruder3d() command creates an extruded text model inside a 3D world<br />

The extruder model resource possesses the same properties as the text in a 3D text member. See “Lingo and JavaScript<br />

syntax script for 3D text” on page 62for the full list.<br />

Text in overlays and backdrops<br />

If you want to display 2D text in a 3D sprite, you can create a texture from a bitmap or a text member, and display that<br />

as an overlay or backdrop of a camera. The process for doing this is quite different from the process for creating models<br />

in the shape of 3D text.<br />

See “Text in overlays and backdrops” on page 116 for more information.<br />

Sources of 3D content<br />

Primitives<br />

Creates a new model resource in member "3D world" by extruding<br />

the text in member "text member".<br />

Models are the objects you see in the 3D world. You can create models within <strong>Director</strong>. Spheres, boxes, planes,<br />

cylinders, and particle systems can be created either with Lingo or JavaScript syntax or with <strong>Director</strong> behaviors. These<br />

simple shapes are called primitives. They are the basic shapes from which more complicated models are built.<br />

Last updated 8/26/2011<br />

63

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

Saved successfully!

Ooh no, something went wrong!