POV-Ray : Newsgroups : povray.general : Object inside opaque media : Re: Object inside opaque media Server Time
16 Apr 2024 11:19:01 EDT (-0400)
  Re: Object inside opaque media  
From: Alain
Date: 8 Nov 2018 17:04:41
Message: <5be4b2f9$1@news.povray.org>
Le 18-11-08 à 11:02, Shuffle a écrit :
> Hi everyone!
> 
> I need to place an object inside a (scattering) media and have the media so
> dense I cannot see the object from outside the media. But, and that part is
> giving me trouble, the media could be any color, including "dark" ones.
> 
> What I actually try to achieve is to model a planet with a dense atmosphere.
> Like Venus or, in my case, Saturn's moon Titan. The camera will approach the
> body and dive into the atmosphere, revealing the terrain only at lower
> altitudes.
> You can get a pretty good idea of what I'm trying to achieve by following this
> link: https://www.youtube.com/watch?v=9L471ct7YDo&t=55s
> 
> What I could not find is a way to set the density using a function{} block and
> still be able to control the color independently.
> 
> Is that feasible? Bonus points if the color can be set using another function or
> a color map, but I could manage with a fixed color and use multiple medias.
> 
> No matter what I try, I always end up seeing the body through the atmosphere.
> Brighter media color seems more opaque, but that is probably just an artifact
> and is not desirable anyway.
> Maybe my approach is totally wrong?
> 
> Here is the most simple scene I could make to demonstrate my problem:
> 

Try adding some absorbing media. It's density should match that of the 
scattering media, or diminish slightly faster.

media{absorbtion rgb 1} will fade to black as it absorb everything.


Post a reply to this message

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