POV-Ray : Newsgroups : povray.general : Problem trying to bound a sphere Server Time
8 Aug 2024 22:12:03 EDT (-0400)
  Problem trying to bound a sphere (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Tom Melly
Subject: Re: Problem trying to bound a sphere
Date: 1 Nov 2000 17:45:44
Message: <3a009d18@news.povray.org>
"Jamie Davison" <jam### [at] dh70qdu-netcom> wrote in message
news:MPG.146aa3cb1a864ad2989830@news.povray.org...
> >
> > WARNING - I'm usually wrong.
>
> You may be here, 'cos I think  the bounding sphere is commented out in
> the code he posted there...
>

I don't think so - one version is commented out, but he's declared his globe
as an object and bound that.


Post a reply to this message

From: Chris Colefax
Subject: Re: Problem trying to bound a sphere
Date: 1 Nov 2000 18:34:23
Message: <3a00a87f@news.povray.org>
Patrick Dugan <pat### [at] usticom> wrote:
> I am trying to remove all infinite objects from my source, but one object
> keeps showing as infinite (found by commenting the code) which is a large
> sphere that the entire scene and camera are inside.  I have tried to use
> bounded_by statements but it still shows infinite.   Anybody know what I
am
> doing wrong?  I am trying to eliminate all the infinite objects to assist
in
> using the photon feature in Megapov.

POV-Ray will often report large spheres as infinite objects (after a quick
test, it seems anything over 1356 units in radius).  I'm not sure what (if
any) effect this has on the rendering, as the size you have is certainly
well below the upper visibility limit.  If the infinity of the sphere is
causing problems, a fix might be to reduce the radius to 1355 units...


Post a reply to this message

From: Chris Huff
Subject: Re: Problem trying to bound a sphere
Date: 1 Nov 2000 19:22:28
Message: <chrishuff-4DE987.19253501112000@news.povray.org>
In article <3a00920c@news.povray.org>, "Tom Melly" <tom### [at] tomandlucouk> 
wrote:

> I haven't tried it, but could it be that your bounding sphere is the same
> radius as the globe - a coincident surface type problem?
> Try making the bounding sphere a unit bigger?

Bounding shapes don't check depth, they simply test whether an 
intersection is possible or not. Kind of a visibility test. It might be 
possible for a problem to occur at the edges if a ray happens to just 
graze the sphere(something which is practically impossible and unlikely 
to produce a visible artifact if it does), but in the center of the 
bounding sphere it wouldn't be a problem.
In this case, a bounding sphere that surrounds the camera, lights, and 
any transparent/reflective objects should as well as a sphere 
surrounding the whole sphere.


> Also, shouldn't your globe be "inverse"?

Or hollow. Inverse would make more sense, but neither is actually 
necessary unless you are using media or fog.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Mark Wagner
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 01:14:42
Message: <3a010652@news.povray.org>
Patrick Dugan wrote in message <3a00767a$1@news.povray.org>...
>I am trying to remove all infinite objects from my source, but one object
>keeps showing as infinite (found by commenting the code) which is a large
>sphere that the entire scene and camera are inside.  I have tried to use
>bounded_by statements but it still shows infinite.   Anybody know what I am
>doing wrong?  I am trying to eliminate all the infinite objects to assist
in
>using the photon feature in Megapov.


Any object where the volume of the bounding box is larger than 2.0x10^10 is
considered to be an infinite object.

Mark


Post a reply to this message

From: Tom Melly
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 08:25:15
Message: <3a016b3b@news.povray.org>
"Patrick Dugan" <pat### [at] usticom> wrote in message
news:3a00767a$1@news.povray.org...
> I am trying to remove all infinite objects from my source, but one object
> keeps showing as infinite (found by commenting the code) which is a large
> sphere that the entire scene and camera are inside.  I have tried to use

Just out of curiousity, is there any point in bounding a sphere in this
context?


Post a reply to this message

From: Warp
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 10:59:54
Message: <3a018f79@news.povray.org>
Chris Huff <chr### [at] maccom> wrote:
: Or hollow. Inverse would make more sense, but neither is actually 
: necessary unless you are using media or fog.

  I think there's a third case where there's difference between an inverted
and non-inverted sky sphere: If it has (for some reason) ior.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 11:01:42
Message: <3a018fe6@news.povray.org>
Patrick Dugan <pat### [at] usticom> wrote:
: which is a large
: sphere that the entire scene and camera are inside.

  This is what's making povray to treat the sphere as infinite.
  And for a good reason. You will get no benefits from making povray to
believe that it's not infinite (povray has to test for the sphere in each
ray anyways).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 11:04:25
Message: <3a019089@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: I haven't tried it, but could it be that your bounding sphere is the same
: radius as the globe - a coincident surface type problem?

  The coincident surface problem happens only when povray has to calculate
which one of two points is closer than the other.
  Povray does not do this kind of test with bounding object and the object
it's bounding, so there can't be coincident surface problems there.

: WARNING - I'm usually wrong.

  I could say something funny here, but can't figure out anything smart :)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 11:05:45
Message: <3a0190d8@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: Just out of curiousity, is there any point in bounding a sphere in this
: context?

  Not really.
  It tould benefit only if you want to see part of the sphere.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Chris Huff
Subject: Re: Problem trying to bound a sphere
Date: 2 Nov 2000 13:25:18
Message: <chrishuff-9B6258.13282502112000@news.povray.org>
In article <3a018f79@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   I think there's a third case where there's difference between an 
> inverted and non-inverted sky sphere: If it has (for some reason) ior.

You're right...POV uses the difference in ior to perform the 
calculations, so there will be a difference there. However, "hollow" 
won't make a difference in this case, it only affects fog and media.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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