Coder Social home page Coder Social logo

gustavobodi / greatnoise Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.04 MB

A composable noise generator. The algorithms and layers are composable to build procedural generated worlds. Implements PerlinNoise, Fbm, DomainWarping, Dla.

License: MIT License

C# 96.70% Dockerfile 3.30%
algorithms noise noise-generator perlin-noise procedural-generation

greatnoise's Introduction

Great Noise

This is a prototype for a composable noise generator that will allow, creating multiple layers of noise via composition. It currently implements PerlinNoise.

Algorithms

Current state of algorithms and features:

  • PerlinNoise
  • FBM
  • SimplexNoise
  • Voronoi
  • DomainWarping
  • ValueNoise
  • Smooth voronoi

Organization

The NoisePresentation project is an example project of the usage of the generated noise map. The library itself is located at the NoiseGenerator project.

Images

This is one of the images generated by GreatNoise:

image

How to use it

It's quite simple, import it, choose an algorithm, set the parameters you want to change, then create a map object and start the generation.

using NoiseGenerator;

// Creates a perlin noise object
var perlin = new EnhancedPerlinNoise(new PerlinNoiseParameter().SetShouldShuffle(true));
// Creates an fbm object applied to the perlin noise
var brownian = new BrownianMotion(new BrownianMotionParameter(perlin).SetOctaves(12).SetLacunarity(0.50).SetPersistency(2.2));
// Set the map to be the result of the brownian noise
var map = new NoiseMap<double>(1000, brownian);
// Generate the map
map.GenerateNoise();
// Drawer object
var drawer = new MapBitmapDrawer();
// Writes the bitmap to output.png
drawer.ToBitmap(map, false);

License

The current program is licensed under the MIT license.

greatnoise's People

Contributors

gustavobodi avatar

Watchers

 avatar

greatnoise's Issues

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.