|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |