PerlinNoise3
from panda3d.core import PerlinNoise3
- class PerlinNoise3
Bases:
Bases:
PerlinNoise
This class provides an implementation of Perlin noise for 3 variables. This code is loosely based on the reference implementation at http://mrl.nyu.edu/~perlin/noise/ .
Inheritance diagram
- __call__(value: LVecBase3d) float
- __call__(value: LVecBase3f) float
- __init__()
Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.
- __init__(copy: PerlinNoise3)
Makes an exact copy of the existing
PerlinNoise
object, including its random seed.
- __init__(sx: float, sy: float, sz: float, table_size: int, seed: int)
Randomizes the tables to make a unique noise function.
If seed is nonzero, it is used to define the tables; if it is zero a random seed is generated.
- assign(copy: PerlinNoise3) PerlinNoise3
- noise(value: LVecBase3d) float
Returns the noise function of the three inputs.
- noise(value: LVecBase3f) float
Returns the noise function of the three inputs.
- set_scale(scale: LVecBase3d)
Changes the scale (frequency) of the noise.
- set_scale(scale: LVecBase3f)
Changes the scale (frequency) of the noise.
- set_scale(scale: float)
Changes the scale (frequency) of the noise.