|
| HeightmapOSN (int size, double rad_factor, double noise_scale) |
|
| HeightmapOSN (int size) |
|
| Heightmap (int size) |
|
PImage | getMapImage (PApplet app) |
|
float[][] | grid () |
|
int | gridSize () |
|
float | minHeight () |
|
float | maxHeight () |
|
void | adjustHeights (float low, float high) |
|
void | printMap () |
|
|
OpenSimplexNoise | noise = null |
|
double | fNoiseScale |
|
double | fRds |
|
float[][] | grid |
|
int | gridSize |
|
float | min_height = Float.MAX_VALUE |
|
float | max_height = Float.MIN_VALUE |
|
shapes3d.utils.HeightmapOSN.HeightmapOSN |
( |
int |
size, |
|
|
double |
rad_factor, |
|
|
double |
noise_scale |
|
) |
| |
Create a square tileable heightmap using Open Simplex noise.
A 2D float array is used to hold the height map values. The amount of RAM needed to store the array is 4*size*size bytes so a map size of 1000 would require about 4Mb.
rad_factors in the range 500 - 1000 (default = 500) and noise_scale values in the range 0.002 - 0.008 (default = 0.005)
- Parameters
-
size | the size of the 2D square array |
rad_factor | try values 500 - 1000 |
noise_scale | try values 0.002 - 0.008 |
shapes3d.utils.HeightmapOSN.HeightmapOSN |
( |
int |
size | ) |
|
Create a square tileable heightmap using Open Simplex noise.
- Parameters
-
size | the size of the 2D square array |
The documentation for this class was generated from the following file:
- /Users/peter/git/shapes3d-repos/Shapes 3D/src/shapes3d/utils/HeightmapOSN.java