Re: FBConfig behaves weird!
Daniel Panic (daniel++at++daniel.karlsruhe.sgi.com)
Mon, 20 May 1996 13:29:20 -0600
On May 16, 12:24pm, Gilles Reymond wrote:
> Subject: FBConfig behaves weird!
> 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,
^^
Should be either 16 or 23 :) iR has a max of 23bit but compressed, == 32bit
non compressed (roughly).
> 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)
>-- End of excerpt from Gilles Reymond
--
+---------------------------------+
| Daniel Banek |
__ ____ __ * __ | Projectmanager High-End Graphic|
/\ / / /| / / /_//\ /| / / / | SiliconGraphics Germany |
/_/ /_/ / |/ / / /--\/ |/ / /_ | email: panic++at++karlsruhe.sgi.com |
| Mailstop: IKA-317 VM #9207 |
+---------------------------------+
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:52:54 PDT