POV-Ray : Newsgroups : povray.general : attn: pov programmers : Re: attn: pov programmers Server Time
9 Aug 2024 19:41:26 EDT (-0400)
  Re: attn: pov programmers  
From: Nathan Kopp
Date: 21 Jul 2000 08:45:45
Message: <397845f9$1@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote...
> Peter Popov <pet### [at] usanet> wrote:
> : Because the rendered would have to find all intersections for every
> : object.
>
>   But that's what it currently does.
>   How can it know which one of the intersections is the closest one if it
> didn't?

Actually, it usually (the feature can be disabled) uses a bounding-box tree
to determine which bounding boxes are closer than others, and if it finds an
intersection in a nearby bounding box, it doesn't test anything that it
knows is farther away.  Also, as Ron and others mentioned, many objects only
return the closest intersection for speed reasons.

-Nathan


Post a reply to this message

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