Search Results for

    Show / Hide Table of Contents

    Class Noise

    Collection of various noise functions (eg. Perlin, Worley, Voronoi).

    Inheritance
    Noise
    Assembly: FlaxEngine.dll
    File: Engine/Utilities/Noise.h
    Syntax
    public class Noise

    Methods

    CustomNoise(const Float3& p)

    Custom noise function (3D -> 1D).

    Declaration
    public static float CustomNoise(const Float3& p)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    Returns
    float

    Noise result.

    CustomNoise3D(const Float3& p)

    Custom noise function (3D -> 3D).

    Declaration
    public static Float3 CustomNoise3D(const Float3& p)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    Returns
    Float3

    Noise result.

    CustomNoise3D(const Float3& p, int32 octaves, float roughness)

    Custom noise function for forces.

    Declaration
    public static Float3 CustomNoise3D(const Float3& p, int32 octaves, float roughness)
    Parameters
    Float3 p

    Point on a 3D grid to sample noise at.

    int32 octaves

    Noise octaves count.

    float roughness

    Noise roughness (in range 0-1).

    Returns
    Float3

    Noise result.

    PerlinNoise(const Float2& p)

    Classic Perlin noise.

    Declaration
    public static float PerlinNoise(const Float2& p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    float

    Noise value (range 0-1).

    PerlinNoise(const Float2& p, const Float2& rep)

    Classic Perlin noise with periodic variant (tiling).

    Declaration
    public static float PerlinNoise(const Float2& p, const Float2& rep)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Float2 rep

    Periodic variant of the noise - period of the noise.

    Returns
    float

    Noise value (range 0-1).

    SimplexNoise(const Float2& p)

    Simplex noise.

    Declaration
    public static float SimplexNoise(const Float2& p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    float

    Noise value (range 0-1).

    VoronoiNoise(const Float2& p)

    Voronoi noise (X=minDistToCell, Y=randomColor, Z=minEdgeDistance).

    Declaration
    public static Float3 VoronoiNoise(const Float2& p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    Float3

    Noise result with: X=minDistToCell, Y=randomColor, Z=minEdgeDistance.

    WorleyNoise(const Float2& p)

    Worley noise (cellar noise with standard 3x3 search window for F1 and F2 values).

    Declaration
    public static Float2 WorleyNoise(const Float2& p)
    Parameters
    Float2 p

    Point on a 2D grid to sample noise at.

    Returns
    Float2

    Noise value with: F1 and F2 feature points.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat