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:33:52 EDT (-0400)
  Re: Problem with scattering media and .png alpha channel  
From: clipka
Date: 2 Jun 2010 07:20:52
Message: <4c063e94$1@news.povray.org>
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).


Post a reply to this message

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