Jump to content
  • Advertisement
Sign in to follow this  
anhnp82

Direct3D 9 rendering problem with ATI

This topic is 2550 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,
When rendering the solid cube using direct3d 9 and ATI graphics card I got nasty artifacts on the object (faces behind got rendered, many front faces did not get rendered at all). It looks like this is the z-fighting or alisasing problem. This problem only happens with ATI card, when I switched to Nvidia the artifacts disappeared but the cube looked ugly on edges. Following is the screenshots of first ATI and then Nvidia cards. Any suggestions would be appreciated.

2cn8v21.png

jq6rdg.jpg
Regards,

Share this post


Link to post
Share on other sites
Advertisement
Hi,
How is your z-buffer configured? What are the znear and zfar values?

Good luck!

Share this post


Link to post
Share on other sites

Hi,
How is your z-buffer configured? What are the znear and zfar values?

Good luck!


Hi,
Thank you for your suggestion. At first I used 0.1f for the near plane and 1000.0f for the far plane. After changing the near plane to approx. 10-100.0f the z-fighting effect disappeared.
This article mentioned this problem as well http://www.cs.vu.nl/~graphics/faq.php#faq-z
regards

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!