|
|
"Rune" <run### [at] runevisioncom> wrote in message
news:428c3e26$1@news.povray.org...
> Zeger Knaepen wrote:
> > Is there a fast way to combine pigments in an additive way?
>
> As fast as average. Use average, while multiplying all colors (or
> alternatively the ambient and diffuse values) with the number of pigments
> being averaged.
That's how I did it, but it results in different shades of gray when I used more
than one hue. But Slime's macro worked, so maybe this will become a fully
functional lensflare-system, someday :)
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.com
Post a reply to this message
|
|