POV-Ray : Newsgroups : povray.binaries.scene-files : Light: Looks-Alike Problem Server Time
1 Sep 2024 14:33:07 EDT (-0400)
  Light: Looks-Alike Problem (Message 1 to 4 of 4)  
From: Sven Littkowski
Subject: Light: Looks-Alike Problem
Date: 12 Nov 2006 08:21:07
Message: <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


Post a reply to this message

From: Chris B
Subject: Re: Light: Looks-Alike Problem
Date: 12 Nov 2006 09:37:48
Message: <455731bc$1@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> 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

From: Sven Littkowski
Subject: Re: Light: Looks-Alike Problem
Date: 12 Nov 2006 20:30:55
Message: <4557cacf$1@news.povray.org>
Hi Chris B.,

I am using the latest beta 3.7. My problem is, that the little sphere is 
enlighted, but that there is no light spot at the underground I put the 
little sphere atop. Usually, it should behave light a tiny lightbulb. But 
just the sphere is bright, the environment near to the sphere is still 
dark...

It looks like the sphere blocks the flow of the light.

Sven


Post a reply to this message

From: Chris B
Subject: Re: Light: Looks-Alike Problem
Date: 13 Nov 2006 04:35:22
Message: <45583c5a$1@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote in message 
news:4557cacf$1@news.povray.org...
> Hi Chris B.,
>
> I am using the latest beta 3.7. My problem is, that the little sphere is 
> enlighted, but that there is no light spot at the underground I put the 
> little sphere atop. Usually, it should behave light a tiny lightbulb. But 
> just the sphere is bright, the environment near to the sphere is still 
> dark...
>
> It looks like the sphere blocks the flow of the light.
>
> Sven

Hi Sven,

Hmm. I do get a light spot on the plane that I put beneath the light_source. 
Obviously it has to be within range of the 'fade' specified, so anything 
more than a couple of POV-Ray units away isn't going to get much light, but 
that would be the case with or without the 'looks_like' clause, so I'm 
assuming that's not your problem.

Just a thought;- did you check the release notes for the 3.7 Beta to make 
sure the various features that you're using are fully implemented?  As well 
as the 'looks_like' clause I'd recommend checking for any surface features 
or media features that you're using that might be incomplete in that Beta 
test version.

Regards,
Chris B.


Post a reply to this message

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