POV-Ray : Newsgroups : povray.beta-test : intersection tests : Re: intersection tests Server Time
28 Jul 2024 18:22:12 EDT (-0400)
  Re: intersection tests  
From: Warp
Date: 21 Sep 2007 11:26:44
Message: <46f3e2b4@news.povray.org>
Bruno Cabasson <bru### [at] alcatelaleniaspacefr> wrote:
> I take the risk of appearing stupid, but is it possible to make the
> assumption that if a ray hits an object, the rays next to it (next pixel
> for example, or the next ray shot, or so ...) have a high probability to
> hit the same object, thus avoiding useless tree-traversal and intersection
> test? Would it be costful: if the test fails, then we go on with the normal
> traversal with little overhead, and if success, we save a non neglectable
> time?

  Testing against the same object in the next pixel and getting a hit
doesn't tell us anything. There could be another object in front of
the object at that next pixel, so it would have to be tested anyways.

-- 
                                                          - Warp


Post a reply to this message

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