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:27:23 EDT (-0400)
  Re: Problem with scattering media and .png alpha channel  
From: MadKairon
Date: 2 Jun 2010 12:10:01
Message: <web.4c068228f0ecff7f4fb7f0280@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 02.06.2010 12:29, schrieb MadKairon:
>
> > Ah :( thanks. Using 3.7 beta 37. Guess I need some other way of simulating
> > athmosphere for planets I want to use on GIMP later. Any good ideas?
>
> Render the scene two times: Once with +UA, once with -UA (and a black
> background).
>
> Take the +UA render, and - preserving transparency - paint it
> pitch-black. Use this as a layer in front of your intended background
> image, with standard blending mode. This will suppress the background
> image where the opaque parts of the planet will go.
>
> Take the -UA render, and put it in front of the other layers, using
> whichever GIMP layer blending mode will cause it to be /added/ to the
> layers below.
>
> This should work even with scattering media (which has both
> emission-like and absorption-like components).

Thanks for the tip, will try it.


Post a reply to this message

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