POV-Ray : Newsgroups : povray.advanced-users : Limited line-of-sight test? : Re: Limited line-of-sight test? Server Time
15 May 2024 10:39:32 EDT (-0400)
  Re: Limited line-of-sight test?  
From: scott
Date: 29 Jul 2015 02:49:34
Message: <55b8777e$1@news.povray.org>
> Is there some function or quick method of determining whether or not an
> object blocks the line-of-sight between two points?  The trace()
> function, on its own, is subject to false positives.  For example:
>
>    #declare Obstacle = torus { 3, 1 }
>    #declare Pt1 = <-1, 0, 0>;
>    #declare Pt2 = <1, 0, 0>;
>    #declare Test = <0, 0, 0>;
>    trace (Obstacle, Pt1, Pt2 - Pt1, Test)
>
> The torus does not block the line of sight between Pt1 and Pt2,

I think you'll find it does :-)


Post a reply to this message

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