POV-Ray : Newsgroups : povray.newusers : Seed Noise Generators? : Re: Seed Noise Generators? Server Time
2 Jul 2024 21:31:12 EDT (-0400)
  Re: Seed Noise Generators?  
From: Thorsten Froehlich
Date: 19 Dec 2010 15:34:34
Message: <4d0e6c5a@news.povray.org>
On 19.12.10 18:25, JSmith wrote:
> clipka<ano### [at] anonymousorg>  wrote:
>> Am 19.12.2010 17:09, schrieb JSmith:
>>> Hi Users,
>>>
>>> I was wondering if it's possible to seed the noise generators such as f_noise?
>>
>> No, not without changing the POV-Ray source code.
>>
>> You can add a random offset to the function though, i.e.
>>
>> #declare R = seed(4711);
>> #declare Rx = rand(R);
>> #declare Ry = rand(R);
>> #declare Rz = rand(R);
>> #declare my_f_noise3d = function( f_noise3d(x-Rx,y-Ry,z-Rz) }
>
> Thanks for the reply!
>
> Will seeding for f_noise be implemented in source in future releases?

Well, note that noise isn't a simple random function you can "seed". Perlin 
noise is a bit more complicated than that. A random offset position will 
pretty much give you a good "random" seed.

	Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.