|
![](/i/fill.gif) |
"Rune" <new### [at] runevision com> wrote in message
news:46e736ea$1@news.povray.org...
> Zeger Knaepen wrote:
>> pigment {
>> camera_view{[mask-scene camera settings]}
>> pigment_map {
>> [0 rgbt 1]
>> [1 camera_view{[original camera settings]}
>> }
>> }
>
> This does not create the correct gradient. I'll demonstrate with a simpler
> gradient:
I know, but you don't need the gradient: it's either completely
transpansparent or it's completely opaque. The colour of the pixel is
defined by the first scene.
maybe I should have written it like this, to avoid confusion:
pigment {
pigment_pattern {camera_view[mask-scene camera settings]} //forgot the
pigment_pattern :)
pigment_map {
[.5 rgbt 1]
[.5 camera_view{[original camera settings]}
}
}
If you also want partial transparency, then it's a bit more complicated, and
I believe you'll need to use functions.
cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x) // ZK http://www.povplace.com
Post a reply to this message
|
![](/i/fill.gif) |