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

Creating lens flair effects

Lens flair effects may be useful in the scenes with outdoor environment when you have got a daylight skybox setup. This way, you can add more realism to such a scene in a way that when the user's camera turns in the direction of the light source, it would be affected by the lens flair effect coming from the same direction. In this recipe, you are going to learn how to set up a lens flair effect using Away3D's built in LensFlair tool.

Getting ready

Set up a basic Away3D scene extending AwayTemplate.

Away3D LensFlair class requires external graphics input for the flair (halo) rings. Make sure you connect to your project graphicsLib.swc file that contains a set of halo rings created initially using Adobe illustrator's ...

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