DirectX 9 (Z-Buffer / Depth Buffer) - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

DirectX 9 (Z-Buffer / Depth Buffer)

Dark_LightDark_Light Posts: 79Member
Has anyone ever had a problem with the Depth Buffer in DirectX 9.

The problem I am getting is that the buffer seems to filter data exclusively on the (Z axis)

This is fine when you start up the program but it you tern your camera around then the buffer filters incorrectly and you end up seeing distant objects drawn over closer objects as if the buffer was facing the wrong way.

My best guess is I need to redefine the buffer each time the camera changes but I do not know a way of doing this.

So if anyone out there has coded something in direct x where the camera moves 360 then please contact me.


Sign In or Register to comment.