Perlin Noise(with Mersenne Twister)
Perlin Noise は自然なプロセスで生じるとされている 1/f n ノイズを作成する。
n =0:白色雑音(White Noise) - 周波数によらずスペクトルが一定値
n =1:桃色雑音(Pink Noise) - スペクトルが周波数に対して傾き-1で直線的に減衰
n =2:褐色雑音(Brown Noise) - スペクトルが周波数に対して傾き-2で直線的に減衰
n =3:赤色雑音(Red Noise) - スペクトルが周波数に対して傾き-3で直線的に減衰
近似アルゴリズムは、基本的なノイズ関数の適切にスケーリングされた倍音を加えることによる。
1 ![Sum of noise](p1.jpeg)
2 ![Sum of noise](p2.jpeg)
4 ![Sum of noise](p4.jpeg)
8 ![Sum of noise](p8.jpeg)
16 ![Sum of noise](p16.jpeg)
Sum ![Sum of noise](sum.jpeg)
Sample PerlinNoise(with Mersenne Twister) class C++ source code for VC++6.0 and gcc++.
PerlinNoise.cpp ,
PerlinNoise.h ,
main.cpp(test main).
Perlin Noise Demo (Windows2000/XP), screen shot and
download.
Perlin Noise Demo2 (Windows2000/XP), screen shot and
download.
To home