Jump to content
  • Advertisement
Sign in to follow this  
Andy474

[XNA C#] Problem with Depth Buffer

This topic is 3255 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

Hi Qq hopefully again. So, I am drawing an Array of 3D Tiles, using the Index if I decide that I need to draw a cube, I draw a cube. However, as when rendering 2D images, the Cube Gets Draw under the other tiles that are drawn after it. Illustration as a result I only get to see the part of the cube that cover 1/ the tile it is draw on 2/ Empty space Is there any way I can turn this option off in the GraphicsDevice? here is my current GraphicsDevice.Clear
GraphicsDevice.Clear(ClearOptions.Target | ClearOptions.DepthBuffer, Color.CornflowerBlue, 1.0f, 0);
GraphicsDevice.RenderState.CullMode = CullMode.None;

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!