POV-Ray : Newsgroups : povray.unofficial.patches : new pattern help : Re: new pattern help Server Time
1 Sep 2024 16:19:08 EDT (-0400)
  Re: new pattern help  
From: Christoph Hormann
Date: 7 Mar 2001 13:20:27
Message: <3AA67BE5.5F77940A@gmx.de>
Tom Melly wrote:
> 
> I am feeling vaguely inspired to try making a new pattern type.
> 
> It would be almost indentical to "average" but would add values rather than
> average them.
> 
> If I download the source to POV, where would I go looking for the code for
> "average"? (I'm afraid this is likely to be the first of many questions, but
> it'll do for starters).

pigment.c:

static void Do_Average_Pigments (...

But 'average' is not a pattern. That's probably also why you did not find
it.   

For patterns look in pattern.c

If you want to create a new pattern, it might be useful to look for all
the changes made with #ifdef for a specific patch like:

#ifdef ObjectPatternPatch

BTW, a tool searching for keywords in all source files is quite practical
for such things.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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