pfDrawBin in Performer2.1

New Message Reply Date view Thread view Subject view Author view

Wade Olsen (wade++at++surf.shoreline-studios.com)
Tue, 20 Jan 1998 16:51:34 -0800


I have a 2.2 program that calls:

  pfDrawBin(-1);
  pfDrawBin(PFSORT_OPAQUE_BIN);
  if (!depth_test)
    glDisable(GL_DEPTH_TEST);
  pfDrawBin(PFSORT_TRANSP_BIN);
  if (!depth_test)
    glEnable(GL_DEPTH_TEST);

In than channel draw callback. It works fine in 2.2 but when compiled
with 2.1 I get a SEGV coredump when trying to draw the OPAQUE bin. After
a bit of surfing on SGI's web page I found mention of a Performer 2.0.*
bug drawing empty bins describing this situation but it was hinted that
this had been fixed in 2.1. The workaround for the mentioned 2.0.* bug
was to add an empty geoset to the bin. I tried this with:

  pfGeoSet * gset = new pfGeoSet;
  pfGeoState * gstate = new pfGeoState;
  gset->setGState(gstate);
  gset->setDrawBin(PFSORT_OPAQUE_BIN);
  pfGeode * geode = new pfGeode;
  geode->addGSet(gset);
  group->addChild(geode);

Where "group" is already a child of the channel's scene. Unfortunately,
this didn't help. Anyone run into this?

Wade

-- 
-----------------------------
Wade Olsen, Shoreline Studios
e-mail:	wade++at++shoreline-studios.com
phone:	650-969-7896
fax:	650-969-7864
www:	http://www.shoreline-studios.com
=======================================================================
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:56:36 PDT

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