POV-Ray : Newsgroups : povray.advanced-users : How to avoid or remove fog from the backgound? : Re: How to avoid or remove fog from the backgound? Server Time
28 Jul 2024 12:36:19 EDT (-0400)
  Re: How to avoid or remove fog from the backgound?  
From: Abe
Date: 28 Jul 2005 07:15:01
Message: <web.42e8bd495ae24a7bda0ab25c0@news.povray.org>
The limitations abound, but:

1. Function based texture applied to all objects but which doesn't affect
the background. E.g. function(sqrt(x*x+y*y+z*z)) appropriately translated
and normalized to taste. This method will fall flat with reflections and so
forth.

2. Vahur Krouverk's Povman may give more access to the ray length
information, including reflections, for shader writing. Not sure though.

3. A questionable alternative to not affecting the background color with
fog, is to render a dual colored fog which is, say white, in the foreground
and cyan in the extreme distance, effectively creating a different colored
background suitable as a mask. This requires two fog statements: foreground
colored fog and backgound fog set to extreme distance with a
subtractive/addative color which will result in the desired background
color when applied to the forground color.

Regarding media fog, you should be able to duplicate colored fog using
emission media (fog color) and absorption media (white). You may also have
to set the absorption intensity to about 10x that of the emission media.

Abe


Post a reply to this message

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