Jump to content
  • Advertisement
Sign in to follow this  
belgreth

depth issue, seeing terrain behind closer terrain

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

Hey guys! Pretty new to 3d/xna programming. I got a editor up and running where I can move the mouse across the terrain and raise/lower it in a circle. I just came across a problem where, when I raise the terrain high enough I can see the terrain that's supposed to be behind it. (Plus I can click on it through the closer terrain as well). Now the weird thing is, if I move around the "mountain", at a certain angle I can no longer see the terrain behind it (as it should be). What's causing this? I have no clue what to search for as google is not being very fruitful.

Share this post


Link to post
Share on other sites
Advertisement
Meh...it helps to have graphicsdevice.RenderState.DepthBufferEnable set to true...although its description says it defaults to that...anyways, my problem is now fixed ^^

Share this post


Link to post
Share on other sites
Are you using SpriteBatch anywhere? Using a SpriteBatch will disable that render state.

Share this post


Link to post
Share on other sites
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!