FBConfig behaves weird!

New Message Reply Date view Thread view Subject view Author view

Gilles Reymond (reymond++at++simbasg1.corys.fr)
Thu, 16 May 1996 12:24:35 +0000


I am trying to properly configure my pipewindow's framebuffer under Performer
2.0 plus IRIS-GL functions on an Infinite Reality machine.

In the Draw process config callback, I issue, inspired by the "pipewin.c"
sample program generously shipped along with Performer2.0 :
        int FBAttrs[] =
        {
        PFFB_RGBA,
        PFFB_DOUBLEBUFFER,
        PFFB_DEPTH_SIZE, 24,
        PFFB_RED_SIZE, 8,
        PFFB_SAMPLES, 8,
        PFFB_STENCIL_SIZE, 1,
        None,
        };
        pfPWinFBConfigAttrs(pwin, FBAttrs);
        pfOpenPWin(pwin);
        pfTransparency(PFTR_HIGH_QUALITY);
        pfAntialias(PFAA_ON);
        pfAlphaFunc(PFAF_GREATER, 10);

Well, if I just ask for FB info after that, using :
        pfuPrintPWinFBConfig(pwin,0);
I will get the following run-time message :

        pfPipeWindow Framebuffer Configuration:
        RGB_BITS: 8
        ALPHA_BITS: 8
        CI_BITS: 36
        DEPTH_BITS: 0
        MIN_DEPTH_VAL: 8192
        MAX_DEPTH_VAL: 8388607
        MS_SAMPLES: 8
        STENCIL_BITS: 0
        DOUBLEBUFFER: 1
        STEREO: 0

Where are my DEPTH_BITS and STENCIL_BITS gone now? The point is that my
upcoming window is *not* antialiased and has some problems with transparency
and z-buffering as well.

Please let me know if I did something wrong in the process...

Thanks,

 Gilles Reymond (reymond++at++corys.fr)


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:52:54 PDT

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