POV-Ray : Newsgroups : povray.newusers : How to declare a look_like light_source with various colors? : How to declare a look_like light_source with various colors? Server Time
2 Jul 2024 21:38:03 EDT (-0400)
  How to declare a look_like light_source with various colors?  
From: JSmith
Date: 27 Dec 2010 23:20:00
Message: <web.4d19644ee9c82239f14d496f0@news.povray.org>
Hi Users,

I would like to declare a light_source that looks_like a sphere.  My current
code is:

#declare flare =
    light_source {
        <0, 0, 0>
        color Yellow
        looks_like {
            sphere {
                <0, 0, 0>, 0.01
                texture {
                    pigment {color Yellow}
                    finish {ambient 1.0 diffuse 0.0}
                }
            }
        }
}

I would like to be able to do something like:

object { flare
         pigment { color Red }
}

and the color of the light_source and sphere be red.  How might I go about doing
this?

The idea is to use the flare object as the point like lights of a firework
burst.  Any hints or techniques would be greatly appreciated.

Thanks,
JS


Post a reply to this message

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