POV-Ray : Newsgroups : povray.binaries.images : alpha channel not work : Re: alpha channel not work Server Time
6 Oct 2024 05:28:34 EDT (-0400)
  Re: alpha channel not work  
From: clipka
Date: 7 Aug 2014 23:50:07
Message: <53e448ef$1@news.povray.org>
Am 08.08.2014 03:11, schrieb liujg:

>> The syntax
>>
>>       image_map { gif "DHKX0221.gif"  transmit 0, 1.0}
>>
>> tells POV-Ray that each pixel referring to the first entry of the palete
>> should be treated as being transparent.
>>
>>
>> PNG files (normally) don't use a palette, but store RGB colours for each
>> pixel, so the above approach does not work.
> SO How can I use PNG files which contains alpha channel to be treated as being
> transparent in some area.
> Thank you .

You did everything right on the POV-Ray side: Normally you would simply use:

     image_map { png "DHKX0221.png" }

*BUT*, what we're trying to tell you all along:


     Your *IMAGE* is *BROKEN*.
     =========================

     It does *NOT* contain a /useful/ alpha channel.


Whoever created this image did something wrong when trying to add an 
alpha channel to the image. The alpha channel is there, but the 
information in there says, "all pixels are opaque; there are no 
transparent portions in this image."

How to fix this depends on your image manipulation program, and really 
has nothing to do with POV-Ray at all.


Post a reply to this message

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