POV-Ray : Newsgroups : povray.general : Fog & media together? : Re: Fog & media together? Server Time
4 Aug 2024 10:23:13 EDT (-0400)
  Re: Fog & media together?  
From: Hughes, B 
Date: 26 May 2003 00:24:29
Message: <3ed196fd@news.povray.org>
I'm not at all sure if this is related to something discussed long ago but
if it is it would be due to trouble with transparency or filtered colors. I
just can't remember if a fix was attempted in 3.5 either, and if so that
making this a different problem. Or there's something else amiss in how
you're scene is done I guess.
----
Well, I checked a simple scene here and didn't see what you described. Only
thing that shows up is the shadow of the sphere, unless no_shadow is added
to remove it. Shouldn't be seeing the shadow though, ideally, so that could
be a bug still.

Here it is to try yourself:

camera {
  location  <0, .5, -3>
  right     x*image_width/image_height
  look_at   0
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0 rgb <.7,.8,.9>]
      [1 rgb <.2,.4,.8>]
    }
  }
}

light_source {<-30, 30, -30>,1}

fog {
 fog_type 2
 distance 5
 color <.8,.8,.8>
 fog_alt .5
 fog_offset -1
}

plane {y,-1 pigment {color rgb <.3,.9,.3>}}

sphere {
  0, 1
  texture {
    pigment {rgbf 1}
  }
 interior {
  media {
    emission <.6,.3,.1> // commented or uncommented, same
    absorption <.1,.3,.6> // commented or uncommented, same
   scattering { // commented or uncommented, same
    1,<.6,.3,.1>
   }
   density {
    spherical
    density_map {
     [.3 rgb 0]
     [1 rgb 1]
    }
    turbulence .5
   }
  }
 }
 hollow
// no_shadow
}


Post a reply to this message

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