POV-Ray : Newsgroups : povray.general : asymmetric density maps : Re: asymmetric density maps Server Time
29 Jul 2024 20:21:39 EDT (-0400)
  Re: asymmetric density maps  
From: Jim Charter
Date: 31 Jul 2010 15:38:05
Message: <4c547b9d$1@news.povray.org>
camera {
   location  <0,0,-10>
   look_at   <0.0, 0.0,  0.0>
   right     x*image_width/image_height
   angle 20
}

// create a regular point light source
light_source {
   0*x                  // light's position (translated below)
   color rgb <1,1,1>    // light's color
   translate vrotate(<0,0,-100>,<60,60,0>)
}


sphere { 0, 1
   hollow
   material{
     texture{
       finish{
         ambient 0
         diffuse 1
         specular 0
         reflection 0
       }
       pigment {rgbt  .99}
     }
     interior{
       media {
         intervals 1
         samples 1,5
         emission 1
         method 3
         density{
           spherical
           warp{black_hole <2,0,0>,2}
           warp{black_hole <0,2,0>,2}
           color_map{
             [.25 rgb 0]
             [1 rgb y]
           }
         }
       }
     }
   }
}


Post a reply to this message

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