Glitches/disappearing vertices

Started by
8 comments, last by Danzence 15 years, 5 months ago
Hi, I have been following Riemer's tutorials for DirectX9, I went through the C# and the C++ versions, both suffering from the same problems. At certain angles, the landscape glitches, part of it is drawn behind stuff that is not suppose to be in front of it. I can illustrate with a screenshot if necessary and also provide the code used to render it. Does anyone else have this issue or know what causes it / how to fix it? Thankyou!
Advertisement
Anyone?
It's either depth buffering or the far clip plane.
Hm.. is there any way to get around it then? I'd like to be able to display it all at once because it's a preview of the landscape.
Quote:Original post by Danzence
Hm.. is there any way to get around it then? I'd like to be able to display it all at once because it's a preview of the landscape.
Yes.

Enable depth buffering.
Change the far clipping plane.

Study the code you are copying more carefully.

How do I enable depth buffering?
http://msdn.microsoft.com/en-us/library/bb976071.aspx <-read

And a screenshot would help, incase it's something else.
http://dmkp.wildman-productions.org/screenshots/glitches.jpg
That might also be culling. Toggle it on or off and see what happens.
Turned culling off, problem still there =/


I even set the far clipping plane to less than the near, I could still see everything xD

This topic is closed to new replies.

Advertisement