Skip to content

Showcasing perlin noise, blue noise, worley (voronoi) noise and noise layering

License

Notifications You must be signed in to change notification settings

Sokkero/noiseTesting-TechDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Procedural generation using noise functions

1) General

This is a unity project without a standalone executable.
The project can be directly added to unity, native version being 2020.1.2f1.
The powerpoint presentation that was made for this showcase can be downloaded here.

2) Perlin noise

Perlin noise was the first type of gradient noise introduced to the world, and is what the presentation primarily covered. The main showcase of perlin noise and layering is found in PerlinScene.unity.
The Terrain gameobject holds GradientNoiseTerrainGenerator.cs.

  • A domain rotation toggle is included, which mitigates some of the algorithm's inherent square alignment artifacts.
  • All values used in calculations can be accessed from the inspector.

2) Simplex(-type) noise

Simplex(-type) noise is a successor to Perlin that improves pattern angle distribution by changing the internal grid structure. A showcase with layering can be found in SimplexScene.unity.
The Terrain gameobject here also holds GradientNoiseTerrainGenerator.cs.

  • All values used in calculations can be accessed from the inspector.

3) Voronoi Diagrams/Worley noise

The main showcase of voronoi diagrams is found in the VoronoiScene.unity.
The Terrain gameobject holds VoronoiTerrainGenerator.cs which creates the shown terrain.
The exampleSprite (child object of Main Camera) holds VoronoiDiagram.cs which creates the initial voronoi diagram shown.

  • All values used in calculations can be accessed from the inspector.

4) Blue noise

The main showcase of blue noise and layering it with gradient noise and voronoi is also found in VoronoiScene.unity.
The Terrain gameobject holds BlueNoiseSprite.cs which creates the assets placed by the noise function.

  • All values used in calculations can be accessed from the inspector.

4) Sources, references and helpful links

General:

Gradient/Simplex/Perlin noise:

Worley noise:

Blue noise:

About

Showcasing perlin noise, blue noise, worley (voronoi) noise and noise layering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published