Jump to content
  • Advertisement
Sign in to follow this  
Toack

Lost zbuffer on lower resolutions

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

I, im working on an application and i was developing it on a 1024x768 resolution (but i intended to use any resolution that the card support), anyways, recently i changed the resolution to lowers ones like 320x240 or 640x480, and the zbuffer seems to be screwed, all objects draws over eachothers, something that dont happen on 800x600 or more Im missing something ? some State ?

Share this post


Link to post
Share on other sites
Advertisement
Make sure that your near and far clip planes are good such as 1.0f and 1000.0f. What is your depth/stencil buffer set at? Have you tried an AutoDepthStencil? Something like this...

presentParams.AutoDepthStencilFormat = DepthFormat.D24S8; //24 bits for the depth and 8 bits for the stencil
presentParams.EnableAutoDepthStencil = true; //Let direct3d handle the depth buffers for the application
//Then create your device...



I hope this helps.
Take care.

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!