POV-Ray : Newsgroups : povray.newusers : Fog and media containers problem Server Time
4 Nov 2024 19:14:57 EST (-0500)
  Fog and media containers problem (Message 1 to 4 of 4)  
From: Louis Somers
Subject: Fog and media containers problem
Date: 31 Jul 2003 14:47:09
Message: <Xns93C9D3238417Enospam0546179student@204.213.191.226>
Hi, I'm new to PovRay and raytracing, since I downloaded it I love it.

I'm trying to make a outdoor scene with a "flame" (sphere with some media 
in it). Without using fog the scene looks ok, but when using fog, the 
sphere which contains the media becomes visible. Changing the fog distance 
helps, but ruins the rest of the scene.

The sphere is declared like this:

#declare flame = sphere{
 <0,0,0>,2
 pigment { color transmit 1.0 }
 hollow
 interior {
  media {
   absorption 50 
   emission 28 
   scattering {1, 1}
   density {fire} 
   translate wind*clock
   }
  }
 }

I also tried 

pigment { rgbf <1,1,1,1> }

but nothing seems to work. Is there a way to make the sphere invisible so 
that even the fog continues inside it, or at least not "condense" around 
it's boundarys? Any suggestions would be welcome.

Cheers,
Louis


Post a reply to this message

From: gonzo
Subject: Re: Fog and media containers problem
Date: 1 Aug 2003 03:11:33
Message: <3f2a12a5$1@news.povray.org>
Louis Somers <nos### [at] studenthronl> wrote in message
news:Xns### [at] 204213191226...
> Hi, I'm new to PovRay and raytracing, since I downloaded it I love it.
>
> I'm trying to make a outdoor scene with a "flame" (sphere with some media
> in it). Without using fog the scene looks ok, but when using fog, the
> sphere which contains the media becomes visible. Changing the fog distance
> helps, but ruins the rest of the scene.

Sounds like the same problem I had...
http://news.povray.org/povray.general/31751/

Make sure there's no filter component in your fog.

RG


Post a reply to this message

From: Louis Somers
Subject: Re: Fog and media containers problem
Date: 1 Aug 2003 06:47:05
Message: <Xns93CA81BEA9581nospam0546179student@204.213.191.226>
"gonzo" <rgo### [at] lansetcom> wrote in news:3f2a12a5$1@news.povray.org:

> Sounds like the same problem I had...
> http://news.povray.org/povray.general/31751/
> 
> Make sure there's no filter component in your fog.
> 
> RG

Thanks, that works. Unfortunately transmit also causes the effect. But at 
least I know it's not the container I should be looking at.

I'm using the fog just to fade the horizon a bit, without filter or 
transmit it's too bright.

I now have it set to this:

fog{fog_type 2
    rgb <0.9, 0.9, 0.9>
    transmit 0.5 
    fog_offset 20
    fog_alt    7
    distance   70}

It does help if I change the distance to 250 (the effect is still there, 
but so dim that no one will notice unless they are really looking for it). 
but then there is a visible borderline in the plane before the horizon 
where the fog starts.

Any ideas maybe how to fade that borderline out or something? That would be 
a good workaround.

Thanks again,
Louis


Post a reply to this message

From: gonzo
Subject: Re: Fog and media containers problem
Date: 1 Aug 2003 14:55:01
Message: <web.3f2ab6a8d74e9d4ca0c272b50@news.povray.org>
Louis Somers wrote:
>I'm using the fog just to fade the horizon a bit, without filter or
>transmit it's too bright.
>
>I now have it set to this:
>
>fog{fog_type 2
>    rgb <0.9, 0.9, 0.9>
>    transmit 0.5
>    fog_offset 20
>    fog_alt    7
>    distance   70}
>

Well, bright is pretty easy to deal with, just make it darker.
    rgb <0.5,0.5,0.5> (or whatever value works...)

You can also have multiple fogs, so maybe one set waaaay back with a higher
alt value, and another in front close to the ground and darker...

RG


Post a reply to this message

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