小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

Away3d教程集合.

1.Away3D Surface Tracking tutorial

butterflies

This tutorial shows you how to use the Animator class using the Away3D 1.9.4 library or higher.

The Animator class allows you to generate one or more series of animation sequences and add them to the internal animation system. It could be described as a runtime md2 generator - a vertex animation format.

The vertex animations are updated at a given fps (a user defined framerate per second). The object can have one or more logical sequences, and each sequence is defined by a prefix string. Keyframes (the vertex geometry for a single frame of a sequence) in a sequence are identified by the same prefix string and a number; for instance a walk sequence would be defined as prefix: “walk”, each keyframe would then use the naming convention prefix+increment to give ‘walk0′, ‘walk1′, ‘walk2′ etc…

Read more | Demo

2.Away3D Surface Tracking tutorial

reader1

This tutorial shows you how “read” the height of an Elevation mesh in order to place or move objects on it’s surface using the Away3D 2.0 library or higher.

We assume here you already know how the elevation class works, see the tutorial
How to create an elevation for more details on the Elevation class.

A word on the concept and how it works
The ElevationReader class manages surface tracking using exactly the same parameters as the Elevation class. For obvious reasons it must use the same elevation source BitmapData as well. Both classes share the same principles of color measurement, but this class does not generate any 3d objects. The ElevationReader class generates its own version of the elevation mesh but in a BitmapData form, a smooth shaded interpretation of the mesh based on the source passed to the ElevationReader class. Between each point defined on x - x1 and y - y1, the class draws gradients between the color values along the x and y axes.

Read more | Demo

3.Away3D Fog filter tutorial

fog1

This tutorial shows you how to use the fog filter using the Away3D 2.0 library or higher.

A little word on the fog filter,
The simulation of a saturated atmosphere created by the fog filter is not only there to enhance the graphical look of a scene, it’s also a very good way of improving the rendering performance of your project. At it’s heart, the fog filtering processes a depth filter as well. In other words, according to your fog filter maxZ property, all faces at a distance greater than this value are not processed by the renderer. The fog filter reaches a 100% alpha value at this given depth value, which equates to a solid 100% color. Note that a ZDepth filter class is also available if you do not wish to use the fog but benefit from the depth filtering.

Read more | Demo

4.Away3D Lathe tutorial

lathe1

This tutorial shows you how to use the Lathe class using the Away3D 1.9.4 library or higher. The class is located in the extrusions package.

A word about the Lathe class
The Lathe class allows you to generate a mesh at runtime from an array of Number3Ds rotated around a given axis. With it, you can generate simple shapes like a cylinder, or more visually complex ones like a bottle, glass, vase or spring. It also offers the ideal solution to generating a panoramic skyline where the mesh needs to take up only a portion of the screen, but creates a 360° environment.
As well as a great diversity of properties, generation can be easily automated allowing you to create shapes from an xml definition file, DB, webservice etc. Since you do not need to load geometry definition files, loading time of your project is reduced when using the lathe.

The class contains a lot of properties that allow you to get many different results from simple changes in the constructor.

Read more | Demo

5.Away3D and WoW: getting started

wow

How do you couple Away3D and the WoW engine?
It’s not very complicated since both libraries do pretty much the whole work for you.
So for once, I’ll just place the source .as (ported from Jerome’s latest post) to demonstrate how they work together.

More info: join the WOW engine google group

You can download the source of this little demo here….

Note that you will need to have the Away3d, WoW and the Polygonal labs libraries installed on your machine to be able to compile.

Read more | Demo

6.Away3D Elevation

elevate1

Many have requested tutorials, so here is my first one!

This tutorial shows you how to create an elevation using the Away3D 1.9.4 library or higher.

In the extrusion package there is a class called Elevation, which is a companion of the SkinExtrude class. This tutorial will show you how they work together.

A little word on the SkinExtrude, (a dedicated tutorial on this class will be soon available). The SkinExtrude class does only one thing: connect a collection of Number3D, points in 3D space with x, y and z values. It generates a mesh between them and you can define how detailed you want the subdivision of the surface.

Elevation is a class that reads channel information of a BitmapData object, and generates a series of points (Number3D values) based on the color value and the elevation factor passed to the generate method. By itself, the class just returns a multidimensional array containing those points in space.

So what can we do with this data? Well in this case, just pass it to the SkinExtrude class, and like magic, the engine will render those points linked to each other as an elevated mesh, no coding required.

Read more | Demo

7.Away3D Object Tutorial

objects

Although it may seem like a very straight forward thing to do, I thought I’d put together a little tutorial/demo to demonstrate the creation of the basic objects from Away3D (build V1.9.4). I have created a simple interface that renders 3 instances of each object depending on the type selected from the drop-down list. As usual, with all my Flash efforts so far, this is built in pure ActionScript 3.0 code using FlashDevelop 3.0. I am currently useing the beta 5 version. I have also made use of the 3rd party AsWing library to provide the UI controls as ti is open source and came up in a Google search.

Read more

8.Flash Player 10 3D versus Away3D

3dcomp

One of the most exciting new features of the new Flash Player is the native 3D support. I put together a couple of demos to compare FP10’s 3D performance versus the ‘old-school’ approach, using the Away3D library (I didn’t have time to build a PaperVision example, but I imagine the performance would be similar to the Away3D one).

Read more

9.Using Away3D inside a Flex application or RIA

awayFlexList

I’ve been doing a bunch of Away3D tutorials for Flashmagazine lately. On Flashmag, I’m not focusing on using it with the Flex Framework. It’s rather a set of introductory tutorials. Yesterday I wrote some Flex code after I saw a question about this in the Away3D forums. Posting it here in case others find it useful.

Read more

10.Setting up Away3d with Flex

img1

In this tutorial I will show you how to set up a simple away3d scene, taking advantage of FlexBuilder’s enhanced programming interface. I will also take advantage of the tutorial to introduce Flex to Flash developers who have never used it.

The result is THIS and you can download the source HERE.

Read more

11.Getting Started with Adobe Flex and Away3D

9-5-2008 5-11-27 AM

here on the blog we are always looking for new technologies to play around with and I seem to have found one that I am going to be spending some time playing with, Away3D (a 3D Flash engine). Personally, I have spent a good deal of my time in the last couple of years looking at 3D, whether it be on the desktop or web, and it is exciting to finally play around with 3D in Flex. The goal of this tutorial is simple, to get you acquainted with Away3D and get a spinning cube rendered on the screen. This is going to be easier than you think.

Read more

12.Create the Earth and heavens in less than an hour with Away3D

earth3D2_250x213

3D is one of the many cool things made possible with Flash Player 9 and the super fast Virtual Machine. This tutorial will show you how to create a realistic looking interactive earth, complete with a sun and a starlit sky. Scared? Don’t be - it’s easy with Away3D!

3D is all the rage in the Flash community these days. There are several engines available and each has strengths and weaknesses. Carlos Pinho has compiled a nice list of what’s available. For this tutorial, we’ll use the engine called Away3D that can produce some really beautiful results.

Read more

 

 

来自:http://www.lemlinh.com/flash-tutorials-away3d-tutorials-roundup/

posted on 2008-11-07 12:24  『小小菜鸟』  阅读(7533)  评论(0编辑  收藏  举报