GL_DEPTH_COMPONENT?
I wrote:
" glReadPixels(0, 0, viewport[2], viewport[3],
GL_DEPTH_COMPONENT, GL_FLOAT, zbuffer);"
viewport[2] is the width of the window;
viewport[3] is the height of the window;
zubber is an array;
I want to get the depth component of an object on the screen, why the value from the zbuffer are all 1.0, no matter it related to a point on the object or a point on the background?
I am very confused about it, and waiting for someone''s help
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement