POV-Ray : Newsgroups : povray.general : looks_like Server Time
26 Dec 2024 21:55:57 EST (-0500)
  looks_like (Message 1 to 8 of 8)  
From: Mike Horvath
Subject: looks_like
Date: 14 Jan 2016 02:47:07
Message: <5697527b@news.povray.org>
I have the following code:

#local lamp_sphere = sphere
{
	0, 1
	scale lamp_radius
	hollow
}
light_source
{
	0, lamp_color
	looks_like {lamp_sphere}
	translate spiral_coo
}

Unfortunately the sphere is blocking the light source when it should let 
the light shine through. What am I doing wrong? Thanks.



Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: looks_like
Date: 14 Jan 2016 05:51:21
Message: <56977da9$1@news.povray.org>
On 1/14/2016 2:47 AM, Mike Horvath wrote:
> I have the following code:
>
> #local lamp_sphere = sphere
> {
>      0, 1
>      scale lamp_radius
>      hollow
> }
> light_source
> {
>      0, lamp_color
>      looks_like {lamp_sphere}
>      translate spiral_coo
> }
>
> Unfortunately the sphere is blocking the light source when it should let
> the light shine through. What am I doing wrong? Thanks.
>
>
>
> Mike


Never mind. I had wrapped everything in a merge when I should have 
instead wrapped everything in a union.


Mike


Post a reply to this message

From: clipka
Subject: Re: looks_like
Date: 14 Jan 2016 09:05:06
Message: <web.5697aaf4e29f651ad6fa18f0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> I have the following code:
>
> #local lamp_sphere = sphere
> {
>  0, 1
>  scale lamp_radius
>  hollow
> }
> light_source
> {
>  0, lamp_color
>  looks_like {lamp_sphere}
>  translate spiral_coo
> }
>
> Unfortunately the sphere is blocking the light source when it should let
> the light shine through. What am I doing wrong? Thanks.

I'd suggest testing this in different versions of POV-Ray.

My initial thought is that looks_like should automatically set "no_shadow on"
(and also "no_radiosity on") for the object; if that doesn't happen, I guess it
should be considered a bug. I'll need to look it up in the docs myself though.


Post a reply to this message

From: Stephen
Subject: Re: looks_like
Date: 14 Jan 2016 12:58:39
Message: <5697e1cf$1@news.povray.org>
On 1/14/2016 2:04 PM, clipka wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> I have the following code:
>>
>> #local lamp_sphere = sphere
>> {
>>   0, 1
>>   scale lamp_radius
>>   hollow
>> }
>> light_source
>> {
>>   0, lamp_color
>>   looks_like {lamp_sphere}
>>   translate spiral_coo
>> }
>>
>> Unfortunately the sphere is blocking the light source when it should let
>> the light shine through. What am I doing wrong? Thanks.
>
> I'd suggest testing this in different versions of POV-Ray.
>
> My initial thought is that looks_like should automatically set "no_shadow on"
> (and also "no_radiosity on") for the object; if that doesn't happen, I guess it
> should be considered a bug. I'll need to look it up in the docs myself though.
>
>
>

Is that not for "projected_through"?
Which might be a solution.

-- 

Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: looks_like
Date: 14 Jan 2016 15:40:46
Message: <569807ce$1@news.povray.org>
Am 14.01.2016 um 18:58 schrieb Stephen:

>> My initial thought is that looks_like should automatically set
>> "no_shadow on"
>> (and also "no_radiosity on") for the object; if that doesn't happen, I
>> guess it
>> should be considered a bug. I'll need to look it up in the docs myself
>> though.
> 
> Is that not for "projected_through"?
> Which might be a solution.

"There is an implied no_shadow attached to the looks_like object so that
light is not blocked by the object."

The projected_through object has an implied no_whatsoever: It is never
inserted into the scene as a regular object, and only contributes as
part of a special feature -- similar to object specified in bounded_by,
object patterns, and other odds & ends.


Post a reply to this message

From: Mike Horvath
Subject: Re: looks_like
Date: 14 Jan 2016 16:59:41
Message: <56981a4d$1@news.povray.org>
On 1/14/2016 3:40 PM, clipka wrote:
> Am 14.01.2016 um 18:58 schrieb Stephen:
>
>>> My initial thought is that looks_like should automatically set
>>> "no_shadow on"
>>> (and also "no_radiosity on") for the object; if that doesn't happen, I
>>> guess it
>>> should be considered a bug. I'll need to look it up in the docs myself
>>> though.
>>
>> Is that not for "projected_through"?
>> Which might be a solution.
>
> "There is an implied no_shadow attached to the looks_like object so that
> light is not blocked by the object."
>
> The projected_through object has an implied no_whatsoever: It is never
> inserted into the scene as a regular object, and only contributes as
> part of a special feature -- similar to object specified in bounded_by,
> object patterns, and other odds & ends.
>


Is it possible to have multiple lights look_like the same object?


Mike


Post a reply to this message

From: Stephen
Subject: Re: looks_like
Date: 14 Jan 2016 17:31:50
Message: <569821d6$1@news.povray.org>
On 1/14/2016 8:40 PM, clipka wrote:
> Am 14.01.2016 um 18:58 schrieb Stephen:
>
>>> My initial thought is that looks_like should automatically set
>>> "no_shadow on"
>>> (and also "no_radiosity on") for the object; if that doesn't happen, I
>>> guess it
>>> should be considered a bug. I'll need to look it up in the docs myself
>>> though.
>>
>> Is that not for "projected_through"?
>> Which might be a solution.
>
> "There is an implied no_shadow attached to the looks_like object so that
> light is not blocked by the object."
>
> The projected_through object has an implied no_whatsoever: It is never
> inserted into the scene as a regular object, and only contributes as
> part of a special feature -- similar to object specified in bounded_by,
> object patterns, and other odds & ends.
>

It is years since I have used looks_like or projected_through. My memory 
fails. Good job we have documentation.

-- 

Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: looks_like
Date: 14 Jan 2016 18:06:10
Message: <569829e2$1@news.povray.org>
Am 14.01.2016 um 22:59 schrieb Mike Horvath:
> On 1/14/2016 3:40 PM, clipka wrote:
>> Am 14.01.2016 um 18:58 schrieb Stephen:
>>
>>>> My initial thought is that looks_like should automatically set
>>>> "no_shadow on"
>>>> (and also "no_radiosity on") for the object; if that doesn't happen, I
>>>> guess it
>>>> should be considered a bug. I'll need to look it up in the docs myself
>>>> though.
>>>
>>> Is that not for "projected_through"?
>>> Which might be a solution.
>>
>> "There is an implied no_shadow attached to the looks_like object so that
>> light is not blocked by the object."
>>
>> The projected_through object has an implied no_whatsoever: It is never
>> inserted into the scene as a regular object, and only contributes as
>> part of a special feature -- similar to object specified in bounded_by,
>> object patterns, and other odds & ends.
> 
> Is it possible to have multiple lights look_like the same object?

No, but it should be perfectly possible to either...

(a) attach the object to just one of the lights, or

(b) specify the object separately from the light sources (or bundle the
object and the corresponding light sources together in a union, making
them easier to manage as a group, e.g. rotate them, hide them in test
renders, or whatever), and explicitly specify "no_shadow" on the object.


Post a reply to this message

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