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

Working with LOD objects

LOD (Level Of Detail) objects is a widespread concept in real-time game engines. The basic idea behind it is that the further the object from the player position, the lower its level of detail. This way, you reduce the number of faces to be rendered on the distant objects which don't even need that level of detail because they are hardly visible by the viewer anyway. You may find this technique useful, especially when constructing big urban scenes. Now let's see how to get it to work.

Getting ready

Set up a default Away3D scene, extending the AwayTemplate class.

Go to the source code directory of Chapter 11 and copy the FPSController.as class (first person camera control utility that we created in Chapter 2).

In your project, ...

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