I need a method to generate 3D simplex noise in python rather quickly. What methods are there out there to solve this problem?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
use a mod function with a suitable period. there are quite a few pages around the www explaining mod functions.
just make sure it is also suitable for 3 dimensions, some mods that are suitable for 1 or 2 dimensions may not be suitable over 3.
For more info.
http://snup.org/code-snippets/1153/python-n-dimensional-simplex-noise/
It has a simple code to generate simplex noise.
Example code is included in the package, e.g.
2dtexture
: