|
![](/i/fill.gif) |
Wasn't it fdecomite who wrote:
>I would like to find when and where a ray hits a specified object.
>The hit could take place after one or more reflections on other objects.
>I thought the trace macro would help, but it seems that trace() pays no
>attention to auxiliary objects, finding the way of the ray in straight line....
>Am i missing something ?
Trace() only considers one object. To follow the reflections you'd have
to trace every possible reflective, refractive or transparent object and
see which one gets hit first, then use the normal value you get back
from trace() to work out where the ray bounces to after that.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |