PacktLib: Away3D 3.6 Essentials

Away3D 3.6 Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Building Your First Away3D Application

Choosing between Away3D for Flash Player 9 or Flash Player 10

Downloading Away3D

Creating an empty project for Away3D

Targeting the Flash Player 10 runtime

Creating the initial application

Running Away3DTemplate

Positioning objects in a 3D scene

Extending Away3DTemplate to populate the scene

Running SphereDemo

Summary

Creating and Displaying Primitives

The basic elements of a 3D object

UV coordinates

Creating primitive 3D objects

Summary

Moving Objects

Global, parent, and local coordinate systems

Transformation functions / properties and their coordinate systems

Modifying position

Modifying rotation

Modifying scale

Modifying the transform

Tweening

Nesting

Summary

Z-Sorting

The painter's algorithm

Sorting the scene

Adjusting the sorting order

A note about Z-Sorting

Additional renderers

Summary

Materials

The difference between textures and materials

Resource management

Defining colors in Away3D

Pixel Bender

Lights and materials

Shading techniques

Applying materials

Loading textures from external files

Summary

Models and Animations

3D formats supported by Away3D

Loading a 3D model

Cameras

The properties of a camera

Camera lenses

Camera classes

Summary

Mouse Interactivity

Away3D mouse events

The difference between ROLL_OVER / ROLL_OUT and MOUSE_OVER / MOUSE_OUT

Projecting the mouse position into the scene

Summary

Special Effects with Sprites

Using the Sprite3D class

Using the DirectionalSprite class

Using the DepthOfFieldSprite class

Using a particle system

Summary

Creating 3D Text

Embedding fonts

Displaying text in the scene

3D Text materials

Warping 3D text

Summary

Extrusions and Modifiers

Creating a flag with the PathExtrusion class

Creating walls with the LinearExtrusion class

Creating a vase with the LatheExtrusion class

Creating terrain with the SkinExtrusion class

Reading the height of a terrain surface with the ElevationReader class

HeightMapModifier

Summary

Filters and Postprocessing Effects

Flash and Away3D filters

Render Sessions

Summary

Performance Tips

Determining the current frame rate

Setting the maximum frame rate

Setting Flash quality to low

Reducing the size of the viewport

Scaling the viewport output

Triangle caching

Level of detail models

Away3D filters

Offscreen rendering

Model formats

Summary

Index