One more intersection question

New Message Reply Date view Thread view Subject view Author view

Didier Guzzoni (guzzoni++at++imtsg14.epfl.ch)
Wed, 13 Aug 1997 11:46:23 -0600


Hi Performers,

I am also dealing with intersections. In the scene, there are different types
of objects, set with different intersections masks.

Some are set from the pfGeode :

mGeode->setTravMask(PFTRAV_ISECT, 0x2,
                    PFTRAV_SELF | PFTRAV_DESCEND, PF_SET);

Some, from the pfNode created by pfdLoadFile :

pfNode* model = pfdLoadFile(fileName);
model->setTravMask(PFTRAV_ISECT, 0x1,
                   PFTRAV_SELF | PFTRAV_DESCEND, PF_SET);

The problem is when I check for intersections by :

pfSeg segSet;

segSet.mode = PFTRAV_IS_PRIM;
segSet.isectMask = CCollisionManager::OrganMask;
segSet.isectMask = 0x1;
segSet.activeMask = 0x03;
segSet.userData = NULL;
segSet.bound = NULL;
segSet.discFunc = NULL;
segSet.segs = ... my two segments

ECHO(" Nb Segs " << mRoot->isect(&segSet, mHits));

I get intersections for ALL solids, it seems to ignore intersection masks.

Has someone an idea about this behavior ?

Thanks in advance,

  Didier

-- 
Didier Guzzoni 
VRAI group, Swiss Federal Institute of Technology
Phone : ++41 21 693 3823   e-mail : guzzoni++at++imtsg7.epfl.ch         
Fax   : ++41 21 693 6540 
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

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:55:43 PDT

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