Re: Reading Z-buffer

New Message Reply Date view Thread view Subject view Author view

Steve Baker (steve++at++mred.hti.com)
Fri, 8 Dec 95 09:23:44 -0600


> I'm trying to read the z-buffer by calling a routine at the end of perfly's
> PostDraw() routine. This routine uses the following gl code:
>
> readsource(SRC_ZBUFFER);
> lrectread(300,300,500,500,parray);
>
> This doesn't work. If I use SRC_FRONT I can easily read the front buffer.
> Is the depth buffer being cleared somewhere in Performer's Draw process?
  
Do you have multisampling enabled?

There is a GL/hardware limitation that prevents you from reading the multisample Z buffer.
Try turning the multisample buffer off.

  Steve

:-) :-) :-) :-) :-) :-) :-) Steve Baker (-: (-: (-: (-: (-: (-: (-:
  Hughes Training Inc. 817-695-2478 (Voice/VoiceMail)
  2200 Arlington Downs Road 817-695-2555 (Fax)
  Arlington, Texas. TX 76005-6171 steve++at++mred.hti.com (Email)


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:07 PDT

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