This category includes composition of sines and cosines (one of the x2ftp plasmas uses this), which are also used in the inverse-FFT method. Other functions which can be used include bicubic and bilinear surface patches; these are fairly straightforward, and resemble Perlin's noise function in concept. Basically you evaluate the function(s) at each surface point, adding "higher frequencies" with progressively smaller scales. Remember to reduce the amplitude of higher levels of detail, just like with subdivision.
In this method, multiple functions (usually sine or cosine) are added together to yield the height for each point. Multiple "octaves" are used, with adjustable phase and amplitude for each octave. The advantage is that the height at each location can be obtained at any time, independent of it's neighbors; the disadvantage is that the calculations are typically more expensive than subdivision methods.
Advantage: with the right functions, this can be extended an indefinate distance in any direction, and the surfaces are generally smoother. Also can have better control over the basic features of the landscape.
Disadvantage: Can take lots more computation than subdivision. Can also give a repeating pattern to the landscape if you're not careful. Making the periodicity of the function (e.g., table size if you're using table lookups) prime relative to the map size.
Up to the terrain synthesis page
Back to my home page
© 1996 firstname.lastname@example.org