|
|
Wasn't it Tim Nikias who wrote:
>Hi Ho there people!
>
>I heard a lot about the trace-function, but, since I didn't download a
>beta
>of 3.5 yet, I don't know, how it actually works and what it's suitable
>to
>do.
>
>I've heard that it can only check if two objects intersect, and that
>certain variables can be used to check the actual intersection point.
>
>Is there a function, with which you can take a position, shoot a ray
>into a given direction, and have POV-Ray return the distance until
>the ray hits an object?
>
>Or have a gotten something completely mixed up?
You are a bit mixed up. Trace does just what you want.
Trace shoots a ray in a given direction and returns the point where the
ray intersects the surface and the direction of the normal at that
point. (If you really want the distance you would then use vlength()).
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|