Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating 3D noise quickly in python

Tags:

python

noise

I need a method to generate 3D simplex noise in python rather quickly. What methods are there out there to solve this problem?

like image 418
Varriount Avatar asked Dec 17 '10 04:12

Varriount


1 Answers

$ pip install noise
  • http://pypi.python.org/pypi/noise/

This package is designed to give you simple to use, fast functions for generating Perlin noise in your Python programs. Perlin noise is famously called the "salt" of procedural generation, as it adds considerable flavor in its application. Noise is commonly used for imparting realism in textures, animation and other procedural content generation -- placement of hairs, heights of mountains, density of forests, waving of a flag, etc. etc.. ....

The noise library includes native-code implementations of Perlin "improved" noise and Perlin simplex noise.

Example code is included in the package, e.g. 2dtexture:

alt text

like image 65
miku Avatar answered Sep 27 '22 20:09

miku