POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0) : Re: Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0) Server Time
21 Dec 2024 12:02:50 EST (-0500)
  Re: Suggest v4.0 drop global noise_generator. (yuqk R17 v0.6.11.0)  
From: William F Pokorny
Date: 30 Nov 2024 07:14:03
Message: <674b018b@news.povray.org>
On 11/30/24 06:20, William F Pokorny wrote:
> Still refining it, but an updated version of the ip_noise_generator 
> documentation is attached.

I read it again after posting. One of the points I'm still not making 
well in the "background noise" section is that with f_hash() you can 
roll your own uniform random noise code in SDL.

The following code was used to generate the attached image 
(file_gamma=1.0). No AA used on the left image. Heavy method 3 AA used 
in the middle. No AA, but changing the Step value from 0.0 to 0.02 on 
the right.

#include "functions.inc"
#declare Seed00 = 7834.5540283051168443;
#declare Step = 0.00; // 0.02 for right image
#declare Fn00 = function {
     f_hash(
         (
         f_hash(x+pi, Seed00  ,Step,0)+
         f_hash(y+tau,Seed00*2,Step,0)+
         f_hash(z+e,  Seed00*4,Step,0)
         ),
     Seed00,Step,0)
}
#declare Pigm00 = pigment {
     function { Fn00(x,y,z) }
}

Bill P.


Post a reply to this message


Attachments:
Download 'f_hashuniformrndnoise.jpg' (253 KB)

Preview of image 'f_hashuniformrndnoise.jpg'
f_hashuniformrndnoise.jpg


 

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