panda3d.core.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

__init__() → None

Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.

__init__(copy: PerlinNoise3) → None

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) → None

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
Return type

PerlinNoise3

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.

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.