|
|
what is depth buffer?
what is the meaning of depth buffer in opengl programming? Anyone
please explain to me. Thanks.
|
|
0
|
|
|
|
Reply
|
quanghoc (2)
|
8/28/2003 6:54:37 AM |
|
> what is the meaning of depth buffer in opengl programming? Anyone
> please explain to me. Thanks.
in general a depth buffer is a 32bit memory which represents every point of
your viewport.
But only the z-values(the depth of your primitives/points) are stored.
You could imagine it is working like a "sieve"(dunno if this word can be
used in this meaning).
If a pixel of a primitive is to be rendered to the screen, it's z-value is
written to the depth buffer where in simple words the following happens:
1.compare the z-value to be written with the existing z-value in buffer for
this pixel
2. if z-value<old z-value ->write this pixel
else do not write this pixel
What you get in the end is a picture where objects are overlapped like in
reality.
Other ways to achive this is to draw all objects in a scene from back to
front, but this requieres sorting, which depth-buffers do not need.
BTW: this is not only a OpenGL thing, it's a widely used tech. in
computergraphics.
kind regards psy
p.s. my english is bad, i know^^
|
|
0
|
|
|
|
Reply
|
Sebastian
|
8/28/2003 10:18:34 AM
|
|
Thanks. I got it now.
|
|
0
|
|
|
|
Reply
|
quanghoc
|
8/29/2003 5:33:05 AM
|
|
|
2 Replies
461 Views
(page loaded in 0.054 seconds)
Similiar Articles: what is depth buffer? - comp.graphics.api.openglwhat is the meaning of depth buffer in opengl programming? Anyone please explain to me. Thanks. ... FBO: depth render buffer objects - comp.graphics.api.opengl ...Hi group, For creating a shadow map I've set up a depth render buffer object, using this code: GLuint frameBuffer = 0; GLuint renderBuff... Alpha blending with depth buffer - comp.graphics.api.opengl ...Well, the OpenGL RedBook chapter 6 "Blending, Antialiasing, Fog, and Polygon Offset" says in sub-chapter "Three-Dimensional Blending with the Depth Buffer" : >> If ... still struggling with FBOs and depth texture (for shadow map ...Looking for suggestions on what I am missing in this process. My FBO setup for drawing a scene to a texture (color buffer) works just fine. The FBO ... Write Depth Map to Depth buffer - comp.graphics.api.opengl ...Hi, I'm writting a program that would insert a 3D object in a 2D scene. To do that I need to write a previously calculated Depth Map to the Depth buffer. renderbuffer objects - comp.graphics.api.openglHi! I am reading about renderbuffer objects (as a part of the fbo extension) and know that they can be used to save the depth buffer. I just wonder ... Blending in OpenGL - comp.graphics.api.opengldraw() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); gluLookAt(0.0f, 0.0f, 50.0f, 0.0f, 0.0f, 0.0f, 0, 1, 0); glEnable(GL_DEPTH_TEST); glEnable ... alpha blending of lines on polygons with depth - comp.graphics.api ...TGA /BMP to RGBA - Newbie - comp.graphics.api.opengl What you probably want, is enable alpha blending ... to not get screwed up by the depth buffer, which is not aware of ... PIXELFORMATDESCRIPTOR - comp.graphics.api.openglwhat is depth buffer? - comp.graphics.api.opengl what is the meaning of depth buffer in opengl programming? Anyone please explain to me. Thanks. ... glutSwapBuffers and glClear on a double buffer - comp.graphics.api ...According to the glutSwapBuffers() API documentation [1], "the contents of the back buffer then become undefined" after this call. So, what is the possible use of calling ... What Is a Depth Buffer? - Microsoft Corporation: Software ...A depth buffer contains per-pixel floating-point data for the z depth of each pixel rendered. A depth buffer may also contain stencil data which can be used to do ... Z-buffering - Wikipedia, the free encyclopediaIn computer graphics, z-buffering is the management of image depth coordinates in three-dimensional (3-D) graphics, usually done in hardware, sometimes in software. 7/22/2012 5:40:42 PM
|
|
|
|
|
|
|
|
|