OpenGL Discussion and Help Forums
>
DEVELOPERS
>
OpenGL coding: advanced
> how do i read from the zbuffer?
PDA
View Full Version :
how do i read from the zbuffer?
aphex
11-27-2000, 02:18 PM
ok, i need to read what is the z pos given a raster x,y position... how do i do it? sounds simple, but i don't get it.
mcraighead
11-27-2000, 11:38 PM
Use glReadPixels with a format parameter of GL_DEPTH_COMPONENT, and with a width and height of 1.
- Matt
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.