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 cool effects with animated normal maps

As you already know, normal maps allow us to fake a high detail appearance on actually low poly geometry. Furthermore, in correlation with some unique shaders such as Fresnel (FresnelPBMaterial), which we have already discussed in Chapter 1, normal maps can yield an effect of water surface waves by distorting the primary texture and producing reflections based on an environment map. For this, Away3D has got a utility called WaterMap, which extends bitmap data and animates a tiled composed texture by drawing each tile in a sequence. This utility comes in very handy if we want to animate the waves, but its functionality may be also extended to other purposes as you will see shortly.

In this recipe, ...

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