O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Morphing objects

Dynamic deformation, or morphing of 3D mesh surface, is a widely-used technique in 3D content development. That can be achieved via several ways. You can morph the geometry by moving individual vertices or faces manually. A more elegant and easier way is to use specially developed modifier libraries such as AS3DMOD for this purpose. (See Chapter 10, Integration with Open Source Libraries). However, before you run for a non-Away3D solution, you should know that the library has reserved a special class named Morpher that resides in the core.base package.

In the following example, you will learn how to morph a sphere primitive in runtime using the Away3D Morpher tool.

Getting ready

Set up a new Away3D scene using AwayTemplate as the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required