1.How can i find the absolute distance of the depth buffer?
2.How can I calculate the real value of the depth_bias and depth_scale? I tried by the commends:
glGetDoublev(GL_DEPTH_BIAS, &depth_bias); // (Returns only 0.00)
glGetDoublev(GL_DEPTH_SCALE, &depth_scale); // (Returns only 1.0 )
In my code I declared this values- zNear, zFar. and I decide what value to give them so they are not const.so the distance is dependent in the ZFAR,ZNEAR and the depthBufferValue(change from pixel to pixel) –