PDA

View Full Version : How is depth buffer computed by opengl ?



divide
03-15-2004, 11:05 AM
How is depth buffer computed by opengl ?

Is it a linear interpolation of Z Vertex coordinates ?
Is it a linear interpolation of Vertex-Origine distances ? (sqrt(X^2+Y^2+Z^2))
Is it a per-pixel Vertex-Origine distance computation ?
Or something else.. ?

dorbie
03-15-2004, 11:33 AM
http://www.sgi.com/software/opengl/advanced98/notes/node25.html
http://www.cs.kuleuven.ac.be/cwis/research/graphics/INFOTEC/viewing-in-3d/node8.html

divide
03-15-2004, 08:33 PM
thanks http://www.opengl.org/discussion_boards/ubb/wink.gif