Reading z-buffer from Performer 2.0 using glReadPixels

New Message Reply Date view Thread view Subject view Author view

Janet Estabridis (janete++at++pistilmac1.chinalake.navy.mil)
Fri, 13 Sep 1996 15:50:41 +0000


I need to read the z-buffer in order to do range calculations. I have a
Performer 2.0 program with a draw callback routine in which I do the
following:

pfClearChan( chan );
pfDraw();
glReadPixels(0,0,360,120,zBuffer);

My array zBuffer is always ZERO !!! eventhough I see my image in the window.

I have successfully read and processed the zbuffer in OpenGL code. I was
told at my Performer 2.0 class a few weeks ago how to properly do a draw
callback routine but either I am missing something or there is a problem
reading the zbuffer from Performer 2.0. Can anyone help ??

Janet Estabridis
Naval Air Warfare Center
China Lake, CA 93555 (619) 930-6984

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:53:32 PDT

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