MIT License

项目介绍

Auburn/FastNoiseLite 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 MIT License 许可证,目前获得 3.5k 个 Star、362 次 Fork。

仓库全名
Auburn/FastNoiseLite
开源许可证
MIT License
Star 数
3.5k
Fork 数
362
未关闭 Issue
22

README 摘要

FastNoise Lite Web Preview App 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

FastNoiseLite 用什么语言开发?

主要使用 Rust 编写,采用 MIT License 许可证,目前有 3.5k 个 Star。

FastNoiseLite 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 FastNoiseLite 的源码?

可以直接克隆仓库:git clone https://github.com/Auburn/FastNoiseLite.git,默认分支为 master;安装与运行步骤见仓库 README。

FastNoiseLite 最近还在维护吗?

仓库最近一次更新为 2 周前,当前有 22 个未关闭 Issue;Star 数为 3.5k,可作为社区活跃度的参考。

README

discord

FastNoise Lite

Web Preview App

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 sampling
  • 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

If you want to port FastNoise Lite to a new language create a pull request or discuss it on the discord linked above

Getting Started

Documentation

FastNoise Lite Web Preview App

Link: https://auburn.github.io/FastNoiseLite

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, testing noise settings and generating noise textures for export.

Source code can be found in the WebPreviewApp directory.

Simplex FBm

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:

Contributing

New ports of FastNoise Lite are always welcome, create a PR or come discuss the port with me on the discord linked above. I’m not an expert or even familiar with every language FastNoise lite has been ported to, so if you see something that could be improved please contribute or create a GitHub issue.

Examples

Ridged Fractal

Cellular

Cellular Fractal

Cellular Value Warped

Value Warped

评论

暂无评论