Skip to content
forked from qknight/libnoise

this is a fork of libnoise which changes the build system from static Makefiles to cmake

License

Notifications You must be signed in to change notification settings

itamago/libnoise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My personal fork was to use this alongside a native plugin for the Unity game engine. It is still licensed under the LGPL as before. Primarily, I made some modifications to allow compiling to a Windows x64 DLL.

libnoise

This is a fork of libnoise which includes noiseutils in the building and installing process. It also contains FindLibNoise.cmake

This is a fork of libnoise which changes the build system from static Makefiles to cmake.

A portable, open-source, coherent noise-generating library for C++

libnoise is a portable C++ library that is used to generate coherent noise, a type of smoothly-changing noise. libnoise can generate Perlin noise, ridged multifractal noise, and other types of coherent-noise.

Coherent noise is often used by graphics programmers to generate natural-looking textures, planetary terrain, and other things. The mountain scene shown above was rendered in Terragen with a terrain file generated by libnoise. You can also view some other examples of what libnoise can do.

In libnoise, coherent-noise generators are encapsulated in classes called noise modules. There are many different types of noise modules. Some noise modules can combine or modify the outputs of other noise modules in various ways; you can join these modules together to generate very complex coherent noise.

Compiling

cmake supports 'out of source' builds by default, to use it do this:

mkdir build
cd build
cmake ..
make

this should create everything into the build/ directory

Installing

this is covered by cmake:

make install

Usage

see examples for details but in general:

  1. you need to supply the library -lnoise to the linker
  2. the includes to the compile with -I /usr/include/noise

OR

Use provided FindLibNoise.cmake

A comment on performance

Using compiler optimizations for libnoise is strongly recommended. Using the unoptimized library is roughly a fifth as fast as using -O3 on my test computer.

this cmake build by default (if not in developer mode) will build with -O3

see: CMAKE_BUILD_TYPE

Type of build (Debug, Release, ...)

About

this is a fork of libnoise which changes the build system from static Makefiles to cmake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.3%
  • Other 1.7%