|
![](/i/fill.gif) |
"Tim Attwood" <tim### [at] comcast net> wrote:
> 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>]
> }
> }
> }
> }
> }
> }
> }
> }
Thanks, the code works well, but I've hit another problem. My light source
is already contained in a translucent object, like a lightbulb.
Unfortunately, it seems to be blocking the glow effect. Is there a way to
correct this, without making the lightbulb invisible? Thanks.
Also, is it possible to add the same kind of glow effect to objects other
than light sources?
I hope I'm not asking to many questions. Thanks for everyone's input!
Michael
Post a reply to this message
|
![](/i/fill.gif) |