Mikey0727 Posted April 2, 2005 Posted April 2, 2005 (edited) In my code I tried to make a sphere mesh and render it. The mesh draws almost, but you can see through it into the background color, and the pattern I see on it changes every time. (Which I find even more strange) Can someone help? (Code Attached) Also, When I add References, I have several versions of the Directx libraries on my system. (1.02902) , (1.0900), ect. What do these mean? Thanks! Edited April 2, 2005 by mutant Quote
*Experts* mutant Posted April 2, 2005 *Experts* Posted April 2, 2005 You are not clearing your depth buffer, which is essential to draw the right pixels on your screen. Use these clear flags in your Device.Clear() method call: ClearFlags.Target | ClearFlags.ZBuffer Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.