Home

Awesome

OpenSimplex 2

Successors to OpenSimplex Noise, plus updated OpenSimplex. Includes 2D, 3D, and 4D noise.

Motivation

Legacy OpenSimplex used a different grid layout scheme to Simplex. It worked fine for common applications, but didn't produce as consistent contrast as the original Simplex point layout in 3D/4D. It also broke down completely when extended to 5D+, producing diagonal bands of visibly-varying value ranges.

Instead of vertex rearrangement, OpenSimplex2 focuses on congruent layouts constructed and traversed using disparate methods where need was concluded.

Gradient vector tables were also revisited to improve probability symmetry in both the old and new noise.

Included

OpenSimplex2(F)

OpenSimplex2S

Legacy OpenSimplex with updated gradients

Older OpenSimplex2 implementations

Note: area-generators have been moved to their original repository.

C FFI usage

Install a Rust toolchain if needed.

Build debug or release artifacts with:

cargo build
# or
cargo build --release

Library files will be in ./target/{debug,release}/. Copy header from ./rust/OpenSimplex2.h.

Changelog

Renders

2D Noise

Renders 2D

3D Noise (ImproveXY Orientation)

Renders 3D ImproveXY

3D Noise (Fallback Orientation)

Renders 3D Fallback

4D Noise (ImproveXY_ImproveZW Orientation)

Renders 4D ImproveXY_ImproveZW

4D Noise (ImproveXYZ Orientation)

Renders 4D ImproveXYZ

4D Noise (Fallback Orientation)

Renders 4D Fallback

4D Noise (Torus Mapping)

Renders 4D Torus

Public Domain Dedication

This is free and unencumbered software. The majority of files are released under CC0. Where marked, files in certain directories fall under UNLICENSE instead, as they were based off of UNLICENSE code other than mine (e.g. Pull Requests, legacy OpenSimplex with DigitalShadow's lookup tables). To the best of my non-lawyer knowledge, no patent claims cover anything implemented here (though also nothing here is legal advice). Please use this software to make cool things, rather than to make patents! Enjoy.