[info-performer] picking on a both-sided visible object

Date view Thread view Subject view Author view

From: Myriam Lajon (myriam.lajon++at++oktal.fr)
Date: 09/30/2003 07:33:16


I'm trying to pick a both-sided visible object but only one side can be
picked, no intersection can be made on the other side.

My intersection request uses the bit vector mode PFTRAV_IS_CULL_BACK. If I
do not use this bit vector, the intersection is possible on both sides. The
problem is that my application needs the bits vector PFTRAV_IS_CULL_BACK to
be set.

What can I do to solve my problem?

thanks,
Myriam

// *** code ***//
  pfSegSet segSet;
  segSet.activeMask = 1;
  segSet.isectMask = 0xFFFFFF;
  segSet.mode = PFTRAV_IS_PRIM | PFTRAV_IS_NORM | PFTRAV_IS_PATH |
PFTRAV_IS_CULL_BACK;
  segSet.bound = NULL;
  segSet.userData = NULL;
  segSet.discFunc = NULL;
  segSet.segs[ 0 ].length = 500000.0;

  isect = pfNodeIsectSegs(myScene, &segSet, hits);


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 30 2003 - 07:34:59 PDT