From: Tom Flynn (flynnt++at++cthulhu.engr.sgi.com)
Date: 06/28/2000 13:45:47
could also be as simple as changing your Xserver to run in 24/32bpp. with
the NVidia chips, if you specify a depth of 24 in your XF86Config, you get
a RGBA8 visual with 8bits of stencil and 24bits of Z. If you specify a
depth of 16, you get a 565 visual with no stencil and 16bits of Z.
-tom
On Wed, 28 Jun 2000, Allan Schaffer wrote:
> On Jun 28, 4:22pm, Yves GAUVIN wrote:
> > How could I do to increase my Z buffer to 24 bits?
>
> Ultimately you need to convince Performer to pick a visual for you
> with 24 bits of Z. You can specify a framebuffer attribute array
> and pass that in:
>
> [...]
> static int FBAttrs[] = {
> PFFB_RGBA,
> PFFB_DOUBLEBUFFER,
> PFFB_DEPTH_SIZE, 24,
> PFFB_RED_SIZE, 1,
> PFFB_SAMPLES, 1,
> PFFB_STENCIL_SIZE, 1,
> None,
> };
> [...]
> pfPWinFBConfigAttrs(pipewindow, FBAttrs);
>
> Values of 1 (above) mean, "as much of this as is available". Values
> other than one are interpreted as precise requirements. Have a look
> at the 'pipewin.c' sample in /usr/share/Performer/src/pguide/libpf/C
> to see how this is done.
>
> Even so, there are two issues:
>
> 1. Your graphics card must be running in a mode where it makes
> such a visual available.
>
> 2. I'm not 100% certain this is working well in Mongoose; the
> window-configuration code was difficult to port. If there's
> any lingering bugs please let us know.
> (mongoose-feedback++at++corp.sgi.com)
>
> Allan
> ps. please use plain-text mode when posting to info-performer,
> to keep the daily digest readable.
>
>
> --
> 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
>
-- "Mongooses are famous for their snake-fighting ability, and are almost always victorious because of their speed, agility, and timing and also because of their thick coat."
This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 13:45:51 PDT