POV-Ray : Newsgroups : povray.beta-test : Alpha channel with background color Server Time
2 Jun 2024 00:36:43 EDT (-0400)
  Alpha channel with background color (Message 11 to 20 of 25)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>
From: Jim Holsenback
Subject: Re: Alpha channel with background color
Date: 31 Dec 2011 09:07:02
Message: <4eff1706$1@news.povray.org>
On 12/31/2011 09:03 AM, Jim Holsenback wrote:
> On 12/31/2011 08:23 AM, Cousin Ricky wrote:
>> Alain<aze### [at] qwertyorg> wrote:
>>> Effectively, if I remember correctly, the background now need a filter
>>> or transmit value to allow alpha transparency.
>>
>> Except that anti-aliasing doesn't appear to work properly.
>>
>>
> look at the bottom of this section:
>
http://wiki.povray.org/content/Documentation:Reference_Section_1.3#Anti-Aliasing_Options
>
>
> perhaps the problem you are seeing can be mitigated by specifying +AG1.0
> which effectively gives neutral behavior ... 2.5 is the default. Haven't
> tried this ... maybe for a shot ;-)

LOL ... should be "maybe worth a shot" ... still sounds funny ;-)


Post a reply to this message

From: clipka
Subject: Re: Alpha channel with background color
Date: 13 Jan 2012 16:58:19
Message: <4f10a8fb$1@news.povray.org>
Am 31.12.2011 14:23, schrieb Cousin Ricky:
> Alain<aze### [at] qwertyorg>  wrote:
>> Effectively, if I remember correctly, the background now need a filter
>> or transmit value to allow alpha transparency.
>
> Except that anti-aliasing doesn't appear to work properly.

Can you be more specific?


Post a reply to this message

From: Cousin Ricky
Subject: Re: Alpha channel with background color
Date: 15 Jan 2012 20:25:00
Message: <web.4f137b473d3e0ec485de7b680@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 31.12.2011 14:23, schrieb Cousin Ricky:
> > Except that anti-aliasing doesn't appear to work properly.
>
> Can you be more specific?

See post in povray.binaries.images.


Post a reply to this message

From: clipka
Subject: Re: Alpha channel with background color
Date: 16 Jan 2012 09:25:08
Message: <4f143344$1@news.povray.org>
Am 16.01.2012 02:20, schrieb Cousin Ricky:
> clipka<ano### [at] anonymousorg>  wrote:
>> Am 31.12.2011 14:23, schrieb Cousin Ricky:
>>> Except that anti-aliasing doesn't appear to work properly.
>>
>> Can you be more specific?
>
> See post in povray.binaries.images.

Ah, yes - this actually has nothing to do with anti-aliasing, but is a 
side effect of various changes to the alpha channel handling introduced 
with 3.7.beta.38, which apparently break down in case the resulting 
transparency is exactly 1.0 (as opposed to e.g. 0.9999), and generally 
don't play nice with colored yet transparent background colors.

I guess it's back to the drawing board for me.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Alpha channel with background color
Date: 13 Feb 2012 18:45:01
Message: <web.4f399f873d3e0ec478641e0c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 16.01.2012 02:20, schrieb Cousin Ricky:
> > clipka<ano### [at] anonymousorg>  wrote:
> >> Am 31.12.2011 14:23, schrieb Cousin Ricky:
> >>> Except that anti-aliasing doesn't appear to work properly.
> >>
> >> Can you be more specific?
> >
> > See post in povray.binaries.images.
>
> Ah, yes - this actually has nothing to do with anti-aliasing, but is a
> side effect of various changes to the alpha channel handling introduced
> with 3.7.beta.38, which apparently break down in case the resulting
> transparency is exactly 1.0 (as opposed to e.g. 0.9999), and generally
> don't play nice with colored yet transparent background colors.

Workaround:

sphere
{  0, HUGE_RADIUS
   pigment { rgb BACKGROUND_COLOR }
   finish { ambient 0 diffuse 0 emission 1 }
   no_image
}


Post a reply to this message

From: Cousin Ricky
Subject: Re: Alpha channel with background color
Date: 16 Feb 2012 05:45:00
Message: <web.4f3cdde33d3e0ec478641e0c0@news.povray.org>
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> sphere
> {  0, HUGE_RADIUS
>    pigment { rgb BACKGROUND_COLOR }
>    finish { ambient 0 diffuse 0 emission 1 }
>    no_image
> }

That sphere should be declared hollow.

What happened to that warning about the camera being inside a non-hollow object?
 That could have saved me days of banging my head against the wall.


Post a reply to this message

From: clipka
Subject: Re: Alpha channel with background color
Date: 16 Feb 2012 10:33:50
Message: <4f3d21de$1@news.povray.org>
Am 16.02.2012 11:43, schrieb Cousin Ricky:
> "Cousin Ricky"<rickysttATyahooDOTcom>  wrote:
>> sphere
>> {  0, HUGE_RADIUS
>>     pigment { rgb BACKGROUND_COLOR }
>>     finish { ambient 0 diffuse 0 emission 1 }
>>     no_image
>> }
>
> That sphere should be declared hollow.
>
> What happened to that warning about the camera being inside a non-hollow object?
>   That could have saved me days of banging my head against the wall.

There's no reason to warn about such a situation. The "hollow" keyword 
only affects how the object interacts with media.

BTW, instead of a huge sphere you could just as well use a sky_sphere - 
it /should/ do exactly the same (provided you're using "#version 3.7"). 
There /is/ a difference between specifying a background and specifying a 
single-colored sky sphere.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Alpha channel with background color
Date: 17 Feb 2012 13:05:00
Message: <web.4f3e95e73d3e0ec478641e0c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> There's no reason to warn about such a situation. The "hollow" keyword
> only affects how the object interacts with media.

That was exactly my situation.

The warning is (was) useful.


Post a reply to this message

From: Stephen
Subject: Re: Alpha channel with background color
Date: 17 Feb 2012 13:39:34
Message: <4f3e9ee6@news.povray.org>
On 17/02/2012 6:01 PM, Cousin Ricky wrote:
> The warning is (was) useful.

I agree.

-- 
Regards
     Stephen


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Alpha channel with background color
Date: 18 Feb 2012 20:07:42
Message: <4f404b5e$1@news.povray.org>
Cousin Ricky wrote:
> clipka <ano### [at] anonymousorg> wrote:
>> There's no reason to warn about such a situation. The "hollow" keyword
>> only affects how the object interacts with media.
> 
> That was exactly my situation.
> 
> The warning is (was) useful.

I think the point of clipka's comment was that the old warning
also did not test whether the media container was inside a non-hollow
object (the situation creating the problem). It only warned for the
camera position (not related to the problem, although you could get
lucky if the culprit was an enclosing room or environment object).

Of course, it does beg the question whether a warning couldn't just
be printed when some media is encountered but not rendered due to the
non-hollowness (it has to be checked somewhere to have an effect?).


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>

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