POV-Ray : Newsgroups : povray.general : Media : Media Server Time
12 Aug 2024 03:25:50 EDT (-0400)
  Media  
From:
Date: 5 Apr 1999 20:14:16
Message: <370943c8.0@news.povray.org>
I'm trying to make a sphere filled with a radial effect. I used media as
show with the following code, but I still have  several problems:
- Too much transparent (if render over a checkered wall ou image map box)
- When rendered over a white or almost white background the effect
dissapear.

What shoul I do?
Is emitting media the right solution?
Is media the right solution?



background { rgb 0.5 }

camera {  //  Camera Camera01
  location  <   -226.851,   -3106.107,     176.680>
  direction <        0.0,         0.0,      1.2973> // Aperture is 0.74
degrees
  sky       <    0.00000,     0.00000,     1.00000> // Use right
handed-system
  up        <        0.0,         0.0,         1.0> // Where Z is up
  right     <    1.49800,         0.0,         0.0> // Aspect ratio
  look_at   <   -207.691,    2133.474,     408.256>
}

light_source {   // Light001
  <-1850.778, -1260.786, 523.438>
  color rgb <1.000, 1.000, 1.000>*1
}

sphere {<0,0,0>,1
        material{


               pigment{rgbf <1,1,1,1>}
               finish{ambient 1.0 diffuse 0.0}
                   }
            interior{
                     media{
                           intervals 5
                           samples 1,5
                           confidence 0.9999
                           variance 1.0/1000
                           ratio 0.9
                           emission rgb <0.003, 0.001, 0>
                           density{
                                    cylindrical
                                    color_map
                                    {
                                       [ 0.0 rgbft <0, 0, 0, 0, 0> ]
                                       [ 0.2 rgbft <0.45, 0.45, 0.45, 0,
0> ]
                                       [ 1.0 rgbft <0.9, 0.9, 0.9, 0, 0> ]
                                    }
                                   }
                          }
                     }
                }
  hollow
  scale <260, 260, 400.0>
}


Post a reply to this message

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