|
|
On 21 Dec 2001 12:13:00 -0500, Warp <war### [at] tagpovrayorg> wrote:
>W?odzimierz ABX Skiba <abx### [at] babilonorg> wrote:
>: The message is right. Pig() returns vector (or color). You should add .gray
>: operator or change pigment to pattern if you want MEGAPOV's behaviour.
>
> The latter is, IMHO, better. Why overburdern the engine with color
> calculations when you will not ne using the colors for anything?
Of course in almost all cases pattern is better but sometimes you can't use only
pattern becouse you are interested in gray representation of complicated pigment
with pigment_maps. It seems simpler (but not faster for engine) to use pigment
then rewrite everything with pattern.
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
|