L3DT documentation
Large 3D terrain generator

Fractal inflation

L3DT uses a diamond-square subdivision fractal algorithm to 'inflate' the heightfield during the design/inflate algorithm. This algorithm up-sizes the map by a power of two, and fills in the missing values by linear (or was it cubic?) interpolation, with a fractal perturbation to introduce some noise. The fractal 'persistence' (ie. roughness) of this noise is controlled locally by the interpolated value of the 'Frac' parameter in the design map.

Altogether, the inflation routine expands the design map by a factor such as 64 to make the heightfield1) For example, with a design map resolution factor of 64 (the default setting), each design map pixel is converted into a 64×64 block of heightfield pixels.

1) This factor is set in the design map size wizard.
l3dt/algorithms/hf/inflate.txt · Last modified: 2017/08/31 06:26 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki