POV-Ray : Newsgroups : povray.binaries.images : concept to visualization II : Re: concept to visualization II Server Time
1 Oct 2024 11:25:23 EDT (-0400)
  Re: concept to visualization II  
From: Chris Huff
Date: 21 Aug 2000 22:20:08
Message: <chrishuff-EAF50C.21212921082000@news.povray.org>
In article <39A0E4EC.EA4F8595@schunter.etc.tu-bs.de>, 
chr### [at] gmxde wrote:

> BTW, you probably can do the same with HF-Lab, just generate a random 
> matrix and apply a smooth filter... wait a moment, since Chris Huff 
> developed a noise pigment you can even do this in good old POV.

You could probably do it by alternating the add and divide post_process 
filters using the noise pigment(to do an average of the image with a 
random noise) and the blur filter(the convolution matrix). The resulting 
image could be used in a height field. Something like this:

#declare Iterations = 2;

// make the only thing in the scene a white background
#background {color rgb 1}

global_settings {
    post_process {
        #declare K=0;
        #while(K < Iterations)
            add {noise_pigment {1, rgb 0, rgb 1}}
            divide {rgb 2}
            convolution {3, 3, 8, 0
                < 1, 1, 1,
                  1, 0, 1,
                  1, 1, 1 >
            }
            #declare K=K+1;
        #end
    }
}

A large number of iterations might take a while to compute, though. It 
might be better to make a post_process filter which does the whole thing.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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