Contained in the .blend is a horrible presentation (the scene is not pretty) of the logarithmic z-buffer.
Maybe one the better artists here can take what I did and make a prettier example. All you have to do is take the five specified lines from the GLSL code and stick them in your script to get this. You probably will notice a few optimizations that could be made to it.
City made with the suicidator city engine.
ordinary mouse look
middle mouse wheel to zoom (FOV is actually dynamically changing)
space bar focuses and zooms on the city that’s 100,000 BU’s away.
Note: mouse look automatically compensates for the smaller FOV.
Comment out the line to see how the distant city looks with the old z-buffer:
67 68 #### comment this next line of code 69 #### to see what the normal z-buffer looks like. 70 #main() <--like this 71 #### 72
Download! 1.8 MB