POV-Ray : Newsgroups : povray.newusers : Transparent background : Re: Transparent background Server Time
26 Apr 2024 08:03:44 EDT (-0400)
  Re: Transparent background  
From: William
Date: 13 Sep 2019 17:55:01
Message: <web.5d7c0ff0330653d59fc45d470@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 9/13/19 4:17 PM, William wrote:
> > Hello all,
> > I am a newbie in POV-ray and I am trying to generate a image with transparent
> > background.
> >
> > I used:
> > background{colour rgbt <0.0, 0.0, 0.0>}
> >
> > and I got a black background. Can anybody please provide your support to get a
> > black background?
> >
> > Thanks.
> >
> > William
> >
>
> Taking you not to be asking exactly what you asked, try:
>
> background { colour rgbt <0,0,0,1> }
>
> Your three values get promoted to 4 and the 't' values becomes 0 - or no
> transparency. Remember to use +ua and the default png type output(1).
>
> Bill P.
>
> (1) I think openexr is the other which supports the transparency, but I
> don't much use the feature myself so maybe not... Most image formats
> don't support it.


Hi Bill,

Thank you for your reply. My initial settings are like this below:
#include "colors.inc"
background {color rgbt <0, 0, 0, 1> }

#declare MainColor = rgb<1.0,0.0,0.0>;;
  camera {
    angle 45
    location <150.92993637586693,30.07787677021389,97.7056826656392>
    look_at <25,25,25>
  }
  light_source { <101.28273227706191,100.10083875733939,98.7618381976087> color
White shadowless}


I don't know how to intiate the UA setting. Can you please elaborate this?

William


Post a reply to this message

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