From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 05/16/2003 11:02:42
On Fri, 2003-05-16 at 12:02, Frederic Rouas wrote:
> Hi,
>
> I'm using Perfomer 3.0.1 on WinXP.
>
> You will find hereafter a code sample illustrating the problem i have
> computing intersections on
> a scene and getting the path to the hit node : though the isect action
> actually hit a geometry node,
> the returned path to the hit node has always a null length !!!
>
> In my actual application, I need to use clone instancing. If I can't get
> the path to the hit node,
> how can I retrieve the hit object ?
>
...snip...
> segSet.mode = PFTRAV_IS_PRIM | PFTRAV_IS_NORM | PFTRAV_IS_CULL_BACK;
Add PFTRAV_IS_PATH to your segSet.mode, otherwise the path information
won't be retained.
--"J"
This archive was generated by hypermail 2b29 : Fri May 16 2003 - 11:07:02 PDT