POV-Ray : Newsgroups : povray.newusers : transparent (alpha channel) backgound? : Re: transparent (alpha channel) backgound? Server Time
4 May 2024 07:11:45 EDT (-0400)
  Re: transparent (alpha channel) backgound?  
From: Warp
Date: 17 Aug 2008 17:00:24
Message: <48a89167@news.povray.org>
gbclemson <nomail@nomail> wrote:
> I have seen a lot of info about using "transmit" and making sure that I am
> outputting a PNG or TGA but I have not had any success getting these things to
> actually work.

  "transmit" has nothing to do with the output file alpha channel (I really
don't understand where you or anyone else got that idea). What you need is:

1) Use the command-line option +ua
2) Output to an image format that supports alpha channel, such as
   png or tga.
3) Have some visible background on your scene (in other words, parts
   of the image which do not have *anything* at all, just empty background).

  Example scene:

//-------------------------------------------------------------------------
camera { location -z*5 look_at 0 angle 35 }
light_source { <100, 200, -300>, 1 }
sphere
{ 0, 1
  pigment { rgb <1, 0, 0> }
  finish { specular .5 }
}
//-------------------------------------------------------------------------

  I rendered that scene at 320x240, using antialiasing and +ua, and
outputting to a png file, and the result was:

http://warp.povusers.org/images/test.png

  If your image manipulation program cannot correctly read the alpha
channel from that image file, then your image manipulation program is
broken.

-- 
                                                          - Warp


Post a reply to this message

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