POV-Ray : Newsgroups : povray.newusers : Bright Spot aka Fire Fly : Re: Bright Spot aka Fire Fly Server Time
5 Nov 2024 20:21:08 EST (-0500)
  Re: Bright Spot aka Fire Fly  
From: Chris Huff
Date: 1 Jul 2000 17:01:06
Message: <chrishuff-65E451.16011201072000@news.povray.org>
In article <395e5143$1@news.povray.org>, "Heather Pinnix" 
<hjp### [at] mindspringcom> wrote:

> I'm trying to make a bright yellow glowing spot.
> I've tried a sphere to and emitting yellow media, and a point light in
> a sphere.
> 
> Thanks in advance for any advice.
> I got it work with a halo, but alas I can't get it to work with media

I do it in one of two ways, depending on what I need. Media is slower, 
but much more versatile, and if you use MegaPOV and sampling method 3, 
the speed isn't usually a problem. The light-sphere-highlight method is 
normally much faster, and gives light to surrounding objects, but can't 
do some of the things media can do, and could really slow things down if 
you have a lot of "spots".
You might also want to look at one of the lens flare includes:
NKFlare: http://nathan.kopp.com/nkflare.htm
Chris Colfax's Lens Effects: http://www.geocities.com/ccolefax/


camera {
    location <0, 3.5,-10>
    angle 45
    look_at <0, 0, 0>
}
box {<-100, 0,-100>, < 100, 0, 100>
    texture {pigment {checker color Black, color White}}
}

//the media method
//make sure you use the "hollow" keyword. And don't
//forget that media is scale-dependant, a greater thickness
//of media will be brighter.
sphere {< 0, 0, 0>, 1
    texture {pigment {color White filter 1}}
    hollow
    interior {
        media {
            emission color rgb < 1, 1, 0.2>
            samples 15
            density {spherical
                color_map {
                    [0 color Black]
                    [1 color White]
                }
            }
        }
    }
    translate < 2, 1.2, 0>
}

//light-sphere-highlight method
//The glow is actually the highlight from the light source
//on the sphere.
union {
    sphere {< 0, 0, 0>, 1
        texture {
            pigment {color White filter 1}
            finish {
                specular 1
            }
        }
    }
    light_source {<0,0,0> color rgb < 1, 1, 0.2>}
    translate <-2, 1.2, 0>
}

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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