POV-Ray : Newsgroups : povray.general : Colourmaps, averaging, and custom pigments : Re: Colourmaps, averaging, and custom pigments Server Time
9 Aug 2024 03:26:39 EDT (-0400)
  Re: Colourmaps, averaging, and custom pigments  
From: Chris Huff
Date: 29 Aug 2000 14:21:13
Message: <chrishuff-7AAAB6.13224529082000@news.povray.org>
In article <39A### [at] istarca>, sde### [at] istarca wrote:

> Actually, I've found an easier (for me) method.
> 
> I took my complex Bozo perlin, and converted it into a function with 
> the function{pigment{...}} command in MegaPov. Now that it's a 
> function, I can use it like any other pigment type, with 
> pigment{function{...}}. A little roundabout, but at least I 
> understand how it works.

As I understand it, using a pigment function as a pattern does the exact 
same thing as pigment_pattern. The difference is that you have to 
declare a separate function and use that as a pattern, but it allows you 
to manipulate the pattern in whatever way you want.


Not really pertinent to this problem, but I personally would prefer it 
if functions took *patterns*. You could use pigments with 
pigment_pattern to get the same results as a pigment function does now, 
but could use plain patterns if you wanted, without any computational 
overhead of evaluating a pigment. But I doubt this will happen any time 
soon, since I don't know how to implement it.

-- 
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.