My experiments with Geomorph derived on this technique, and the results seemed good enough to create a kit based on the environment of the Project Tierra. But last summer, when I had it almost finished, I lost inspiration due to some problems with the technique, and I abandoned it. Now I returned to this project to finish it at last, and here are the results.
The idea is to create landscapes with isosurfaces based on height fields, adding detail with pigment functions. The main motivation was to be able to add detail only on the vertical parts, not into the flat areas of the landscape. This is normally not possible, as there isn’t any internal function to get the isosurface slope. But we can use a heightfield bitmap as main function for the isosurface, and use the slope information of the heightfield to add the detail to the isosurface.
And as a picture is worth a thousand words, here are some to illustrate the technique: the first image shows the isosurface using the heightfield as the only funtion of the isosurface (it took 3 minutes); the second image adds turbulence to the heightfield function (and took 7 minutes); the third image adds also the slope-based detail (24 min.); finally, the last image is a veriant or the third with some faked forest (1h13m).
The results are far from perfect nor fast, but at least you can get more natural-looking landscapes: soft on the flat areas and rocky on the vertical parts. The ZIP file contains a demo for the technique, and some auxiliar scenes to generate the bitmaps. Look at the included README.txt and the code comments for more details.
Just added some more shots I did later in 2008, and also others with a nice plane model that Ian MacKay kindly sent to me last year. I wanted to add a fake pilot into it, but then I got some Real Life attack, and also his code was, much like mine, difficult to read… perhaps because we both use a lot of trial&error with CSG objects.
Credits: The castle used on the image ”hf2iso-070220-1.jpg” is a model downloaded from Time Ref, a medieval history site with some castles in POV-Ray format.