Background Information
Generating Random Fractal Terrain by Paul Martz. A good overview of the theory behind terrain generation (midpoint displacement and other techniques).
Actionscript 3
An extensive list of links on terrain rendering in Flash by Bruce Jawn
Impressive ones at wonderfl
- Terrain flyer.
- Terrain on 3D globe, with light source
- bumpy planet
- Landscape Map Editor (it takes a bit of time to figure the key controls. Left and right arrows to change the size of the circle, up or mousedown to add terrain, down to remove, z to toggle circle random movements).
Code found on wondefl can be executed within Flex Builder. Create a project File > New ... > Actionscript Project. Make sure that you have the Flex SDK 3.5 installed and that this project makes use of it (Project > Properties > Actionscript Compilers > Flex SDK Version). If Base64Decoder is required for the project to run, download the SDK source for 3.5. Locate mx.utils.Base64Decoder. In your project, create a folder mx/utils/ and copy there the class Base64Decoder. Delete the line that define the resource metadata as this requires the Flex framework (not included in an Actionscript project). Run your project,