• Stars
    star
    136
  • Rank 267,670 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple examples of noise algorithms in Unity

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

More Repositories

1

Ceto

Ceto: Ocean system for Unity
C#
1,015
star
2

PBD-Fluid-in-Unity

A PBD fluid in unity running on the GPU
C#
724
star
3

Marching-Cubes

Marching cubes in Unity
C#
462
star
4

Terrain-Topology-Algorithms

Terrain topology algorithms in Unity
C#
430
star
5

Hull-Delaunay-Voronoi

Hull, Delaunay and Voronoi algorithms in Unity
C#
411
star
6

Brunetons-Improved-Atmospheric-Scattering

A Unity port of Brunetons improved atmospheric scattering
HLSL
354
star
7

Position-Based-Dynamics

Position based dynamics in Unity
C#
299
star
8

Marching-Cubes-On-The-GPU

A implementation of the marching cubes algorithm on the GPU in Unity.
C#
291
star
9

GPU-GEMS-3D-Fluid-Simulation

3D fluid simulation on the in Unity
C#
278
star
10

Phillips-Ocean

A ocean using Phillips spectrum in Unity
C#
272
star
11

GPU-GEMS-2D-Fluid-Simulation

2D fluid simulation in Unity
C#
247
star
12

Mesh-Voxelization

Mesh voxelization in Unity
C#
231
star
13

CGALDotNet

C# wrapper for CGAL
C#
198
star
14

Interactive-Erosion

Interactive erosion in Unity
C#
170
star
15

2D-Deformable-body-in-Unity

A 2D Deformable body simulation in Unity using FEM
C#
142
star
16

Brunetons-Ocean

Brunetons ocean in Unity
C#
127
star
17

Tiled-Directional-Flow

A shader to control the direction water flows based on a flow map in Unity.
ShaderLab
118
star
18

Proland-To-Unity

A port of Proland to Unity
C#
112
star
19

GPU-GEMS-Atmospheric-Scatter

Atmoshperic scatter in Unity
GLSL
73
star
20

AperiodicTexturing

A periodical texturing in Unity
C#
66
star
21

CGALDotNetUnity

CGALDotNet examples in Unity
C#
60
star
22

Brunetons-Atmospheric-Scatter

Brunetons procomputed atmospheric scatting in Unity
C#
55
star
23

GPU-Voronoi-Noise

GPU Voronoi noise in Unity
HLSL
48
star
24

CyclonePhysicsEngine

C# port of the Cylcone physics engine
C#
47
star
25

Wireframe-Shader

A wireframe material in Unity using the geometry shader.
ShaderLab
47
star
26

Simple-Procedural-Terrain

A simple example of how to create a Unity terrain from code using procedural noise.
C#
45
star
27

GPU-GEMS-NBody-Simulation

A NBody simulation in Unity
C#
43
star
28

GPU-GEMS-Improved-Perlin-Noise

Perlin noise on the GPU in Unity
GLSL
42
star
29

CGALDotNetGeometry

Geometry objects under MIT licence for CGALDotNet project
C#
28
star
30

ImageProcessing

A collection of code for processing images
C#
22
star
31

XAtlasDotNet

A c# wrapper around xatlas used to unwrap mesh uv’s.
C++
14
star
32

Common

Common code library
C#
9
star
33

OpenCLDotNet

A C# wrapper around OpenCL
C#
2
star