Re: z buffer with linux performer

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++southpark.engr.sgi.com)
Date: 06/28/2000 09:39:56


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:40:00 PDT

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