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

Fixing geometry artifacts with Frustum and NearField clipping

One of the most stumbled on and irritating artifacts is the disappearance of faces in the region of NearField clipping (regions close to the screen boundary). These are known as clipping artifacts. If you work on a third person shooter or a racing game, you will certainly encounter that weird geometry disappearing close to the camera boundaries. The problem is that the default clipping in Away3D is RectangleClipping, which removes any face whose vertices fall outside x and y of the defined clipping boundaries. In order to solve this, we need to use more advanced clipping classes such as NearfieldClipping or FrustumClipping which reside inside the away3d.core.clip package. Let's see ...

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