POV-Ray : Newsgroups : povray.binaries.images : INVITATION: Join the Mississippi Paddle-Wheel Steamer! : Re: INVITATION: Join the Mississippi Paddle-Wheel Steamer! Server Time
29 May 2024 02:00:09 EDT (-0400)
  Re: INVITATION: Join the Mississippi Paddle-Wheel Steamer!  
From: Stephen
Date: 28 Mar 2018 02:06:55
Message: <5abb30ff$1@news.povray.org>
On 28/03/2018 04:30, Sven Littkowski wrote:
> Thanks Alain and Stephen.   :-)
> 
> The item is what is to be checked for (like the name of a Declare union,
> I would assume).
> 
> The first coordinate is from where the search ray is starting?
> 
> The second coordinate is towards which direction (destination) the
> search ray is heading?
> 
> Norm contains the coordinates of a hit?
> 
> 

I think that it a good idea to quote the bit of code that you are 
talking about.
Norm is the vector of the normal if the trace ray hits the target. So we 
test to see if the vector is not zero. That means we have a hit. If Norm 
is zero then the ray missed.

I have an test scene from when I was learning to use trace() that is 
self contained. Firing arrows at a mesh target. A study for Saint 
Sebastian. I will post it after cleaning up the Bishop3D workarounds.



-- 

Regards
     Stephen


Post a reply to this message

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