====== HF_FractalInflate filter ====== ===== Filter info ===== ^ Description | Increase the size of a heightfield using diamond-square fractal interpolation. | ^ Author | [[user>Aaron]] | ^ Plugin | [[bundywiki>plugins:calc:ZG_CalcHF|ZG_CalcHF]] ^ ===== Looks like ===== | {{:plugins:calc:zeograph:filters:hf_fractalinflate.png|:plugins:calc:zeograph:filters:hf_fractalinflate.png}} | ===== Input pins ===== ^ Name ^ Type ^ Default value ^ Description ^ | //hInputHF// | hvar | N/A | A handle to the heightfield to be inflated. | | //hDesignMap// | hvar | N/A | A handle to the design map. | | //nLevels// | int | 1 | The number of levels of inflation. Each level doubles the dimensions of the map. | | //FractalWeight// | float | 100 | A weighting for the strength of the fractal noise to be applied during inflation (see comment below). | ===== Output pins ===== ^ Name ^ Type ^ Description ^ | //hOutputHF// | hmap | A handle to the inflated heightfield. | ===== Options ===== This filter has no options. ===== Comments ===== ==== Fractal weight ==== The fractal weighting at each point in the heightfield is controlled by the 'frac' parameter of each pixel in the design map. The //FractalWeight// parameter in this filter may be used to increase or decrease the overall fractal noise used for the inflation levels across the whole map. Typically, for late-stage inflation near the final resolution of the heightfield, the fractal weighting is decreased to 50.