Sign in to follow this  

[SlimDX, DX9] Change depth buffer.

This topic is 2664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to change depth buffer surface when AutoDepthStencil is enabled?

For some purpose i want to draw scene with usage of two depth buffers. I render part of 3d objects with original depth buffer. Then i create addition depth buffer set it to device and render other part of 3d objects with addition depth buffer. Then set original depth buffer to device and dispose the additional depth buffer. As result all 3d objects which used additional depth buffer is visible on back buffer. Some objects which which used original depth buffer is visible on back buffer and someone no.

Note, I clear two depth buffers before usage. In PIX my scene renders correctly. This means that all 3d objects are on frame buffer. There are no any information in debug output.

Share this post


Link to post
Share on other sites

This topic is 2664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this