POV-Ray : Newsgroups : povray.newusers : pigments <-> functions : Re: pigments <-> functions Server Time
28 Jul 2024 12:28:03 EDT (-0400)
  Re: pigments <-> functions  
From: Alain
Date: 7 Apr 2009 13:51:16
Message: <49db9294$1@news.povray.org>
Jim Charter nous illumina en ce 2009-04-06 19:29 -->
> William Tracy wrote:
>> Okay. I'm newly returning to Pov, and this is a stupid simple 
>> question, so I figure I can post this under "new users". :-P
>>
>> I can create a user-defined function from a pigment. Is it possible to 
>> create a pigment from a function? The documentation isn't clear to me, 
>> but seems to say "no".
>>
> 
> Just to cover one base ...
> http://www.econym.demon.co.uk/isotut/pigfun.htm
For any function based on a pigment that don't have a colour_map, using .x .y or 
.z is essentialy the same as .gray, but faster as you don't compute the 
ponderated average of the tree colour chanels.

In the sample that use the obion and leopard patterns, using .x (or .red, .y, 
.z, .green, .blue) would render the same.
wood, agate and bozo have an internal colour_map and need .gray.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you invented glasses that can be 
configured to use variable resolution (eg. 320x240, 640x480, etc.), with POV-Ray 
style switches for other effects (eg. anti-aliasing, radiosity, etc.)
Vimal N. Lad / Gautam N. Lad


Post a reply to this message

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