POV-Ray : Newsgroups : povray.newusers : trace direction : Re: trace direction Server Time
29 Jul 2024 16:23:16 EDT (-0400)
  Re: trace direction  
From: Jim Charter
Date: 21 Jun 2005 13:46:04
Message: <42b8525c$1@news.povray.org>
Mike Williams wrote:
> Wasn't it Jim Charter who wrote:
> 
>>I have any point, A
>>I have a second point B
>>
>>I want to use the trace() function such that I want to intersect a 
>>surface between A and B, travelling From A to B.
>>
>>So, is this correct?
>>
>>#local Surface = some object;
>>#local Start = A;
>>#local Dir = B-A;
>>#local Norm = <0,0,0>;
>>
>>#local Pos = trace(Surface,Start,Dir,Norm);
> 
> 
> Yes.
> 
> Don't foreget to check to see if Norm isn't <0,0,0> if there's any
> possibility of missing the Surface.
> 
Thanks Mike.

Kind of a silly question but I thought I was going crazy.  Turned out it 
was a stupid thing, I had a sneaky little translate buried in my 
definition of the target surface but not in my generation of Start and 
Dir points until *after* I'd called trace().

Meanwhile I am having other weird results with trace() in another 
situation too so my self-confidence was diminishing with every trial.


Post a reply to this message

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