THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/02/2012 at 14:26, xxxxxxxx wrote:
I am following this example form the sdk :
import c4d
from c4d.utils.noise import C4DNoise
from c4d import bitmaps
for i in range (1) :
width = 256
height = 256
noisetype = c4d.NOISE_WAVY_TURB
bmp = bitmaps.BaseBitmap()
bmp.Init(width, height, 24)
p = C4DNoise(int(646))
p.InitFbm(21, 2.1, 0.5)
rw = float(width-1)
rh = float(height-1)
t = float(i*0.04)
for x in xrange(width) :
for y in xrange(height) :
r = p.Noise(noisetype, False, c4d.Vector(x/rw, y/rh, 0) * 7, time = t , octaves=2)
o = 255.0*r
if o<0: o=0
elif o>255: o=255
bmp[x, y] = (o, o, o)
bitmaps.ShowBitmap(bmp)
shouldn't the int in p = C4DNoise(int(646)) change the bitmap result ? the seed value seems
to have no influence at all. just to clarify, i want to change the seed of my noise :)
the compiler returns this warning after execution :
_FILEPATH_ :26: DeprecationWarning: integer argument expected, got float
kZE_OdÚ'_Ç®_M_%P_o_ôDqI__I__Y