POV-Ray : Newsgroups : povray.newusers : Glow effect problem : Re: Glow effect problem Server Time
29 Jul 2024 02:34:59 EDT (-0400)
  Re: Glow effect problem  
From: Tim Attwood
Date: 29 Jan 2007 07:04:12
Message: <45bde2bc$1@news.povray.org>
>   I'm having trouble figuring out how to add a glow effect to objects in 
> my
> scene. I'm trying to add a halo or aura effect around light sources. I 
> know
> it's a media attribute, but I can't find what specifically does it in the
> documentation. Can anyone tell me how to do this, or point out the parts 
> of
> the documentation that cover this?

You can use looks_like to make a light have a visible object there.
Then use a media glow in that object. It's important to remember
that an object needs to be hollow to contain a visible media.

//example
light_source {
  <0, 0, 0>
  color rgb <1, 1, 1>
  looks_like {
     sphere{<0,0,0>,1
        hollow
        material {
           texture {
              pigment {Clear}
           }
           interior {
              media{
                 emission 0.75
                 scattering {1, 0.5}
                 density {
                    spherical
                    color_map {
                       [0.0 rgb <0,0,0.5>]
                       [0.5 rgb <0.8, 0.8, 0.4>]
                       [1.0 rgb <1,1,1>]
                    }
                 }
              }
           }
        }
     }
  }
}

Also you might want to check out Colefax's lens flares.
http://www.geocities.com/ccolefax/index.html


Post a reply to this message

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