Sign in to follow this  

Direct3D 9 rendering problem with ATI

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

[img]http://i54.tinypic.com/2cn8v21.png[/img]

[img]http://i55.tinypic.com/jq6rdg.jpg[/img]
Regards,

Share this post


Link to post
Share on other sites
[quote name='kauna' timestamp='1311683695' post='4840482']
Hi,
How is your z-buffer configured? What are the znear and zfar values?

Good luck!
[/quote]

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this