PerlinNoise3

from panda3d.core import PerlinNoise3
class PerlinNoise3

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

Inheritance diagram of PerlinNoise3

__call__(value: LVecBase3d)float
__call__(value: LVecBase3f)float
__call__(x: float, y: float, z: float)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.

noise(x: float, y: float, z: float)float

Returns the noise function of the three inputs.

setScale(scale: LVecBase3d)None

Changes the scale (frequency) of the noise.

setScale(scale: LVecBase3f)None

Changes the scale (frequency) of the noise.

setScale(scale: float)None

Changes the scale (frequency) of the noise.

setScale(sx: float, sy: float, sz: float)None

Changes the scale (frequency) of the noise.