Using Third-Party 3-D Software


Both Swift 3D and Vecta3D are nifty and inexpensive little programs that any Flash developer can afford as part of a toolkit. These packages enable you to quickly import and animate 3ds objects, EPS or AI files, primitive shapes , or text and then export the animation as an SWF for use in Flash.

Although both programs allow you to animate models of significant complexity, they're most effectively used for simpler, low-polygon (surface facets) shapes that work well with rotational type animations.

Aside from being fast and easy to use, one of the greatest benefits of these tools is that they automatically generate frame by frame the effect of light, color , and motion in a way that would be extremely difficult, if not impossible , to do by any other means. At the same time, after they're imported into Flash, the shapes and animations remain completely editable. For the examples, you'll use Swift 3D, but Vecta3D would handle the project very nicely as well.

Animating a File Using Swift 3D

Because you might not have Swift 3D installed on your system, this is just an overview of how to take a static file originally created in 3D Studio and quickly animate it using Swift 3D. The process would be very similar for Vecta3D. If you're going to work through these steps using Swift 3D, it's a good idea to take a look at the finished product so that you understand what you're attempting to create. To see the rotating panel in action, double-click the readout.swf file in the Chapter 12/Assets/3D folder. When you've had a look at the file, close it and open Swift 3D. (See Figure 12.5.)

Figure 12.5. The Swift 3D interface displays the New File Wizard dialog box.

graphics/12fig05.gif

  1. Create a new Swift 3D document (File, New), and select Create a New Swift 3D Document by Importing an Existing 3D Studio File from the New File Wizard dialog box.

  2. Click the Browse button, and browse to the PlateINTERFACE.3DS file in the Chapter_12/Assets/3D folder. This file was created in 3ds max. Click Import and then Finish. (See Figure 12.6.)

    Figure 12.6. The PlateINTERFACE.3DS file has been imported into the Swift 3D editing environment.

    graphics/12fig06.gif

  3. Add color to the imported object by dragging one of the red color spheres onto the model on the Stage.

  4. Extend the timeline to frame 20.

  5. You can use a drag-and-drop behavior to get your model to rotate vertically. Select Vertical Up from the Regular Spins, and drag it onto your model. This creates a 40-frame 360 rotation.

  6. Press the Play button to watch your image rotate. You need only 180 from this sequence, so click the Stage to deselect your object and drag the keyframe in the Position layer from 40 to 20.

  7. Save the file as a T3D (Swift 3D) file first, and then export it as an SWF (Flash Player 5) file using the usual menu commands (File > Export). Name your new SWF file readout.swf. When you export it as an SWF, you'll be able to watch each frame render as a wire-frame version of the model.

At this point, you're ready to import the new SWF file into Flash.



Inside Flash
Inside Flash MX (2nd Edition) (Inside (New Riders))
ISBN: 0735712549
EAN: 2147483647
Year: 2005
Pages: 257
Authors: Jody Keating

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net