POV-Ray : Newsgroups : povray.binaries.images : approximating arial perspective with fog Server Time
19 Nov 2024 06:29:36 EST (-0500)
  approximating arial perspective with fog (Message 1 to 7 of 7)  
From: Abe
Subject: approximating arial perspective with fog
Date: 30 Mar 2005 19:56:58
Message: <424b4ada@news.povray.org>
Here is a scene testing (limited) atmospheric perspective effects with
fog. I liked the results, so I thought I'd share the idea.

The goal was to use fog to get the effect of dark elements becoming blue
and ultimately gray with distance. (The complementary reddening of light
elements is unfortunately not handled here). Two fogs are necessary (one
blue and one to achieve the gray color). Since multiple fogs have their 
color mixed additively, the more distant color (gray in this case) has 
to be set in terms of the sum of the near color and the color of the 
second fog.

For this image, two ground fogs were used in order to get a color 
gradient for the sky.  Although it is not apparent in this image, the 
mountains would effectively transition in color through blue and finally 
into gray. The sun glow is a scattering media effect. Total render time 
approx 0:01:35.

Abe


Post a reply to this message


Attachments:
Download 'fogmixing2.jpg' (83 KB)

Preview of image 'fogmixing2.jpg'
fogmixing2.jpg


 

From: John D  Gwinner
Subject: Re: approximating arial perspective with fog
Date: 31 Mar 2005 02:24:45
Message: <424ba5bd$1@news.povray.org>
"Abe" <bul### [at] taconicnet> wrote in message 
news:424b4ada@news.povray.org...
> Here is a scene testing (limited) atmospheric perspective effects with
> fog. I liked the results, so I thought I'd share the idea.

If that's limited, I want to see an unlimited scene <G>.

It looks very good - as you mention, having mountains further away might 
look interesting too.

        == John ==


Post a reply to this message

From: Ross
Subject: Re: approximating arial perspective with fog
Date: 31 Mar 2005 10:57:08
Message: <424c1dd4$1@news.povray.org>
nice scene!


Post a reply to this message

From: Thomas de Groot
Subject: Re: approximating arial perspective with fog
Date: 1 Apr 2005 01:49:25
Message: <424ceef5@news.povray.org>
"Abe" <bul### [at] taconicnet> schreef in bericht
news:424b4ada@news.povray.org...
> Here is a scene testing (limited) atmospheric perspective effects with
> fog. I liked the results, so I thought I'd share the idea.
>

This works very well, I would say. It is much faster than atmospheric media.
Could we see a little piece of code, pleeeaaase??? ;-)

Thomas


Post a reply to this message

From: Abe
Subject: Re: approximating arial perspective with fog
Date: 1 Apr 2005 20:14:09
Message: <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.

Abe


Post a reply to this message

From: Abe
Subject: Re: approximating arial perspective with fog
Date: 1 Apr 2005 20:19:18
Message: <424df316@news.povray.org>
John D. Gwinner wrote:

> It looks very good - as you mention, having mountains further away might 
> look interesting too.

Here is some terrain which recedes well into the distance. I don't know 
that the atmosphere has the right feel for the subject, however, it is 
more to illustrate a point.

Abe


Post a reply to this message


Attachments:
Download 'fogmixing2b.jpg' (158 KB)

Preview of image 'fogmixing2b.jpg'
fogmixing2b.jpg


 

From: Thomas de Groot
Subject: Re: approximating arial perspective with fog
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.