POV-Ray : Newsgroups : povray.advanced-users : trace functiuon help ! : Re: trace functiuon help ! Server Time
31 Oct 2024 19:38:21 EDT (-0400)
  Re: trace functiuon help !  
From: Lightbeam
Date: 17 Jun 2013 09:54:12
Message: <51bf1504@news.povray.org>
Le 17/06/2013 02:39, Christian Froeschlin a écrit :
> 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>.
>

Ok, I'll try, thank you.


Post a reply to this message

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