Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
/ Noise Public archive

Implementations of the Perlin Noise generation functions

License

Notifications You must be signed in to change notification settings

warmwaffles/Noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The perlin noise generators offered here are built to be as small and compact as possible, while being versatile.

Usage

Java

Prime

This is the perlin noise generator that uses prime numbers. It has the lowest overhead costs. It doesn't use a random number generator. Though the current implementation only uses two axis.

PerlinNoise p = new PerlinNoise(seed, persistence, frequency, amplitude, octaves);
double height = p.getHeight(x,y);

Here is how you can modify the generator. Continue from example above.

// Same parameters as the constructor
p.set(seed, persistence, frequency, amplitude, octaves);

// Or set them individually
p.setAmplitude(3);
p.setOctaves(2);
// set the seed to be OVER 9000!
p.setSeed(9001);
// it can be any value (^_^)

Riven

With Riven's Implementation I have made it more object oriented.

PerlinNoise p = new PerlinNoise(254);

p.noise(x,y,z);

This version sports a couple features such as:

p.smoothNoise(x, y, z, octaves);
p.turbulentNoise(x, y, z, octaves);
p.offset(xOffset, yOffset);

Ken Perlin

This version is Ken Perlin's implementation of Perlin's algorithm...go figure.

About

Implementations of the Perlin Noise generation functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages