Code Monkey home page Code Monkey logo

fastnoiselite's Introduction

UPM Package

This fork is meant to be used as a UPM package inside Unity.

You can be install this package via the Unity Package Manager (UPM). In the top left of the Packages window, navigate to Add Package -> Add package from git URL and paste https://github.com/Eyap53/FastNoiseLite.git.

All credits goes to Jordan Peck and the contributors of the FastNoiseLite library. https://github.com/Auburn/FastNoiseLite.git. You may find a sponsor link there to support his work.

FastNoise Lite

discord

FastNoise Lite is an extremely portable open source noise generation library with a large selection of noise algorithms. This library focuses on high performance while avoiding platform/language specific features, allowing for easy ports to as many possible languages.

This project is an evolution of the original FastNoise library and shares the same goal: An easy to use library that can quickly be integrated into a project and provides performant modern noise generation. See a breakdown of changes from the transition to FastNoise Lite here

If you are looking for a more extensive noise generation library consider using FastNoise2. It provides large performance gains thanks to SIMD and uses a node graph structure to allow complex noise configurations with lots of flexibility.

Features

  • 2D & 3D
  • OpenSimplex2 Noise
  • OpenSimplex2S Noise
  • Cellular (Voronoi) Noise
  • Perlin Noise
  • Value Noise
  • Value Cubic Noise
  • OpenSimplex2-based Domain Warp
  • Basic Grid Gradient Domain Warp
  • Multiple fractal options for all of the above
  • Supports floats and/or doubles

Supported Languages

  • C#
  • C++98
  • C99
  • Java
  • HLSL

FastNoise Lite Preview App

A compact testing application is available for testing all features included in FastNoise Lite with a visual representation. This can be used for development purposes and testing noise settings.

Download links can be found in the Releases. Build instructions can be found in the PreviewApp directory.

FastNoise GUI

Performance Comparisons

Benchmarked using C++ version with NoiseBenchmarking

  • CPU: Intel 7820X @ 4.9Ghz
  • OS: Win10 x64
  • Compiler: clang-cl 10.0.0 -m64 /O2

Million points of noise generated per second (higher = better)

3D Value Perlin (*Open)Simplex Cellular
FastNoise Lite 64.13 47.93 36.83* 12.49
FastNoise (Legacy) 49.34 37.75 44.74 13.27
FastNoise 2 (AVX2) 494.49 261.10 268.44 52.43
libnoise 27.35 0.65
stb perlin 34.32
2D Value Perlin Simplex Cellular
FastNoise Lite 114.01 92.83 71.30 39.15
FastNoise (Legacy) 102.12 87.99 65.29 36.84
FastNoise 2 (AVX2) 776.33 624.27 466.03 194.30

Credits:

  • OpenSimplex2 for the OpenSimplex2 noise algorithm
  • @KdotJPG for implementing all the OpenSimplex alogrithms and the Java port
  • CubicNoise for the Value (Cubic) noise algorithm
  • @Rover656 for creating the preview GUI and porting FastNoise Lite to C and HLSL.

Examples

Ridged Fractal

Cellular

Cellular Fractal

Cellular Warped

Value Warped

Cellular Scrolling

OpenSimplex2 Warp

fastnoiselite's People

Contributors

auburn avatar eyap53 avatar grind086 avatar kdotjpg avatar nlguillemot avatar rover656 avatar

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.