HighMap library (C++)
Loading...
Searching...
No Matches
recast.cpp File Reference

Namespaces

namespace  hmap
 

Functions

void hmap::recast_billow (Array &array, float vref, float k)
 Transform heightmap to give a "billow" like appearance.
 
void hmap::recast_canyon (Array &array, const Array &vcut, float gamma=4.f)
 Transform heightmap to give a "canyon" like appearance.
 
void hmap::recast_canyon (Array &array, const Array &vcut, const Array *p_mask, float gamma=4.f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_canyon (Array &array, float vcut, float gamma=4.f, const Array *p_noise=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_canyon (Array &array, float vcut, const Array *p_mask, float gamma=4.f, const Array *p_noise=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_cliff (Array &array, float talus, int ir, float amplitude, float gain=2.f)
 Transform heightmap to add cliffs where gradients are steep enough.
 
void hmap::recast_cliff (Array &array, float talus, int ir, float amplitude, const Array *p_mask, float gain=2.f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_cliff_directional (Array &array, float talus, int ir, float amplitude, float angle, float gain=2.f)
 Transform heightmap to add directional cliffs where gradients are steep enough.
 
void hmap::recast_cliff_directional (Array &array, float talus, int ir, float amplitude, float angle, const Array *p_mask, float gain=2.f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_cracks (Array &array, float cut_min=0.05f, float cut_max=0.5f, float k_smoothing=0.01f, float vmin=0.f, float vmax=-1.f)
 
void hmap::recast_escarpment (Array &array, int ir=16, float ratio=0.1f, float scale=1.f, bool reverse=false, bool transpose_effect=false, float global_scaling=0.f)
 Applies an escarpment effect to the given 2D array, modifying its values based on cumulative displacement with optional directional and transpositional transformations.
 
void hmap::recast_escarpment (Array &array, const Array *p_mask, int ir=16, float ratio=0.1f, float scale=1.f, bool reverse=false, bool transpose_effect=false, float global_scaling=0.f)
 Applies an escarpment effect to the given 2D array, with an optional mask to blend the effect.
 
void hmap::recast_peak (Array &array, int ir, float gamma=2.f, float k=0.1f)
 Transform heightmap to give a "peak" like appearance.
 
void hmap::recast_peak (Array &array, int ir, const Array *p_mask, float gamma=2.f, float k=0.1f)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_rocky_slopes (Array &array, float talus, int ir, float amplitude, uint seed, float kw, float gamma=0.5f, const Array *p_noise=nullptr, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f})
 Transform heightmap by adding "rock-like" features at higher slopes.
 
void hmap::recast_rocky_slopes (Array &array, float talus, int ir, float amplitude, uint seed, float kw, const Array *p_mask, float gamma=0.5f, const Array *p_noise=nullptr, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f})
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recast_sag (Array &array, float vref, float k)
 Transform heightmap to give a "cliff" like appearance.
 
void hmap::recast_sag (Array &array, float vref, float k, const Array *p_mask)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.