Away3D 3.6 Essentials
eBook - ePub

Away3D 3.6 Essentials

Matthew Casperson

Condividi libro
  1. 400 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Away3D 3.6 Essentials

Matthew Casperson

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Away3D 3.6 Essentials è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Away3D 3.6 Essentials di Matthew Casperson in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Digital Media. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2011
ISBN
9781849512060
Edizione
1
Categoria
Digital Media

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

Indice dei contenuti