[info-performer] Problem getting geosets in the OPAQUE BIN

New Message Reply Date view Thread view Subject view Author view

From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 06/12/2002 09:49:08


Hello,

I would like to load a Flight file and render it sorted in BINs.
I have made a small addition to complex.C to draw individual bins.

The code in the drawcallback is someting like

if (Shared->keyBin == 'a') pfDraw();
if (Shared->keyBin == 'o') pfDrawBin(PFSORT_OPAQUE_BIN);
if (Shared->keyBin == 't') pfDrawBin(PFSORT_TRANSP_BIN);
if (Shared->keyBin == 'm') pfDrawBin(-1);

All the pfGeoSet::getDrawBin() return -1.
This way pfCull should put the geosets in the right bin.

For key 'a' I see all the polygons.
For key 't' I see only the polygons that are transparent
For key 'o' I see NOTHING
For key 'm' I see only the opaque polygons.

If I explicitly set the bins to OPAQUE and TRANSP bin
nothing changes. Still no polygons in the OPAQUE bin.

The CULL mode of the channel is set to PFCULL_ALL (includes PFCULL_SORT).
 chan->setTravMode(PFTRAV_CULL, PFCULL_ALL);

I use Performer 2.2 on an Octane and O2.

What could be the cause of this strange behaviour?

Mario Veraart


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 12 2002 - 09:50:02 PDT

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