View Full Version : how do i read from the zbuffer?
11-27-2000, 03: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.
11-28-2000, 12:38 AM
Use glReadPixels with a format parameter of GL_DEPTH_COMPONENT, and with a width and height of 1.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.