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

Excluding objects from rendering

This short recipe will teach you the ways to exclude your 3D objects from the rendering process. You may want to be able to stop rendering some of your scene geometry mostly for the sake of achieving a better performance. Fortunately, Away3D does most of the job for you automatically.

Getting ready

Set up a default Away3D scene with AwayTemplate as a base class.

In this example, we make use of GUI controls which are part of a Flash components library developed by Keith Peters and called MinimalComps. Go and get it for free from http://www.minimalcomps.com/. Put the .SWC into your SWC folder or connect it directly to your project.

How to do it...

In the following example, we set up a group of plane primitives, which ...

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