panda3d.core.StackedPerlinNoise3

class StackedPerlinNoise3

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

__init__() → None

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

__init__(copy: StackedPerlinNoise3) → None

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

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

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

assign(copy: StackedPerlinNoise3) → StackedPerlinNoise3
Return type

StackedPerlinNoise3

clear() → None

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.