O'Reilly logo

OpenGL 4.0 Shading Language Cookbook by David Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a noise texture using libnoise

To create a texture for use as a source of noise, we need some way to generate noise values. Implementing a proper noise generator from scratch can be a fairly daunting task. However, we can avoid that by making use of the very nice, open source library libnoise, available from http://libnoise.sourceforge.net. Libnoise is a C++ based library that is released under the Gnu LGPL. It provides a very simple and modular interface to coherent noise generation routines via noise modules. The modules can be chained and linked together in various ways to generate a wide variety of interesting generators. The website has a set of simple tutorials that can help get you started.

Downloading and compiling libnoise is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required