|
 |
"Sven Littkowski" <sve### [at] jamaica-focus com> wrote in message
news:45571fc3@news.povray.org...
> Hi everyone!
>
> I have a problem with the Looks_Alike feature of light sources. Please see
> here an excerpt of my code:
>
> #declare Signal=sphere // Signal Light
> {
> < 0.0, 0, 0.0 > 0.05
> pigment { rgb < 0.8117647, 0.8941176, 0.5607843 > * 10 }
> finish { ambient 1.0 }
> // no_shadow
> }
>
> #declare SignalLight=light_source
> {
> < 0.0, 0.0, 0.0 > color rgb < 0.8117647, 0.8941176, 0.5607843 > * 100
> looks_like { Signal }
> fade_distance 0.9
> fade_power 3.0
> }
>
> Okay. When I now place such a "Signal Light" object, there is still no
> light effect. If I remove the Looks_Alike, the light is there. What is it
> I do wrong?
>
> Thanks for your help.
>
> Sven
Hi Sven,
I'm not sure what you're saying is wrong with this.
I just added the following lines and I get a white sphere as I'd expect
given the very high brightness of the values you have set for the colors,
(the values get clipped and you lose the subtle green shading).
camera { location <0,0.1,-0.5> }
light_source { SignalLight }
plane {y,0 pigment {color rgb 0.01} translate -y*0.2}
I tried moving the light source around the scene a bit in case that was what
you meant, but I still get both the lighting effect and the visible light
source.
I'm on the Windows 3.6 Version.
Regards,
Chris B.
Post a reply to this message
|
 |