grasshopper
01-04-2004, 06:45 PM
I was wondering if using glReadPixels(..., GL_DEPTH_COMPONENT, ...) will work with a transparent polygon.
For example, if I have a cube textured with transparent parts using blending (GL_ONE, GL_ONE for example), parts of the cube are fully transparent so you can see the geometry behind them. However, does the depth buffer still say that the cube is solid? Is there a way to determine whether an object behind the cube is visible?
For example, if I have a cube textured with transparent parts using blending (GL_ONE, GL_ONE for example), parts of the cube are fully transparent so you can see the geometry behind them. However, does the depth buffer still say that the cube is solid? Is there a way to determine whether an object behind the cube is visible?