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

Loading and parsing models (DAE, 3ds, Obj, MD2)

Before we can start to manipulate external models in Away3D, we need to load them first into our application. Most of the Away3D supported formats are basically plain text (ASCII) files. Flash needs to load all that data first and only after the loading has completed, the Away3D relevant format parser starts to convert that data into actual geometry information. In this recipe, we see how to bring into scene different types of model formats using Away3D loading and parsing tools.

Getting ready

Let's export our lovely Spy model to the following formats: DAE, Obj, 3ds, and MD2. You can find already exported versions of the model inside the assets/ SpyDifferentFormatsExport folder of this chapter.

Set ...

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