CODECUBE VENTURES

Depth Buffer Properties

Most DirectX tutorials that even mention the zbuffer only mention setting the Device.RenderStates.ZBufferEnable property to true. Unfortunately, there's a few more things you need to do before this will work.

When setting up the PresentParameters, set:

presentParams.AutoDepthStencilFormat = DepthFormat.D16; presentParams.EnableAutoDepthStencil =true;

Latest post: Digging Up the First Version of CodeCube

See more in the archives