|
![](/i/fill.gif) |
In article <3A565458.62638751@gmx.de>, Christoph Hormann
<chr### [at] gmx de> wrote:
> I think that would suffice, since a warp does not only specify the amount
> but also the direction, this could be even more universal.
Well, the warping vector can't be used directly, since patterns are
float values only...I was thinking of using the length of the warp
vector.
> Not sure whow you mean that, the purpose i was thinking of was for example
> controlling the fine structure of an isosurface landscape depending on the
> slope of it's large scale shape.
Ah, I see...well, declare the large scale function, and use something
like:
#declare P = 0.01;// sampling distance
#declare Fn = function {...}
#declare MaxSlopeFn =
function {
max(max(
(abs(Fn(x+P, y, z)-Fn(x-P, y, z))),
abs(Fn(x, y+P, z)-Fn(x, y-P, z)))),
abs(Fn(x, y, z+P)-Fn(x, y, z-P)))
)/(2*P)
}
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |