5.5. Vector-Based 3D Graphics

Problem

You want scalable 3D vector graphics and control over individual elements within the Flash authoring environment.

Solution

Render and Export vector graphics with the SWFT format and SmartLayer technology.

Discussion

As you no doubt know by now, one of Swift 3D’s core features is its ability to render and export to a variety of vector formats, including SWF, AI, EPS, SVG, and SWFT. You most likely have already heard of or used the first four formats. The fifth, SWFT, is a proprietary export format of Swift 3D. Although it is similar in some ways to a standard SWF, it alone can render an object to different layers depending on specific criteria. Objects in motion, static objects, highlights, shadows, and more can all be assigned to their own layers. These layers are respected when imported to Flash via the SWFT importer that installs with the Swift 3D standalone application.

As an example of how the SWFT file format works, this example renders the first five frames of the animation used in the previous section. To render to SWFT with SmartLayer technology:

  1. In the Preview and Export Editor, click Vector under the Output Options if it is not already selected.

  2. Under the General category, select Swift 3D Flash Importer from the Target File Type drop-down menu, and enable Smart Layer technology by checking the Separate Stationary and Moving Objects box.

  3. Select the fill type of your choice and include Highlights, Reflections, and Shadows as desired. I use Cartoon ...

Get Flash 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.