POV-Ray : Newsgroups : povray.unofficial.patches : convolution matrix : Re: convolution matrix Server Time
2 Sep 2024 10:18:08 EDT (-0400)
  Re: convolution matrix  
From: Chris Huff
Date: 26 Feb 2000 07:52:48
Message: <chrishuff_99-69360D.07541526022000@news.povray.org>
In article <8EE68726Aseed7@204.213.191.228>, ing### [at] homenl (ingo) 
wrote:

> From the POV-doc on turbulence:
> "It says in effect "Don't give me the color at this spot... take a few 
> random steps in different directions and give me that color"."
> 
> I know very little of the way graphic software works. I was thinking, 
> instead of taking the random steps of turbulence, take "defined" steps as 
> in a convolution matrix.

It might be possible to do that, but you would have to specify the size 
of the sampling rectangle as well. You would also need to orient the 
sampling rectangle to be parallel to the surface, and have the same 
orientation as it's neighboring points. That is the difficult part, and 
I don't know how it would be done.(maybe just by using the angle to the 
xz plane and angle around the y axis?)

Or you could have the matrix always be aligned with the origin(with 
rotations and other transforms, of course). This would be a lot easier 
to implement, but it wouldn't follow the surface of the object. And to 
do it well would probably require a 3D array of values, like 3*3*3.

I will look into this, I think all it would require is multiple calls to 
Compute_Pigment with the evaluation point moved in the right way. And it 
would be restricted to pigment, since it operates on colors instead of 
patterns, like turbulence does. And it probably wouldn't be very fast.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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