POV-Ray : Newsgroups : povray.text.scene-files : Help needed : Re: Help needed Server Time
3 May 2024 04:18:32 EDT (-0400)
  Re: Help needed  
From: Meothuru
Date: 9 Jan 2009 09:40:00
Message: <web.496760d32c05c2aa8c5f53fb0@news.povray.org>
I found a very simple solution for the "magic light".

I remembered that "GIMP" can export gradients into POV-Ray Color_maps (Select
the gradient you want to export and click the right mouse button).

So I searched in "GIMP" for a suitable gradient for "magic lights" and found it
in
the gradient "Deep Sea".

The colors of this GIMP-generated Color_map I took over into the media
density_map....and
that was it.


In my WIP-Scene the "magic light" currently looks like in the attached image
shown.

And here a sample scene:
(exported  code out of the KPOV-modeler)

---[Snip]-----
global_settings {
   assumed_gamma 1.5
   noise_generator 2
}

union {
   //*PMName Magische Kugel

   sphere {  <0, 0, 0>, 1.1
      pigment { color rgbt <1, 1, 1, 1>  }

      interior {
         media {
            density {  spherical

               density_map {
                  [ 0 color rgb <0, 0.00904, 0.166667>  ]
                  [ 0.580968 color rgb <0.089516, 0.199522, 0.393939>  ]
                  [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>   ]
                  [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>   ]
                  [ 0.888147 color rgb <0.08951, 0.679851, 0.795454>   ]
                  [ 1 color rgb <0, 0.969697, 0.969697>  ]
               }
            }

            density {  spherical  }
            emission rgb <1, 1, 0.9999>
         }
      }
      scale 2
      hollow
   }

   sphere {  <0, 0, 0>, 1.15

      pigment {  color rgbt <1, 1, 1, 1>   }

      interior {
         media {
            density {   spherical

               density_map {
                  [ 0 color rgb <0, 0.00904, 0.166667>  ]
                  [ 0.580968 color rgb <0.089516, 0.199522, 0.393939>    ]
                  [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>    ]
                  [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>   ]
                  [ 0.888147 color rgb <0.08951, 0.679851, 0.795454>    ]
                  [ 1 color rgb <0, 0.969697, 0.969697>   ]
               }
            }

            density {    spherical   }
            emission rgb <1, 1, 0.9999>
         }
      }
      scale 1.5
      matrix < 1.61803, 0, 0,
               0, 1.61803, 0,
               0, 0, 1.61803,
               0, 0, 0 >
      hollow
   }
}

light_source {  <4, 5, -5>, rgb <1, 1, 1> }

camera {
   perspective
   location <0, 0, -5>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1.3333, 0, 0>
   up <0, 1, 0>
   look_at <0, 0, 0>
}
---[Snap]-----


Post a reply to this message


Attachments:
Download 'magiclight.png' (385 KB)

Preview of image 'magiclight.png'
magiclight.png


 

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