POV-Ray : Newsgroups : povray.binaries.images : approximating arial perspective with fog : Re: approximating arial perspective with fog Server Time
9 Aug 2024 01:25:14 EDT (-0400)
  Re: approximating arial perspective with fog  
From: Thomas de Groot
Date: 2 Apr 2005 01:57:31
Message: <424e425b@news.povray.org>
"Abe" <bul### [at] taconicnet> schreef in bericht
news:424df1e1$1@news.povray.org...
> Thomas de Groot wrote:
> > Could we see a little piece of code, pleeeaaase??? ;-)
>
> Well, there's not much to see. The operative part goes something like
this:
>
> #declare NearFogColor = <0,.1,1>; //Blueish color
> #declare FarFogColor = <.9,.9,.9>; //Light gray horizon color
>
> //Near fog
> fog{distance 50 color rgb NearFogColor}
>
> //Distant fog
> fog{distance 80 color rgb FarFogColor-NearFogColor}
>
> This would of course be tweaked to suit the scene.
>

Ah! Like that! I was not entirely sure I had understood the process. Very
simple and very effective... and very useful. Thanks a lot!

Thomas


Post a reply to this message

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