From: Allen Bierbaum (allenb++at++vrac.iastate.edu)
Date: 06/28/2000 12:56:04
I found a fix (thanks Greg for putting me on the path).
Basically, my problem was that I was setting the share mask directly.
If instead, I get the current mask and combine it (logical OR) with the
attribs I want, then things work fine. Strange....
So, the following code works.
int share = master_chan->getShare();
master_chan->setShare(share | PFCHAN_NEARFAR | PFCHAN_EARTHSKY |
PFCHAN_STRESS | PFCHAN_LOD | PFCHAN_SWAPBUFFERS |
PFCHAN_APPFUNC | PFCHAN_CULLFUNC |
PFCHAN_STATS_DRAWMODE );
-Allen
Allan Schaffer wrote:
>
> On Jun 26, 2:26pm, Allen Bierbaum wrote:
> > I have create a channel group of several channels. I set the shared
> > channel attributes up with the following attribs:
> >
> > masterChan->setShare(PFCHAN_NEARFAR | PFCHAN_EARTHSKY |
> > PFCHAN_STRESS | PFCHAN_SWAPBUFFERS |
> > PFCHAN_APPFUNC | PFCHAN_CULLFUNC );
> >
> > My problem is that even though I am sharing the app func
> > (PFCHAN_APPFUNC), my application callback and node app callback
> > functions are being called once for ever single pfChannel in the channel
> > group.
> >
> > Am I missing something here? Is Performer behaving badly, or is the man
> > page incorrect?
>
> You're right & the manpage is right; the library is doing the wrong
> thing. This appears to be a bug in some internal pfChannel
> routines. Will file it: SCR 795033.
>
> Allan
>
> --
> Allan Schaffer allan++at++sgi.com
> Silicon Graphics http://reality.sgi.com/allan
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
--Allen Bierbaum ISU -- Virtual Reality Applications Lab Research Assistant
This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 12:59:01 PDT