POV-Ray : Newsgroups : povray.advanced-users : trace functiuon help ! : Re: trace functiuon help ! Server Time
22 Jun 2024 22:18:13 EDT (-0400)
  Re: trace functiuon help !  
From: Christian Froeschlin
Date: 16 Jun 2013 20:39:59
Message: <51be5adf$1@news.povray.org>
I'm not quite sure what you are testing, because touche.gray
is not one of the variables you are actually using in trace.
I assume that is a copy and post issue.

But, you may be misunderstanding the direction
("departure") vector and the trace result.

1. This is not a line segment intersection test. The length
is irrelevant. If it hits anything in the direction it points
to it will return something. So you should paint the boxes where
the surface is hit (trace result), not at the coordinate you
start out testing.

2. As it is a direction you do not need to define the vector
relative to the coordinate. If you want it to point 45° away
you use <1,1,1>. If you want it to point inward to the origin
you could use -<xx,yy,zz>.


Post a reply to this message

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