Away3D 3.6 Essentials
eBook - ePub

Away3D 3.6 Essentials

Matthew Casperson

Share book
  1. 400 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Away3D 3.6 Essentials

Matthew Casperson

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Away3D is one of the most popular real-time 3D engines for Flash. Besides creating various detailed 3D environments you can also create animated 3D scenes, use various special effects, integrate third-party libraries, and much more. The possibilities of using this engine are endless. But will you be able take full advantage of all these features and make a 3D application that is picture perfect?

This is the best book for guiding you through Away3D, and the possibilities it opens up for the Flash platform. You'll be able to create basic 3D objects, display lifelike animated characters, construct complex 3D scenes in stunning detail, and much more with this practical hands-on guide.

Starting with the very basics, this book will walk you through creating your first Away3D application, and then move on to describe and demonstrate the many features that are available within Away3D such as lighting, shading, animation, 3D text, model loading and more. With the help of this comprehensive guide to all the information you ever needed to use Away3D, you'll find yourself creating incredibly detailed 3D environments in no time.

You begin with an overview of downloading the Away3D source code and configuring various authoring tools like Flex Builder, Flash Builder, FlashDevelop, and Flash CS4. Next you ease your way through creating your first primitive 3D object from scratch, then move on to creating stunning 3D environments with incredibly detailed textures and animations. You will make applications react to mouse events, with the click of a mouse - literally, learn ways to focus your camera and perfect your creation by viewing it from all angles, and take your Away3D application to the next level by overcoming the limitations in default Away3D algorithms. You will also learn optimization techniques to obtain the best performance from Away3D, without compromising on visual appeal.

Create stunning real-world 3D Flash applications, right from displaying your first sphere to creating entire 3D cities, with plenty of tips to help you avoid common pitfalls

Approach

Away3D is an impressive technology, and this book is focused on showing you how to create practical and fun 3D Flash applications with plenty of step-by-step examples, tips to help you avoid common mistakes, plain English explanations of the concepts and techniques used by Away3D, and honest advice to help you understand some of the inconsistencies in the Away3D code base.

Who this book is for

This book is meant for beginners as well as experienced Flash developers who are looking to create 3D applications in Flash using the Away3D engine. Whether you are using Away3D for the first time or are a seasoned developer, this book will provide you with a solid foundation in taking Flash to the next dimension. It can also be used as a reference guide by Flash developers who are already familiar with Away3D.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Away3D 3.6 Essentials an online PDF/ePUB?
Yes, you can access Away3D 3.6 Essentials by Matthew Casperson in PDF and/or ePUB format, as well as other popular books in Computer Science & Digital Media. We have over one million books available in our catalogue for you to explore.

Information

Year
2011
ISBN
9781849512060
Edition
1

Away3D 3.6 Essentials


Table of Contents

Away3D 3.6 Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Building Your First Away3D Application
Choosing between Away3D for Flash Player 9 or Flash Player 10
Downloading Away3D
Downloading the source ZIP file
Downloading the source using SVN
Using TortoiseSVN
Creating an empty project for Away3D
Adobe Flex Builder or Flash Builder
FlashDevelop
Adobe Flash CS4
Targeting the Flash Player 10 runtime
Adobe Flex Builder and Adobe Flash Builder
FlashDevelop
Adobe Flash CS4
Creating the initial application
Running Away3DTemplate
Adobe Flex Builder and Adobe Flash Builder
FlashDevelop
Adobe Flash CS4
The end result
Positioning objects in a 3D scene
Extending Away3DTemplate to populate the scene
Running SphereDemo
Adobe Flex and Adobe Flash Builder
FlashDevelop
Adobe Flash CS4
The end result
Summary
2. Creating and Displaying Primitives
The basic elements of a 3D object
Vertices
Triangle faces
Sprite3D
Segments
UV coordinates
Creating primitive 3D objects
Common init object properties
Cone
Cube
Cylinder
Geodesic sphere
Grid plane
LineSegment
Plane
RegularPolygon
RoundedCube
SeaTurtle
Skybox
Skybox6
Sphere
Torus
Triangle
Trident
Summary
3. Moving Objects
Global, parent, and local coordinate systems
World space
Parent space
Local space
Transformation functions / properties and their coordinate systems
Modifying position
The x, y, and z properties
The position property
The move functions
The moveTo() function
The translate() function
Modifying rotation
The rotation init object parameters
The rotation properties
The rotateTo() function
The eulers property
The rotate() function
The lookAt() function
The pivotPoint property
The movePivot() function
The scenePivotPoint property
The pitch(), roll(), and yaw() functions
Modifying scale
The scale init object parameter
The scale() function
The scaleX, scaleY, and scaleZ properties
Modifying the transform
Tweening
Nesting
Summary
4. Z-Sorting
The painter's algorithm
Sorting the scene
Adjusting the sorting order
The pushfront and pushback properties
The screenZOffset property
The ownCanvas property
A note about Z-Sorting
Additional renderers
Summary
5. Materials
The difference between textures and materials
Resource management
Defining colors in Away3D
By integer
By string
Pixel Bender
Lights and materials
Shading techniques
Texture mapping
Normal mapping
Environment mapping
Flat shading
Phong shading
Applying materials
Basic materials
WireColorMaterial
WireframeMaterial
ColorMaterial
Bitmap materials
BitmapMaterial
TransformBitmapMaterial
Animated materials
MovieMaterial
AnimatedBitmapMaterial
Interactive MovieMaterial
Composite materials
DepthBitmapMaterial
EnviroBitmapMaterial
EnviroColorMaterial
Light materials
WhiteShadingBitmapMaterial
ShadingColorMaterial
PhongBitmapMaterial
PhongColorMaterial
PhongMovieMaterial
Dot3BitmapMaterial
Pixel Bender materials
Dot3BitmapMaterialF10
PhongPBMaterial
PhongMultiPassMaterial
FresnelPBMaterial
CubicEnvMapPBMaterial
Loading textures from external files
BitmapFileMaterial
Using the TextureLoadQueue
Summary
6. Models and Animations
3D formats supported by Away3D
Exporting 3D models
Exporting from 3ds Max
Exporting from MilkShape
Exporting from Sketch-Up
Exporting from Blender
A note about the Collada exporters
Loading a 3D model
Animated models
MD2ā€”Loading an embedded file
MD2ā€”Loading an external file
Colladaā€”Loading an embedded file
Colladaā€”Loading an external file
ASā€”Loading a converted model
Static models
3DSā€”Loading an embedded file
3DSā€”Loading an external file
AWDā€”Loading an embedded file
AWDā€”Loading an external file
KMZ
ASEā€”Loading an embedded file
ASEā€”Loading an external file
OBJā€”Loading an embedded file
OBJā€”Loading an external file
The problem with init and Init objects
Converting a loaded model to an ActionScript class
Summary
7. Camera...

Table of contents