POV-Ray : Newsgroups : povray.binaries.images : Scattering media with a color_map - how to do? : Scattering media with a color_map - how to do? Server Time
23 Jun 2024 14:51:04 EDT (-0400)
  Scattering media with a color_map - how to do?  
From: Jörg 'Yadgar' Bleimann
Date: 22 Nov 2009 17:44:45
Message: <4b09bedd$1@news.povray.org>
High!

Still trying to get believable Saturnian rings... so I worked through 
the media section of the manual to finally get scattering media which 
shows cylindrical banding - but my attempts failed so far.

Here is the code for the test scene attached below:

union
{
   sphere
   {
     0, 1
     texture
     {
       pigment { color rgb <0.6, 0.4, 0> }
       finish { ambient 0.02 diffuse 1 brilliance 0.8 }
     }
   }
   difference
   {
     cylinder
     {
       <0, -0.001, 0>, <0, 0.001, 0>, 3.68
     }
     cylinder
     {
       <0, -0.0011, 0>, <0, 0.0011, 0>, 1.75
     }
     hollow
     pigment { rgbt 1 }
     interior
     {
       media
       {
         emission 0.75
         scattering
         {
           1, 0.1
           extinction 1
         }
         density
         {
           cylindrical
           color_map
           {
             [0 rgbf <1, 0.8, 0.7, 0.1> ]
             [0.3 rgbf <1, 0.8, 0.7, 0.1> ]
             [0.3 rgbf <0.1, 0.3, 0.1, 0.95>]
             [0.35 rgbf <0.1, 0.3, 0.1, 0.95>]
             [0.35 rgbf <0.9, 0.83, 0.3, 0.2>]
           }
           scale 3.68
         }
       }
     }
   }
   rotate <-4, 7, 0>
   scale 10000
   translate z*50000
}

// end of code

Whatever I tried, the cylindrical pattern never showed up - instead I 
got a uniformly white ring! What's my mistake?

See you in Khyberspace!

Yadgar


Post a reply to this message


Attachments:
Download '2009-11-22 media test, take 41.jpg' (11 KB)

Preview of image '2009-11-22 media test, take 41.jpg'
2009-11-22 media test, take 41.jpg


 

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