Results 1 to 2 of 2

Thread: Reading in Z-buffer

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    1

    Reading in Z-buffer

    Hi.

    I was wondering whether it is possible to read in z-buffer of the current framebuffer using GL ES? From the specs I gathered that glReadPixels support only RGBA read and not the DEPTH_COMPONENT read that is required here. If it is not possible with GL ES can the same thing be done using egl? Any help on the subject is highly appreciated.

  2. #2

    Re: Reading in Z-buffer

    Hi.

    The spec doesn't allow reading of depth buffer for a good reason. For some HW implementations providing readback capability from depth buffer is ever worse than reading back the frame buffer.

    It can be provided as a vendor-specific extension though (e.g., for SW only rasterizers).

    --jani;

Similar Threads

  1. JOCL - reading CL-Buffer fails
    By r00t in forum OpenCL
    Replies: 1
    Last Post: 05-15-2011, 05:53 AM
  2. reading and writing to the frame buffer
    By dduran in forum OpenML Coding & Technical Issues
    Replies: 0
    Last Post: 03-09-2006, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •