Results 1 to 3 of 3

Thread: depth buffer info

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2000
    Posts
    2

    depth buffer info

    Does anyone know how to retrieve the depth buffer data from openGL?

    Thanks in advance.

    --Matt

  2. #2
    Junior Member Newbie
    Join Date
    May 2001
    Location
    France
    Posts
    9

    Re: depth buffer info

    You have to use glReadPixels (), with format GL_DEPTH_COMPONENT

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2000
    Posts
    2

    Re: depth buffer info

    Thanks man, I figured it out like 5 minutes after I posted the question. I just hadn't noticed the GL_DEPTH_COMPONENT flag before.

Similar Threads

  1. Depth buffer reading and depth buffer test
    By BurningLegion in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-15-2007, 04:09 AM
  2. depth buffer -> depth texture -> depth buffer
    By Codemonkey in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 12-23-2005, 06:27 AM
  3. depth buffer info
    By vastcharade in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 02-28-2004, 05:18 PM
  4. Getting depth info from alpha-blended scenes
    By gsmith in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 12-15-2003, 06:41 AM
  5. Why i can't write the depth info into image file
    By victorswan in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-05-2001, 04:27 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