POV-Ray : Newsgroups : povray.advanced-users : Limited Fog?? : Re: Limited Fog?? Server Time
29 Jul 2024 18:20:29 EDT (-0400)
  Re: Limited Fog??  
From: Rune
Date: 30 Apr 2001 15:47:25
Message: <3aedc14d@news.povray.org>
"David Fontaine" wrote:
> Make a big solid shape and add the fade_distance and
> fade_power keywords (and hollow if the camera is
> inside it, I think...).

Fog and fading are two entirely different things as you can se if you render
the code
below (requires MegaPov).
(It simulates interior fog by using an inverted object.)
You could say that if fog is like transmit, fade_color is like filter.

#default {finish {ambient 1 diffuse 0}}
box {<-3,0,7>, <3,-2,8> pigment {color <1,1,1>}}
box {<-3,0,7>, <3,+1,8> pigment {color <1,0,0>}}
box {<-3,1,7>, <3,+2,8> pigment {color <0,1,0>}}
difference {
   sphere {5*z-x, 1 inverse}
   sphere {0, 0.00001}
   pigment {color rgbt 1}
}
fog {
   fog_type 1
   distance 1
   color rgb <0.0,0.0,1.0>
}
sphere {
   5*z+x, 1
   pigment {color rgbf 1}
   interior {fade_power 1 fade_distance 0.6 fade_color <0,0,1>}
   hollow
}

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated March 29)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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