POV-Ray : Newsgroups : povray.newusers : Transparent object : Re: Transparent object Server Time
5 Sep 2024 08:14:21 EDT (-0400)
  Re: Transparent object  
From: Ron Parker
Date: 24 Apr 2001 11:48:03
Message: <slrn9eb81l.4a2.ron.parker@fwi.com>
On Mon, 23 Apr 2001 20:17:43 -0400, Lothar Esser wrote:
>Hi,
>
>  is there a way to keep the alpha value for a partially transparent
>object ?
>Regarding my earlier question, a transparent background color works
>well  together with the +UA switch but if any object
>has a transparency < 1.0 it will get the appropriately mixed color
>(object(s) + background color) and appears to have a final
>transparency of 0. 

I don't see this.  If I render this:

box {<-1,-1,0> <1,1,.01> pigment {rgbt <1,0,0,.5>} finish {ambient 1}}
camera {location -5*z look_at 0}

using command-line options +fn +ua, I get a PNG image with a red square
in it.  Loading that into Photoshop 6, I see that the red square has a
color of 191 (bad, because as you said that is mixed with the black 
background, which doesn't seem right) but a transparency of .5 (which
also probably isn't right, since it should represent the cumulative
transparency along the ray, or .25)  The latter problem will definitely
be fixed in 3.5, which will generate an image with a transparency
of .25, but the former problem, if it is a problem, appears unchanged
in the current development build.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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