POV-Ray : Newsgroups : povray.general : Media Server Time
2 Nov 2024 11:23:44 EDT (-0400)
  Media (Message 1 to 2 of 2)  
From:
Subject: Media
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

From: Thomas Willhalm
Subject: Re: Media
Date: 6 Apr 1999 13:15:44
Message: <qqm1zhxzpw2.fsf@goldach.fmi.uni-konstanz.de>


> 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.
[...]
>                      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> ]
>                                     }
>                                    }
>                           }

Just a guess without trying out your code:
Increase the the density values to numbers greater than 1. Say 4.5 and 9 
instead of 0.45 and 0.9.

I hope this helps.

Thomas

-- 
http://www.fmi.uni-konstanz.de/~willhalm


Post a reply to this message

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