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

Removing artifacts from intersecting objects

Generally, it is a bad idea to have different geometry objects intersecting intentionally. The reason for this is that the cleaning of the resulted artifacts is quite difficult and also memory intensive. However, in certain cases you will need to deal with 3D objects intersections, and this recipe is going to show you how to reduce the intersection artifacts to a minimum.

Getting ready

Set up a basic Away3D scene extending AwayTemplate class and you are ready to go.

How to do it...

In the following program, we set up two planes and one cylinder primitive at the same position in order to cause them to intersect. We also create a static plane which serves as floor whereas the rest of the objects intersect ...

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