https://www.youtube.com/watch?v=QuvAEqgHrMY&feature=youtu.be
https://www.youtube.com/watch?v=5ob1JsPIGAs&feature=youtu.be
gluPerspective(60, (float)CONTEXT_WIDTH / CONTEXT_HEIGHT, 0.1f, 1.f); //values used for first video
gluPerspective(60, (float)CONTEXT_WIDTH / CONTEXT_HEIGHT, 0.1f, 2000.f);//values used for second video, the further z clip value seems to improve the depth rendered, but far from example images below.
I set my projection matrix with gluPerspective.
This seems to happen when I try gluPerspective; when I set my projection matrix to first person.
The type of image I would like to get is
Is the visual result I am getting correct? Then are the listed examples of depth buffer images are merely a result of refining post rendering process, that are simply added in order for humans to see it better?