Results 1 to 2 of 2

Thread: Zbuffer

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000


    Is there anyway to get a pointer to the Zbuffer or in any other way directly access it.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000

    Re: Zbuffer

    You can't obtain a pointer to the ZBuffer.

    The only thing you can do is read it by using glReadPixels with GL_DEPTH_COMPONENT for the "format" parameter.

    Basically, you can not have any pointer to any OpenGL buffer. glReadPixels is the only way to go (but big WARNING : it is very slow !).

    By the way, if you want to write pixels, use glDrawPixels or glCopyPixels.


Similar Threads

  1. New zbuffer to do IOT
    By santyhamer in forum OpenGL: General
    Replies: 21
    Last Post: 03-10-2004, 11:08 PM
  2. Zbuffer
    By Powerino in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 09-17-2003, 02:06 AM
  3. zbuffer
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-17-2001, 12:57 PM
  4. zbuffer notice....
    By haust in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 11-27-2000, 05:31 AM
  5. Zbuffer and 1/z-s
    By mandroka in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-17-2000, 08:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean