|Ada source code: Fractal landscape generator||[ Ada compilers | Dansk ]|
I have written an Ada program for creating fractal LEGO landscapes in LDraw format. The system is split in two parts. The program Fractal_Landscape, which creates a fractal landscape in the form of a gray scale bitmap (in PGM format) and the program PGM_To_LDraw, which translates PGM files to LDraw format.
The latest edition of the system also comes with a demonstration program, which in three steps creats a little coastal landscape:
The demonstration program depends on LDGLite (the command
ldglite-run) and Perl.
The two programs in the package can be translated with the GNU Ada compiler with the following commands:
gnatmake fractal_landscape gnatmake pgm_to_ldraw
The compiled programs should be moved to
su root -c 'mv fractal_landscape pgm_to_ldraw /usr/local/bin'
You can read the source code on-line and there are Ada compilers for a variety of operating systems on the AdaIC web site. You can learn about Ada in the
Ada Programming wikibook.
Now with centered models and better handling of large maps.
Now with demonstration program and edges which reach "down to the ground". Examples of the output from the demonstration program: