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

Using a single MovieClip for multiple materials

As we said, the optimization is an essential part of working with materials. Although the optimization is not a major topic of this chapter, you should know that some of the materials have built-in functionality that can help you in improving the overall performance of the application. Let's imagine the following scenario. You have a room in which the walls consist of planes. Each plane should have a different texture. Normally you would create one MovieMaterial that accepts a single MovieClip as its texture having four textures, in our cases, loaded into the application. Well, in a different case, you may have many more walls and each loaded texture adds to the overall application weight. MovieMaterial ...

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