POV-Ray : Newsgroups : povray.beta-test : min_extend and light_sources Server Time
22 Dec 2024 19:58:40 EST (-0500)
  min_extend and light_sources (Message 1 to 4 of 4)  
From: MichaelJF
Subject: min_extend and light_sources
Date: 30 Sep 2012 11:50:01
Message: <web.506868dbd90d0e467720ce9b0@news.povray.org>
Hi,

I'm not sure if this is the right group, since the problem could by older. If I
have a union of simple CSG-objects (no differences, isosurfaces or other objects
known to produce incorrect values with min_extend or max_extend) containing a
light_source, I yield values near to infinity. A simple point light should
occupy no space at all IMO. An area light should be the box it is in. Has anyone
of you experienced the same? I could not find an answer with the search option
in the newsgroups.

Best regards,
Michael


Post a reply to this message

From: Christian Froeschlin
Subject: Re: min_extend and light_sources
Date: 30 Sep 2012 17:55:07
Message: <5068bfbb@news.povray.org>
MichaelJF wrote:

> I'm not sure if this is the right group, since the problem could by older. If I
> have a union of simple CSG-objects (no differences, isosurfaces or other objects
> known to produce incorrect values with min_extend or max_extend) containing a
> light_source, I yield values near to infinity.

I can reproduce this using code like below. I'd consider this a
bug, although occuring in a rather rare combination of use cases.
My preference would be to ignore the light_source itself in extent
calculations as it is not geometry and has no effect on things like
trace function or object pattern / inside object test. Not sure about
looks_like objects (BTW these have no effect on current behavior).

#declare OBJ = union
{
   sphere {y,1 pigment {color White}}
   light_source {y color White}
}

#debug concat("***",str(max_extent(OBJ).x,1,1),"\n")


Post a reply to this message

From: Thomas de Groot
Subject: Re: min_extend and light_sources
Date: 1 Oct 2012 03:25:33
Message: <5069456d$1@news.povray.org>
Now that you mention it, I remember having had this same problem a 
couple of years ago. At the time, I did not relate it to the included 
light source, but that seems to make sense indeed. Not sure, but I think 
that the problem also exists with version 3.6.

Thomas


Post a reply to this message

From: MichaelJF
Subject: Re: min_extend and light_sources
Date: 1 Oct 2012 15:30:01
Message: <web.5069eefb2a011b30de254b010@news.povray.org>
Thank you both,

as you experienced the same I'm free of searching for mistakes within my code. I
was simply puzzled. I think it is not a bug but only a matter of interpretation.
A light source is infinite since it illuminates the whole scene. May be the
programmer of min_ and max_extend had this in his mind. I think, in this case
the light source adds one or more (area lights) points to the object under
investigation, simply the positions, which could be considered in calculating
the extend of the object. I don't think it should be ignored completely in this
case. But this is only another possible interpretation...


Best Regards,
Michael


Post a reply to this message

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