POV-Ray : Newsgroups : povray.newusers : I don't understand media : I don't understand media Server Time
5 Sep 2024 08:19:55 EDT (-0400)
  I don't understand media  
From: Jason Jong
Date: 4 Jul 2001 20:51:54
Message: <3b43ba2a$1@news.povray.org>
Am I the only one who finds media utterly incomprehensible? I want to make a
glow effect, with a bright center and a dimmer exterior. So far, I've only
succeeded in making a dark circle. What am I doing wrong?

*******


#include "colors.inc"
#include "skies.inc"

sky_sphere {S_Cloud1}

fog {distance 250
     color rgbf<1,1,1,1>
     fog_type 2
     fog_offset -1
     fog_alt 15}

camera {location <15,5,0>
        look_at <0,3,0>}

light_source {<15,5,0> color White}

plane {y,0 pigment {Tan}}

sphere { <-2,2,0>, 1
  pigment { color rgbf<1, 1, 1, .9> }
  finish { ambient 0 diffuse 0 }
  interior {
    media {     emission 1
  samples 1, 10
  density {
    spherical
    color_map {
      [0.0 color rgb <0, 0, 0>]
      [0.5 color rgb <.8, .8, .8>]
      [1.0 color rgb <1, 1, 1>]
    }
  }
}  }translate <0,3,0> hollow   }


Post a reply to this message

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