The next code was used to generate the next picture of noises.
import c4d
width = 300
height = 300
noisetype = c4d.NOISE_DISPL_TURB
bmp = c4d.bitmaps.BaseBitmap()
bmp.Init(width, height, 24)
# Create and initialize the noise instance
noise = c4d.utils.noise.C4DNoise(1234)
noise.InitFbm(21, 2.1, 0.5)
rw = float(width-1)
rh = float(height-1)
# Iterate through the bitmap and set the noise value per pixel
for x in xrange(width):
for y in xrange(height):
r = noise.Noise(noisetype, False, c4d.Vector(x/rw, y/rh, 0) * 7.0, octaves=5)
o = int(c4d.utils.Clamp(0, 255, 255.0*r))
bmp[x, y] = (o, o, o)
c4d.bitmaps.ShowBitmap(bmp)
Noise Types¶
BoxNoise¶
Type: NOISE_BOX_NOISE
Blistered Turbulence¶
Type: NOISE_BLIST_TURB
Buya¶
Type: NOISE_BUYA
Cell Noise¶
Type: NOISE_CELL_NOISE
Cell Voronoi¶
Type: NOISE_CELL_VORONOI
Cranal¶
Type: NOISE_CRANAL
Dents¶
Type: NOISE_DENTS
Displaced Turbulence¶
Type: NOISE_DISPL_TURB
Electric¶
Type: NOISE_ELECTRIC
FBM¶
Type: NOISE_FBM
Fire¶
Type: NOISE_FIRE
Gas¶
Type: NOISE_GASEOUS
Hama¶
Type: NOISE_HAMA
Luka¶
Type: NOISE_LUKA
Mod Noise¶
Type: NOISE_MOD_NOISE
Naki¶
Type: NOISE_NAKI
Noise¶
Type: NOISE_NOISE
None¶
Type: NOISE_NONE
Nutous¶
Type: NOISE_NUTOUS
Ober¶
Type: NOISE_OBER
Pezo¶
Type: NOISE_PEZO
Poxo¶
Type: NOISE_POXO
Sema¶
Type: NOISE_SEMA
Sparse Convolution¶
Type: NOISE_SPARSE_CONV
Stupl¶
Type: NOISE_STUPL
Turbulence¶
Type: NOISE_TURBULENCE
VLNoise¶
Type: NOISE_VL_NOISE
Voronoi 1¶
Type: NOISE_VORONOI_1
Voronoi 2¶
Type: NOISE_VORONOI_2
Voronoi 3¶
Type: NOISE_VORONOI_3
Wavy Turbulence¶
Type: NOISE_WAVY_TURB
Zada¶
Type: NOISE_ZADA