Re: Problems with Depth-Buffer

From: Philip Taylor [ATI] (
Date: 05/12/04

Date: Wed, 12 May 2004 15:40:36 -0700

do the samples with z-buffer render correctly?

if so, what do they do differently?

you are clearing the color and depth buffer every frame, right?

"Thomas" <> wrote in message
> Hello,
> I'm new in programming with DirectX.
> I want to use Depth-Buffer (Z-Buffer) in my Scene.
> So I'm using the following lines of code to create the device:
> myPresentParameters.AutoDepthStencilFormat=DepthFormat.D16;
> myPresentParameters.EnableAutoDepthStencil=true;
> In the Scene there is only a Mesh.Box-Object.
> If I don't use the Z-Buffer (comment out the lines of code above) the
> is rendered right.
> When I use the Z-Buffer, the facettes of the box are sprinkled by dots. So
> can't imagine the form of the box.
> I would be glad if anyone can help me, to solve this problem.
> cu Thomas
> P.S. I use a GeForce 4200TI to render the scene.

Relevant Pages

  • Re: Problems with Depth-Buffer
    ... well I didn't clear the depthbuffer every frame. ... > you are clearing the color and depth buffer every frame, ...
  • Re: Z-Buffer problems rendering a Mesh
    ... doh. ... I wasn't clearing the z-buffer. ... thanx fro the help. ...
  • Re: z
    ... All the documentation says "depth buffer". ... textbooks and DIRECT3D say "Z-buffer" these days. ...