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 terrain

If you develop a game of the first/third person shooter or quest type, it is likely that you will need to create an outdoor terrain so that your characters could roam in it. Prefab includes a Terrain Generator editor which allows you to create a terrain surface in a matter of seconds. This recipe explains how to use it.

Getting ready

Make sure you have the latest version of Prefab installed on your machine. You can download the program from http://www.closier.nl/prefab/.

In order to generate a terrain, we also need a height map. Go to this chapter's assets folder and copy HeightMap.png into your project assets directory. Alternatively, you can use Photoshop to generate a quick height map for mountainous topography using the Clouds ...

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