Re: More Intersection Questions....

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Mon, 07 Feb 94 11:08:21 -0800


   
> They specify a discriminator callback which prints a message that
> it has been called and returns PFTRAV_TERM.
   
> However the callback is invoked multiple times for each intersection
> instead of just once.

Three possibilites:

        1) You mean multiple callbacks per request, for different
        pieces of geometry as mtj suggests.

        2) The request contains multiple segments and you are only
        terminating one of them, so you still get callbacks on the
        others. (You can OR PFTRAV_IS_ALL_SEGS into the return to
        have PFTRAV_TERM apply to all segments)

        3) There's a bug.

Also, if all they want is terrain, the best way to speed things up
would be to use pfNodeTravMasks to set a bit in the intersection mask
of the terrain subgraph and clear it elsewhere and then restrict the
intersection request to that subgraph using the request's intersection
mask.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.