Coder Social home page Coder Social logo

procedural-noise's Introduction

Procedural-Noise

This is a collection of procedural noise algorithms I have collected from various places over the years. They have been reworked into a common framework I use and can be added to a fractal noise object to turn the noise into a fractal. Each noise supports sampling in 1, 2 and 3 dimensions.

Perlin Noise

First there's the classic Perlin noise. If your interested in procedural noise this is often the standard.

Perlin Noise

Value Noise

This is just Perlin noise but instead of using gradients for the noise its the actual value that's used. By that I mean its just a lattice of random values interpolated. The whole point of gradient noises like Perlin is that they produce better quality noise. Using the value tends to create a blocky looking noise but if that's the effect you want then this will be better and a bit cheaper to compute as well.

Value Noise

Simplex Noise

This is a improvement on Perlin and is better quality with less artifacts. Perlin is classed as lattice noise as it subdivides space into a grid of blocks. Simplex noise changes this by dividing space into a simplex rather than a block. A simplex is just the smallest convex set that can exists in a certain dimension of space. For example a line in 1D space, a triangle in 2D space and a tetrahedron in 3D space. Beyond 3D its just called a N-Simplex.

The implementation for this noise was found here.

Simplex Noise

Voronoi Noise

A Voronoi diagram is just a distance field from a random set of points. The concept can be used to create noise if you just sub-dive space into blocks with a random number of points in each and then use the distance of the closest point as the noise value. By changing the distance method used and how the closest points are combined you can create a variety of interesting noises.

This implementation for this noise was found here.

Voronoi Noise

Worley Noise

This is just another method of generating Voronoi noise. It looks pretty much the same but is slightly different with the values being more uniform.

Worley Noise

List of procedural noise projects

Procedural Noise
GPU-Voronoi-Noise
GPU-GEMS-Improved-Perlin-Noise

procedural-noise's People

Contributors

scrawk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

procedural-noise's Issues

Any way to get the cell value from the voronoi noise?

Thank you for this project, it's very useful and helping me understand how the different noise algos work. I am having trouble doing a specific thing with the voronoi or worley noise though. On other programs that generate noise, sometimes they let you get the cell value resulting in voronoi noise that looks like the image attached below. I am having trouble doing so myself unfortunately and need some help
GreyscaleCells

Question about noise value ranges

Hi @Scrawk, thank you for this amazing library!

Do you know the ranges of the returned values for each noises ? I noticed that most of them can yield values below 0 and I would like to normalize them between 0 and 1 (not just on an array as done in the example script).

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.