POV-Ray : Newsgroups : povray.general : Help filling in radial gradient colors : Re: Help filling in radial gradient colors Server Time
29 Jul 2024 02:33:50 EDT (-0400)
  Re: Help filling in radial gradient colors  
From: waggy
Date: 15 May 2013 13:10:01
Message: <web.5193bff8aceea82021be1230@news.povray.org>
Something like this? (You'll need to make the substrate box hollow.) You may
want to make the other objects darker so a brighter glow can be seen against
them.

intersection{
  plane{y,0}
  sphere{<0,0,0>,1}
  interior{
    media{
    emission 1
    density{ spherical triangle_wave
      density_map{
        [0.0 rgb<0.0, 0, 1.0>]
        [0.9 rgb<0.3, 0, 0.8>]
        [1.0 rgb<1.0, 0, 0.0>]
      } }
    }//end emission media
    media{
    absorption 1
    density{ spherical //poly_wave 0.5
      density_map{
        [0.0,rgb<0.0, 0, 0.2>]
        [0.0,rgb<1.0, 0, 0.0>]}
      }
    }//end absorption media
  }//end interior
  texture{ pigment{color rgbt<1,1,1,1>} }
hollow
}//end intersection

Hope this helps
~waggy


Post a reply to this message

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