• Advertisement
Sign in to follow this  

[XNA C#] Problem with Depth Buffer

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

  • Advertisement