A Generator of Multidimensional Noise

Generation of natural looking noise has many application within simulation, procedural generation, and art, to name a few. The 'ambient' package provides an interface to the 'FastNoise' C++ library and allows for efficient generation of perlin, simplex, worley, cubic, value, and white noise with optional pertubation in either 2, 3, or 4 (in case of simplex and white noise) dimensions.


Travis-CI Build Status AppVeyor Build Status CRAN_Release_Badge CRAN_Download_Badge

ambient is a an R package that provides access to the FastNoise C++ library for generating noise. As such it provides fast generation of perlin, value, cubic, and worley noise in 2 and 3 dimensions, as well as simplex and white noise in 2, 3, and 4 dimensions.

Most of the noise patterns can be generated as fractals as well with support for fbm, billow and rigid-multifractal, and can optionally be pertubed.

There's not much more to it. If you are in need of a noise generator ambient is your friend, if not you probably shouldn't care.

Installation

For the time being ambient is only available on Github, and can be installed with devtools:

devtools::install_github('thomasp85/ambient')

In the future the package will be available on CRAN as well.

Examples

Following is a couple of examples of the noise patterns possible with ambient:

library(ambient)
plot_raster <- function(mat) {
  mat <- (mat - min(mat)) / diff(range(mat))
  plot(as.raster(mat))
}
 
# Simplex
plot_raster(noise_simplex(c(500, 500)))

 
# Simplex - No fractality
plot_raster(noise_simplex(c(500, 500), fractal = 'none'))

 
# Worley (cellular)
plot_raster(noise_worley(c(500, 500)))

 
# Worley - with pertubation
plot_raster(noise_worley(c(500, 500), pertubation = 'normal', pertubation_amplitude = 40))

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ambient")

0.1.0 by Thomas Lin Pedersen, a year ago


https://github.com/thomasp85/ambient


Report a bug at https://github.com/thomasp85/ambient/issues


Browse source code at https://github.com/cran/ambient


Authors: Thomas Lin Pedersen [cre, aut] , Jordan Peck [aut] (Developer of FastNoise)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp

Linking to Rcpp

System requirements: C++11


See at CRAN