POV-Ray : Newsgroups : povray.newusers : how to generate transparent image : Re: how to generate transparent image Server Time
21 Apr 2024 04:25:32 EDT (-0400)
  Re: how to generate transparent image  
From: Thomas de Groot
Date: 22 Feb 2017 02:43:01
Message: <58ad4105$1@news.povray.org>
On 21-2-2017 23:52, Stephen wrote:
> On 2/21/2017 9:43 PM, zhekai wrote:
>> Hi All,
>>
>> I want to render a image with transparent background. And I found
>> online that
>> with command inline +UA will lead to transparent background. Here is
>> my problem,
>> after using command inline "+UA", I do see the transparent checkboard
>> background
>> that Pov-Ray is rendering at Pov-Ray window. However, the actual
>> picture file
>> that is being generated is not transparent, and has white background.
>> Any ideas
>> how to fix it? I have tried different picture format such as png, jpg,
>> and none
>> of them shows the transparent background. I could post some mini
>> example to show
>> my code if that is necessary. Thanks.
>>
>> Zhekai
>>
>>
> Hi Zhekai and welcome.
>
> You have to define the background as transparent.
>
> For instance: background { colour rgbt <0.0, 0.0, 0.0, 0.0> }
>
> Or better still to use the sRGB standard
> background { colour srgbt <0.0, 0.0, 0.0, 0.0> }
>
>
>

correction: background { colour srgbt <0.0, 0.0, 0.0, 1.0> }  ;-)

-- 
Thomas


Post a reply to this message

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