POV-Ray : Newsgroups : povray.general : alpha channel on final render Server Time
30 Jul 2024 08:14:39 EDT (-0400)
  alpha channel on final render (Message 1 to 8 of 8)  
From: MadKairon
Subject: alpha channel on final render
Date: 17 Jul 2009 14:35:00
Message: <web.4a60c3ea3c8038e6417c968c0@news.povray.org>
Hello,

I've tryed but can't get POV-Ray rendering images with alpha channel on the
resulting image. I tried using the comand lines:
"+UA","+UAFN" and a few others but still no alpha on the final render. Can
anybody give me some help?n Thanks


Post a reply to this message

From: Warp
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 14:39:30
Message: <4a60c562@news.povray.org>
MadKairon <nomail@nomail> wrote:
> Hello,

> I've tryed but can't get POV-Ray rendering images with alpha channel on the
> resulting image. I tried using the comand lines:
> "+UA","+UAFN" and a few others but still no alpha on the final render. Can
> anybody give me some help?n Thanks

  How about "+ua +fn" instead?

  And the (empty) background must be directly visible in the rendered image
for there to be any transparency in the image.

-- 
                                                          - Warp


Post a reply to this message

From: MadKairon
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 14:50:01
Message: <web.4a60c73d8515e0fa417c968c0@news.povray.org>
nope, I also tried +ua +fn32. Now I get at least the alpha channel but no
transparency information. On GIMP alpha channel is just white. The scene is
basically an object and the rest is all background, not even sky sphere is set.


Post a reply to this message

From: MadKairon
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 15:00:00
Message: <web.4a60c94a8515e0fa417c968c0@news.povray.org>
wait... I solved it, I was using radiosity and setting a background color to
affect how my object looked like. This is too bad, I really needed that
background color, it's not the same effect without it even if I still use
radiosity and some ambient lights. Gonna try to render it without the
background and then use that alpha channel for the other image.


Post a reply to this message

From: clipka
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 16:55:00
Message: <web.4a60e47b8515e0faee20e5f50@news.povray.org>
"MadKairon" <nomail@nomail> wrote:
> I've tryed but can't get POV-Ray rendering images with alpha channel on the
> resulting image. I tried using the comand lines:
> "+UA","+UAFN" and a few others but still no alpha on the final render. Can
> anybody give me some help?n Thanks

the correct thing should be:

  +UA +FN

(the second parameter selecting the PNG so you get a file format that does
support the alpha channel; note that POV-Ray does *not* support concatenating
of command line switches.)

Make sure you're not using a sky_sphere - or any other "sky object" of course.


Post a reply to this message

From: clipka
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 17:00:01
Message: <web.4a60e5ad8515e0faee20e5f50@news.povray.org>
"MadKairon" <nomail@nomail> wrote:
> nope, I also tried +ua +fn32. Now I get at least the alpha channel but no
> transparency information. On GIMP alpha channel is just white. The scene is
> basically an object and the rest is all background, not even sky sphere is set.

I'd be surprised if POV-Ray's PNG output would support 32-bit *per channel*.

Please do try "+UA +FN", it should give you a nice standard PNG file with alpha
channel.

Maybe GIMP doesn't support alpha channels with any other bit depth than the
default of 8 bits. Or POV-Ray doesn't.


Post a reply to this message

From: clipka
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 17:00:01
Message: <web.4a60e61a8515e0faee20e5f50@news.povray.org>
"MadKairon" <nomail@nomail> wrote:
> wait... I solved it, I was using radiosity and setting a background color to
> affect how my object looked like. This is too bad, I really needed that
> background color, it's not the same effect without it even if I still use
> radiosity and some ambient lights. Gonna try to render it without the
> background and then use that alpha channel for the other image.

Try using a huge sphere with finish { ambient 1 diffuse 0 specular 0 }, and the
no_image keyword.


Post a reply to this message

From: MadKairon
Subject: Re: alpha channel on final render
Date: 17 Jul 2009 18:25:00
Message: <web.4a60f9ef8515e0fa417c968c0@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "MadKairon" <nomail@nomail> wrote:
> > wait... I solved it, I was using radiosity and setting a background color to
> > affect how my object looked like. This is too bad, I really needed that
> > background color, it's not the same effect without it even if I still use
> > radiosity and some ambient lights. Gonna try to render it without the
> > background and then use that alpha channel for the other image.
>
> Try using a huge sphere with finish { ambient 1 diffuse 0 specular 0 }, and the
> no_image keyword.

Thanks clipka, that solves it 100%


Post a reply to this message

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