Fractal Landscape Generator Fractal Landscape Generator
By Keiji Ikuta(Jul. 5, 2001)
 H > P > Fractals > this page: bottom (Group)
Overview
The worlds generated by fractal algorithm.
This program is built with KWlib-3D.

Basic Algorithm
  1. Create array, whose size is 2^n+1, clear with zero. For example, I create 9x9 array as below.
    Step-1
  2. First "step number" is 4. (half of initial array width).
  3. Generate random number for points whose coordinate is divisible by 4.
    Step-3
  4. Next "step number" is 2. (half of 4).
  5. For each points, calculate number as arithmetical average of points around.
    And change slightly by adding random number
    Step-5
  6. Repeat until "step number" becomes 1.

Sample outputs
  1. World1
    Using each points as height and paint it according to its height.
    World1

  2. Cloud-1
    Using each points as value of brightness
    Cloud-1

  3. Cloud-2 (Tiled)
    When calculating edge of points, calculate average with opposite side of array as if it is continual.
    Cloud-2

Valid HTML 4.01!Valid CSS!