In OpenGL you can draw only back-facing polygons, only front facing polygons or both. If you render a manifold triangle mesh, then clear the frame-buffer but not the depth buffer, then again render only the back facing polygons. What do expect to see?
I think the following answer given to me is wrong:
You should see the back facing triangles. The first render pass will result in the depth buffer having the depth values of the triangles that are front facing. The second render pass you are rendering the back facing triangles, hence those that have the greatest depth value. Every triangle that is rasterized will have its depth value compared to the current depth value for that pixel. Since the depth buffer is set to all the closest depth values (small values) but is discriminating on the farthest depth values (large values) the back facing triangles will be rendered."
But I think the answer is:
Since the depth buffer is not cleared, and still contains the depth values of the front facing triangles, it would throw out the back facing triangles, and display nothing.
Which answer is correct?