StackedPerlinNoise3

from panda3d.core import StackedPerlinNoise3
class StackedPerlinNoise3

Bases:

Implements a multi-layer PerlinNoise, with one or more high-frequency noise functions added to a lower-frequency base noise function.

Inheritance diagram

Inheritance diagram of StackedPerlinNoise3

__call__(value: LVecBase3d) float
__call__(value: LVecBase3f) float
__call__(x: float, y: float, z: float) float
__init__()

Creates a StackedPerlinNoise3 object with no levels. You should call addLevel() to add each level by hand.

__init__(copy: StackedPerlinNoise3)

Creates an exact duplicate of the existing StackedPerlinNoise3 object, including the random seed.

__init__(sx: float, sy: float, sz: float, num_levels: int, scale_factor: float, amp_scale: float, table_size: int, seed: int)

Creates num_levels nested PerlinNoise3 objects. Each stacked Perlin object will have a scale of 1 scale_factor times the previous object (so that it is higher-frequency, if scale_factor > 1), and an amplitude of amp_scale times the previous object (so that it is less important, if amp_scale < 1).

addLevel(level: PerlinNoise3, amp: float)

Adds an arbitrary PerlinNoise3 object, and an associated amplitude, to the stack.

assign(copy: StackedPerlinNoise3) StackedPerlinNoise3
clear()

Removes all levels from the stack. You must call addLevel() again to restore them.

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.