Jump to content
  • Advertisement
Sign in to follow this  
user88

[SlimDX, DX9] Change depth buffer.

This topic is 2973 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!