Re: intersection callback

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 28 Dec 94 18:37:25 -0800


The most efficient method of restricting intersection cases is to use
the intersection masks in the scene graph to create different classes
of geometry. If you don't care about intersections with a particular
class of geometry, then don't OR its bit into the query's intersection
mask.
   
> 1) In the definition of the pfSegSet structure, there is a 'void* userData'.
> How can I get a pointer to it in my callback function ?

The pfSegSet's userdata pointer can be queried from the pfHit using
pfGetUserData. 2.0's man pages will mention this.

> 2) I am doing several intersections at the same time. The first segment
> is for this ground collision problem. I thought that I could use a call
> to pfQueryHit with a PFQHIT_SEGNUM type, but it seems to return pointer
> values instead of an index number -> is it what I should get?

It should be returning the index of the line segment. I can't
duplicate the problem, but will look at it if you can narrow your
problem down to a small test case.

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:46 PDT

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