POV-Ray : Newsgroups : povray.general : Color add : Re: Color add Server Time
5 Aug 2024 02:23:38 EDT (-0400)
  Re: Color add  
From: Rafal 'Raf256' Maj
Date: 3 Jan 2003 17:34:16
Message: <Xns92F8EF8995540raf256com@204.213.191.226>
Christoph Hormann <chr### [at] gmxde> wrote in 
news:3E16045E.23919376@gmx.de

[...]

Thanks :)

Another colors question:
I have i.e. sphere rgb <1,0,0> behind a box rgb <0,1,0> and all this behind 
a wall rgb .3

Now I want color of pixel, that is on render output "inside" all 3 shapes 
(inside there projection on view port exacly) to have color :

<1,0,0> + <0,1,0> + .3 = <1.3,1.3,0.3>

so - box and wall will act just like "particle", in OGL it would be 
"additive-alpha" afair


-- 
#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.