A few people asked how i created the terrain in Nimian Garden. I modified Collin Cusce’s original Sandy 3d Terrain class (link offline) to work with a heightmap, or black and white image, that you import into your flash file.
You can download the source files here:
Unfortunately in my version the texture map needs to be rotated before it is imported into flash to match up with the heightmap. With some tweaking perhaps someone will figure out how to fix this. mclelun has fixed the rotation issue in the class, now you can just compile with a heightmap and terrain texture as is.You can export a heightmap from most terrain editors (see below). To get a picture of the texture, i just position the camera above it and look straight down in my terrain editor and render an image to use as a texture.
In the game Nimian Garden i also created a custom loop to handle collision detection when running over terrain. Basically you can do this by reading your position of the heightmap using getPixel, and use that value to set the y position of whatever object you like in your Sandy 3D app.
As for creating the heightmap and the texture itself, there are many options. Try using Vue (free personal learning version is available) or Terragen Classic (free, excellent landscape generator), which i prefer to the also amazing but more complex Terragen 2.