|
|
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
|
|