Abstractprimitive Class, 149–150 Actionscript, 193 Active Drawing
Total Page:16
File Type:pdf, Size:1020Kb
Index AnimatingAlongPaths class, 198 A AnimationLibrary object, 204 AbstractPrimitive class, 149–150 away3d.core.geom package, 197 ActionScript, 193 away3d.loaders package, 202 active drawing position, 127 Bézier curves, 197 addChild(), 10, 25, 32 bones animation, 207 addEventListener(), 15 Chapter09SampleBase class, code listing, addFace(), 154 194 addSegment(), 129 COLLADA animations, working with, 207 alignToPath property, 201 _createScene(), 196, 199 ambient component, 100 Debug class, 205 AmbientLight3D class, 98–99 ENTER_FRAME event handler, 193 animated materials Flash and, 193 AnimatedTexture class, 117 flash3dbook.ch09.misc package, 194 enabling interactivity, 117 frames, definition of, 193 interactive property, 116–117 GenericTweener class, 194, 197, 201 InteractiveTexture class, 117 GTween, 194 MovieMaterial class, 116 importing 3D animations, 202 smooth property, 117 keyframes, definition of, 193 UsingAnimatedMaterials class, code listing, Loader3D class, 203 116 MD2 animations, working with, 202 VideoMaterial class, 118 Number3D objects, 197, 199 See also extrusion tools; geometry offset property, 201 AnimatedTexture class, 117 Path class, 197 animation path tweening, 197 ActionScript, animating in, 193 PathAnimator class, 197–198, 200 alignToPath property, 201 plane primitive, 196 animating objects in a straight line, 197 progress property, 198 251 INDEX pushback property, 196 away3d.exporters package scale(), 196, 199 outputting 3D data as an ActionScript class, spline, definition of, 197 63 target, 197 away3d.lights package, 98 trace(), 205 away3d.loaders package, 62, 133, 202, 207 tween(), 197 away3d.materials package, 87, 95, 111 tween, definition of, 193 away3d.materials.utils package, 234 Tweener, 194 away3d.primitives package, 11, 48, 51, 137, 149 tweening, 193 away3d.sprites package, 48, 69 tweening engines, 194 AWAY3D_SRC path variable, adding to project TweeningIn3D class, 196 linked libraries, 6 TweenLite, 194 axial symmetry, definition of, 48, 161 Tweensy, 194 axis property, 162 using an ActionScript 3.0 tweening engine, axis, definition of, 21 195 UsingMD2Animation class, 202 yUp property, 196 B See also COLLADA animations; MD2 back-face culling, 153 animations; tweening bothsides property, 224 animation techniques, automatic caching definition of, 52, 223 system, 14 when to disable, 224 AntennaBitmap class, 78 Bézier curves, 122, 197 ape_normals.jpg, 110 bilinear interpolation, 91 AppleImage texture, 92, 94 billboard, definition of, 48 arcane namespace, 150, 182 bitmap filter effects, 68 arc-length parameterization, 144 bitmap materials, 91 arcLengthPrecision property, 144 BitmapAsset class, 78 armature, defining, 210 BitmapData class, 11, 88, 180 AS3Exporter class, 63–64, 76, 235 BitmapInstanceTest class, code listing, 237 assets.swf, 67 BitmapMaterial class, 11, 88, 93, 158 Away3D Blender, 64, 90 choosing your version of Flash, 2 bones animation, 207, 210 FDT, using, 5 bothsides property, 52, 160, 224, 226, 229–230, Flash CS4, using, 2 232 FlashDevelop, using, 6 boundingRadius property, 227 Flex Builder, using, 3 Bresenham line algorithm, 122 Flex SDK, using, 7 brightness property, 100, 104 Google Code, 1 buildPrimitive(), 149, 151, 153, 155–157 setting up a project’s tool chain, 2 bump map, 107 source code library, downloading, 1 ByteArray class, 134 Away3D drawing API, 123 away3d.cameras package, 36 away3d.cameras.lenses package, 23, 245 C away3d.containers package, 20, 25 away3d.core.base package, 48 camera away3d.core.base.Object3D class, 20 adjusting the amount of perspective away3d.core.clip package, 27, 224 distortion and scaling, 39 away3d.core.geom package, 141, 160, 197 aiming at objects, 41 away3d.core.utils package, 93 away3d.cameras package, 36 away3d.events package, 175 away3d.cameras.lenses package, 245 252 INDEX camera lenses, changing, 245 extending, 92 camera property, 19, 36 Chapter06SampleBase class, code listing, 124, CameraProperties class, 37–38 126 changing the position of, 37 Chapter07SampleBase class _createCamera(), 37, 39 code listing, 147 creating a hover camera, 89 extending, 155, 161 definition of, 20 Chapter08SampleBase class distance property, 44–45 code listing, 171 extreme wide-angle projections, 246 extending, 177 fish-eye lens, 246 implementing a texture-painting tool, 180 focus property, 20, 36, 39, 246 Chapter09SampleBase class HoverCamera3D class, 43 code listing, 194 isometric projections, 247 extending, 195 lens property, 20, 245, 248 Chapter10SampleBase class, code listing, 217 lookAt(), 41 chessboard.jpg, 172 OrthogonalLens class, 247–248 children property, 30 panAngle property, 44, 91 CLICK event handler, 64 performing a simple camera rotation, 38 clipping property, 224 PerspectiveLens class, 246 clipping, definition of, 22, 26, 223 polar coordinates, definition of, 45 ClippingTest class, code listing, 225 rotationX, rotationY, and rotationZ closePath property, 161 properties, 38 Closier, Fabrice, 108 SphericalLens class, 246 COLLADA animations steps property, 45 animation loops, 209 TargetCamera3D class, 42 applying rotation to bones, 213 TargetCameraMovement class, 43 away3d.loaders package, 207 tiltAngle property, 44 bone tweening, 210 tracking a moving object, 42 bones animation, 207 traditional perspective projections, 246 Collada class, 207 UsingOrthogonalLens class, code listing, _createScene(), 208, 211 247 creating programmatic animation with bones, UsingSphericalLens class, code listing, 246 209 viewing plane, definition of, 40 defining a rig (armature), 210 zoom property, 20, 36, 39, 246 getAnimation(), 209 ZoomFocusLens class, 246 getBoneByName(), 212 See also light sources handle property, 209 camera control, first-person, 182 Jumping Jack example, 212 camera space (view space), 240 loadGeometry(), 208 Camera3D class, 19–20, 36 _onLoadSuccess(), 209, 211 Cast class, 93, 111, 114 playing a COLLADA animation, 209 centerMesh property, 163 puma model example, 210 Chapter03SampleBase class, 29, 34 rotationZ property, 213 code listing, 23 skeleton.dae, 211 _createCamera(), 25 trace(), 212 _createScene(), 25 using programmatically controlled bones, _createView(), 25 210 extending, 27 UsingColladaAnimation class, 207 _onEnterFrame(), 25 See also animations; MD2 animations; Chapter04SampleBase class, code listing, 48 tweening Chapter05SampleBase class color materials, 91 code listing, 88 color property, 100 253 INDEX ColorMaterial class, 88, 93, 124 E CombinedWireAndRegularCube class, 56 CommonPrimitives class, 51 elements, definition of, 47 CommonWirePrimitives class, 55 Embed metatag, 78, 93, 172 constructors, 12 ENTER_FRAME event handler, 193 continuous curve, defining, 142 ENTER_FRAME listener, 75 continuousCurve(), 142 EnviroBitmapMaterial class, 114 coverAll property, 161 EnviroColorMaterial class, 114 _createCamera(), 25, 41 environment shading _createChildren(), 77 definition of, 113 _createContent(), 75, 81 environment mapping, 113 createFace(), 154, 157 environment.jpg, 113 _createLights(), 103–104, 110 panoramic projections, 114 createMaterial(), 71 reflectiveness property, 115 _createMaterials(), 90, 93, 95 See also flat shading; normal map shading; _createPoly(), 60 shading; shading materials _createScene(), 25, 29–30, 50–51, 75, 90, 158, EnvironmentMaterials class, code listing, 113 162, 164, 173, 196, 199, 208, 211 execute(), 144, 166 createVertex(), 154 extractFont(), 137 _createView(), 25–26, 50, 89, 172 ExtrudingTextField3D class, code listing, 139 creating level-of-detail containers, 221 extrusion tools creating procedural 3D content, 147 away3d.core.geom package, 160 Cube class, 11–12, 52 bothsides property, 160 cube primitive, 52 closePath property, 161 creating, 90 coverAll property, 161 cube_normals.jpg, 110 creating a ribbon, 159 CubeTexture class, 238 extruding, definition of, 159 culling, definition of, 223 Path class, 160 currentTarget property, 84 PathExtrusion class, 159–160 curveTo(), 122 profile, 159 spline, 160 subdivision property, 160 D UsingPathExtrusion class, 160 .dae files, 47 See also animated materials; geometry Debug class, 205 depth property, 53 F diffuse component, 100 directional light sources, 99 face, 48 DirectionalLight3D class, 98–99, 103 Face class, 48, 124, 129 distance property, 44–45 face normal, 106 document class, 9 far-field clipping, 224 DOT3 bitmap material, 233 FDT DOT3 shading, definition of, 106 adding the AWAY3D_SRC path variable to Dot3BitmapMaterial class, 111 project linked libraries, 6 double-sided geometry, 229 configuring for use with Away3D, 5 draw(), 181 New Flash Project wizard, 5 drawPath(), 142 file property, 118 filters property, 84 first-person camera control, 182 FirstPersonCamera class, 183, 186, 188 254 INDEX fish-eye lens, 246 G Flash ActionScript, animating in, 193 GenericTweener class, 194, 197, 201 animation in, 193 geometry ENTER_FRAME event handler, 193 3D models, using effectively, 228 frames, definition of, 193 away3d.core.clip package, 224 keyframes, definition of, 193 back-face culling, definition of, 223 tween, definition of, 193 bothsides property, 224, 226, 229–230, 232 tweening, 193 boundingRadius property, 227 Flash CS4 clipping, definition of, 223 ActionScript 3.0 Settings, 2 ClippingTest class, code listing, 225 Flash Preferences pane, 2 creating level-of-detail containers, 221 including Away3D in the class path list, 2 culling, definition of, 223 Flash Professional, 133, 136 double-sided geometry, 229 flash.filters package, 68 far-field clipping, 224 flash3dbook.ch07.primitives package, 149 frustum clipping, definition of, 226 flash3dbook.ch09.misc