Reading from the Depth Buffer
Hi,
I'm wonding if there's a fast (or any) way to read the value of the depth buffer in openGL?
Thanks!
I'm wonding if there's a fast (or any) way to read the value of the depth buffer in openGL?
Thanks!
glReadPixels can do it, but it definitely isn't going to be fast. See the glReadPixels man page to find out how.
- Alex Diener
- Alex Diener
In combination with the ARB_pixel_buffer_object extension, ReadPixels can be "fast" -- not quick to execute, but asynchronous so you don't have to wait for it like you do without ARB_pbo.
Unfortunately, ARB_pbo isn't available on Mac OS X yet
Unfortunately, ARB_pbo isn't available on Mac OS X yet
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Depth Buffer Question | AnotherJake | 10 | 4,024 |
Sep 23, 2008 01:43 PM Last Post: AnotherJake |
|
| problems getting the depth buffer | akb825 | 3 | 3,791 |
Jun 2, 2006 12:51 PM Last Post: akb825 |
|
| Drawing to the Depth Buffer | unknown | 12 | 3,841 |
Dec 9, 2005 02:49 PM Last Post: OneSadCookie |
|
| Depth Buffer / Testing basic question... | WhatMeWorry | 5 | 5,884 |
Nov 18, 2005 12:50 AM Last Post: arekkusu |
|
| Depth Buffer issues. | NitroPye | 7 | 3,792 |
May 30, 2005 01:11 PM Last Post: NitroPye |
|

