POV-Ray : Newsgroups : povray.general : Looking for a formula : Re: Looking for a formula Server Time
29 Jul 2024 10:30:41 EDT (-0400)
  Re: Looking for a formula  
From: Kenneth
Date: 16 Feb 2013 14:50:01
Message: <web.511fe18424d8606ec2d977c20@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> While *special* values can be chosen for both lines' end points to produce
> a trace that looks like a perfect 'hit' at the intersection, it's not really
> so.

Sorry, that didn't clearly express what I meant.  Reworded:

"While particular values CAN be chosen for both lines' start/end points to
produce a trace that *looks like* a perfect hit at the intersection, the result
is most likely not very accurate."

Also...

>
> // A sphere to indicate the found position. (If this ends up AT the
> // origin, then the trace ray has totally missed the target line.)
> #if(vlength(norm) !=0)
> sphere{0,.35
> no_shadow
> pigment{rgb 1*<.3,1,1>}
> translate found_position
> }
> #else
> #end
>

It's probably better to leave out the #if/#else/#end; then a trace ray that
misses the target will actually SHOW the sphere at the origin.


Post a reply to this message

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