POV-Ray : Newsgroups : povray.binaries.images : media-fog bug? : Re: media-fog bug? Server Time
4 Nov 2024 17:53:52 EST (-0500)
  Re: media-fog bug?  
From: Thomas de Groot
Date: 20 Feb 2006 10:57:41
Message: <43f9e6f5@news.povray.org>
Perhaps I should include the used code:

The fogs:
fog {
  fog_type   2
  distance   15
  color      rgb 0.6 // gray
  fog_offset 0.05   // below this level the fog is constant
  fog_alt    0.29   // halving distance
  turbulence 1
}

fog {
  fog_type   2
  distance   800
  color      rgb <0.8, 0.8, 0.8>
  fog_offset 0.1   // below this level the fog is constant
  fog_alt    15.00   // halving distance
  turbulence 0.1
}

And the media:
#declare Scattering =
sphere {
  0, 10
  texture {
    pigment { rgbt 1 }
  }
  interior {
    media {
      samples 10, 100
      scattering {1, <0.9, 0.9, 0.9, 0.0, 0.9> extinction 3} // higher
extinction = more transparant media
      intervals 1
      density {
        spherical
        poly_wave 5
        scale 2
        warp { turbulence <T,T/2,T/1> }
        scale 2
        warp { turbulence <T,T/2,T/2> }
        scale 2
        warp { turbulence <T,T/2,T/3> }
        scale 2
        warp { turbulence <T,T/2,T/4> }
      }
      scale 0.3*exp(pow(T,0.5))/(1+T)
    }
  }
  hollow
  scale <1,1,1>
}

object {Scattering
  scale <0.3, 0.6, 0.3>
  translate <1.75, 0, 2.0>
}


Post a reply to this message

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