POV-Ray : Newsgroups : povray.general : Color add : Color add Server Time
5 Aug 2024 02:15:49 EDT (-0400)
  Color add  
From: Rafal 'Raf256' Maj
Date: 3 Jan 2003 16:23:31
Message: <Xns92F8E38A5EB08raf256com@204.213.191.226>
How can I make a texture with pigment of following components :
  red = function { FA(x,y,z) }
green = function { FB(x,y,z) }
 blue = function { FC(x,y,z) }
?

The problem is, IMHO that there is no ADDITIVE filter in color.
I tryed to use 3 texture layers but I don't know how to define colormaps ?

texture { pigment{function{..}} color_map{[0 rgb 0][1 rgb <1,0,0>]} }
texture { pigment{function{..}} color_map{[0 rgb 0][1 rgb <0,1,0>]} }
texture { pigment{function{..}} color_map{[0 rgb 0][1 rgb <0,0,1>]} }

using filter and/or transmit didn't work as I expected. How set them to get 
result :
if i.e. texture A pigment    = <1.0 ,0.5, 0.0>
    and texture B pigment    = <0.1 ,0.1, 0.7>
then final pigment for point = <1.1, 0.6, 0.7>


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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