POV-Ray : Newsgroups : povray.text.scene-files : scattering media Server Time
31 Oct 2024 10:23:00 EDT (-0400)
  scattering media (Message 1 to 1 of 1)  
From: NoOne
Subject: scattering media
Date: 26 Aug 2000 20:22:21
Message: <39a85f3d$1@news.povray.org>
I posted an image of thin smoke illuminated by light coming through a window
in povray.binaries.images.
Here is the source for the scattering effect.

#declare Material2 =
   material  // Material2
   {
      texture
      {
         pigment
         {
            color rgbt <1.0, 1.0, 1.0, 1.0>
         }
      }
      interior
      {
         media
         {
            intervals 50
            scattering
            {
               2 ,  rgb <1.0, 1.0, 1.0> // mie hazy scattering
               extinction 0.5
            }
            density
            {
               agate
               agate_turb 1.0
               color_map
               {
                  [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 0.48    rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 0.5     rgbft <0.05, 0.05, 0.05, 0.0, 0.0> ]
                  [ 0.52    rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 1.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
               }
               scale  <2.0, 2.0, 0.5>
            }
         }
      }
   }


Post a reply to this message

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