| ★ APPLICATIONS ★ CREATION GRAPHIQUE ★ FRACTAL LANDSCAPE GENERATOR (AMSTRAD COMPUTER USER) ★ |
Fractal Landscape Generator (ACU 89/11)![]() | Fractal Landscape Generator (ACU 89/12)![]() | Fractal Landscape Generator (ACU 90/01)![]() | Fractal Landscape Generator (ACU 90/04) |
Generate your own landscape Dean Cracknell serves up the second course of his three part fractals recipe. ihe Basic program that created the fractal landscape last month takes only a few minutes to calculate and plot the entire fractal. This phase in the creation of the Landscape Generator is replaced by a machine-code version that does the trick in a few seconds. The Machine Code Loader program (Program 1) loads and saves the machine code which, when installed by the Landscape Generator program, adds twelve new commands to Basic's vocabulary. These create the fractal data and generate random numbers for the fractal image. The fractal is now created in memory, rather than in the array ‘height', and this memory is between &8000 and &90FF. You can quickly test this machine code by typing the following at the keyboard: MEMORY &7FFF - reserve space Entering: Program 2 is the first instalment of the Landscape Generator program: type in this program and save it as “prog-1.bas” (part 2 will be listed next month). This will run perfectly as it stands, but does not perform the 3-D image projection (yet). This is an expansion of last month's program and introduces a keyboard scan loop for changing certain parameters around the system. The keyboard options so far are as follows: [cursors-keys]: Move over the landscape, [SHIFT] will step 10 and [CONTROL] steps 30. [U] and [D]: Move up and down, [SHIFT] moves 10 and [CONTROL] moves 100. The screen area is divided into 3 sections: the main image area where the landscape will be projected; the contour map area; and the data area that displays some of the more relevant landscape data. The information shown in this last screen areas is as follows:
The next instalment gets down to the nitty-gritty of 3-D image projection (you will not need the special red and blue glasses, it is not that kind of 3-D projection), and adds the finishing touches to the Landscape Generator.# ACU |
| ![]() |
|