POV-Ray : Newsgroups : povray.general : Problem with scattering media and .png alpha channel : Re: Problem with scattering media and .png alpha channel Server Time
29 Jul 2024 22:26:56 EDT (-0400)
  Re: Problem with scattering media and .png alpha channel  
From: MadKairon
Date: 1 Jun 2010 22:10:01
Message: <web.4c05bd0bf0ecff7f4fb7f0280@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 02.06.2010 03:22, schrieb MadKairon:
>
> > if I use no background and render using +fn32 no media effect is visible.
> > Doesn't happen when I use a black background. Is there any way to solve this?
>
> Be aware that the value behind "+fn" does not specify the bits per
> /pixel/, but rather the bit depth of each /color channel/; i.e. "+fn32"
> would correspond to 96 or 128 bits per pixel (depending on whether you
> choose alpha transparency or not).
>
> I guess what you really want is "+fn8 +ua".

Nope, here's a simple scene:

#include "colors.inc"
background{Black}

camera {
  angle 20
  location<0,2,-10>*1
  look_at<0,0,0>
}
light_source { <10, 20, -10> color White }

 sphere
 { 0,1 pigment { rgbt 1 } hollow
   interior
   { media
     { emission 1
       density
       { spherical density_map
         { [0 rgb 0]
           [0.4 rgb <1,0,0>]
           [0.8 rgb <1,1,0>]
           [1 rgb 1]
         }
       }
     }
  }
 }

try using +fn8 +ua, first render as I posted it and then coment the second line
and see what happens :(


Post a reply to this message

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