POV-Ray : Newsgroups : povray.text.scene-files : First try with media (clouds.pov) Server Time
1 Nov 2024 11:13:35 EDT (-0400)
  First try with media (clouds.pov) (Message 1 to 1 of 1)  
From: Kevin Ellis
Subject: First try with media (clouds.pov)
Date: 2 Apr 2000 06:19:04
Message: <38e71e98@news.povray.org>
#version unofficial MegaPov 0.4;

#declare Rad=250000;

global_settings

  max_trace_level 20
}

camera {
  location <0,600,0>   // camera is at a large height to show the shadows,
it is currnetly about a 10th of the way up to the clouds
  look_at <0,7.5,15000>
}

light_source {
  <200000,1000000,-200000>
  color rgb <1,1,0.95>
 media_attenuation on
  media_interaction on
}

background { <0.5, 0.55, 0.62> }

/* Clouds */

difference {
  sphere {
    0,Rad
  }
  sphere {
    0,Rad-5000
  }
  material {
    texture {
      pigment { rgbf 1}
      finish { ambient 0 diffuse 0 }
    }
    interior {
      media {
        scattering {3, .005 extinction 0.4}
        method 3
        samples 16,16
        intervals 1
        aa_level 2
        aa_threshold 0.1
        jitter 0.00
        density {
          spotted               // for lighter (especially if the mist is
removed), less dense clouds try something like this
          color_map {           // color_map {
            [0 rgb 0]           //   [0 rgb 0]
            [0.5 rgb 0]         //   [0.65 rgb 0]
            [0.7 rgb 0.2]       //   [0.8 rgb 0.1]
            [1 rgb 0.4]         //   [1 rgb 0.2]
          }                     // }
          octaves 4
          lambda 3.6
          omega 0.5
          turbulence <1,0.5,1>
          scale <70,45,70>*100
          translate <0,Rad-6000,0>
        }
        density {
          planar
          color_map {
            [0 rgb 0]
            [0.1 rgb 0]
            [0.7 rgb 1]
            [1 rgb 1]
          }
          turbulence 0.05
          scale <1,11000,1>
          translate <0,Rad,0>
        }
        translate <-25000,0,0>
      }
    }
  }
  translate <0,11000-Rad,0>
  hollow
}

/* Mist */

sphere {
  0,Rad-5000.5
  material {
    texture {
      pigment { rgbf 1}
      finish { ambient 0 diffuse 0 }
    }
    interior {
      media {
        scattering {3, (<2,16/11,4/3>)*(1/3100) extinction 0.3}
        method 3
        samples 16,16
        intervals 1
        aa_level 2
        aa_threshold 0.1
        jitter 0.00
        density {
          color rgb <0.5,0.5,0.5>
        }
      }
    }
  }
  hollow
  translate <0,11000-Rad,0>
}

/* Simple Ground */

box {
  <-250000,-0.001,-250000>
  <250000,0,250000>
  pigment {
    bozo
    color_map {
      [0 rgb <0.5,0.7,0.4>]
      [1 rgb <0.7,0.9,0.5>]
    }
    turbulence 0.5
    scale 0.01
  }
}


Post a reply to this message

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