|
![](/i/fill.gif) |
In article <38D### [at] aol com>, Lummox JR <Lum### [at] aol com> wrote:
> Hmmm... I wonder if they're mine.
Yep.
> All those function changes I sent out to Ron Parker for the Superpatch.
> The isoblob patch I don't think is in there, though.
In where? MegaPOV, or the source changes you sent to Ron? The isoblob
patch is included in MegaPOV, if that is what you meant.
> That I wouldn't know; I haven't seen MegaPOV or its source. For all I
> know it might be based on my patch--if you have the source, my name
> should be plastered all over f_func.c and several related files if it's
> based on my code.
Ah, ok. I somehow had the impression you were using MegaPOV source as
your base. I found the code neatly arranged in a single block starting
with this:
#ifdef IsoBlobPatch
/* Functions added by Lummox JR, June 1999 */
> I really don't know how this could be included in the function code
> without greatly modifying it, since the code wasn't intended to go past
> 3 arguments per function. (The so-called 4-argument functions are
> actually just a declared function number plus 3 more arguments.) I've
> always wanted to see if that could be arbitrarily extended; the
> challenge is definitely intriguing enough for me to take it up sometime.
I would certainly be interested in the results. It would also be nice to
allow user defined functions to have a variable number of parameters,
how possible do you think that would be?
> BTW, I've gone ahead and added the Noise_raw function to texture.c. I
> gave it a function name "bozo", to avoid having to add one more keyword
> to the parser.
Sounds interesting, although the use of "bozo" would have to be changed
before it is distributed...
Maybe call it rnoise()?
> I added two new functions while I was in there:
>
> range(v,min,max) -- basically a shortcut for min(max(v,min),max)
Why not call it "clamp()"? I think it is more explanatory.
BTW, I use this code when I need this function, although having it hard
coded is probably a good idea:
#declare clamp = function {min(y, max(x, z))}
clamp(value, minimum, maximum)
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |