Jump to content
  • Advertisement
Sign in to follow this  
Andy474

[XNA C#] Problem with Depth Buffer

This topic is 3343 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!