Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::Noise Class Reference

Contains a few useful noise functions. More...

#include <mitsuba/render/noise.h>

Static Public Member Functions

static Float perlinNoise (const Point &p)
 Evaluate the Perlin noise function at p. More...
 
static Float fbm (const Point &p, const Vector &dpdx, const Vector &dpdy, Float omega, int maxOctaves)
 Evaluate a fractional Brownian noise function based on perlinNoise() at p. More...
 
static Float turbulence (const Point &p, const Vector &dpdx, const Vector &dpdy, Float omega, int maxOctaves)
 Similar to fbm, but adds first-derivative discontinuities, causing the resulting function to have infinite frequency content. More...
 

Detailed Description

Contains a few useful noise functions.

The implementations in this class are based on PBRT

Member Function Documentation

static Float mitsuba::Noise::fbm ( const Point p,
const Vector dpdx,
const Vector dpdy,
Float  omega,
int  maxOctaves 
)
static

Evaluate a fractional Brownian noise function based on perlinNoise() at p.

Parameters
dpdxDifferential of p with respect to the next horizontal pixel in screen-space.
dpdyDifferential of p with respect to the next vertical pixel in screen-space.
omegaControls the falloff weights applied to higher-frequency octaves
maxOctavesMax. number of octaves used in the noise computation
static Float mitsuba::Noise::perlinNoise ( const Point p)
static

Evaluate the Perlin noise function at p.

static Float mitsuba::Noise::turbulence ( const Point p,
const Vector dpdx,
const Vector dpdy,
Float  omega,
int  maxOctaves 
)
static

Similar to fbm, but adds first-derivative discontinuities, causing the resulting function to have infinite frequency content.

Parameters
dpdxDifferential of p with respect to the next horizontal pixel in screen-space.
dpdyDifferential of p with respect to the next vertical pixel in screen-space.
omegaControls the falloff weights applied to higher-frequency octaves
maxOctavesMax. number of octaves used in the noise computation

The documentation for this class was generated from the following file: