Re: pfDrawBin in Performer2.1

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Wed, 21 Jan 1998 13:56:14 +0100 (MET)


Wade Olsen wrote:
>
> 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

What might be the case is that the geoset doesn't has a bounding
sphere set. I could remember that an empty geoset is one where you set
the number of primitives to 0 but the vertex attribute array must not
be NULL.

Mario
=======================================================================
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.