Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX 11 Flickering Polygon Edges Problem

Started by Alex Hopkins Jan 2, 2014 at 4:24 PM 0 replies 2.9k views
Original Post
Alex Hopkins
Alex Hopkins

EDIT: Stupidly, my Near plane was set too small (to combat an earlier issue). I do not know how to delete this post however.

I'm following Frank Luna's Introduction to 3D Game Programming with DirectX11 and I am seeing an issue with the edges of the polygons on screen. (I'm using Windows SDK, Effects11 and DirectXTK in my solution on Windows 7)

The intersection between the waves and hills (from chapter 8) and the edge of the crate have horrible dancing polygons, almost like Z-Fighting but not. I can't paste all my code but here is a link to a quick video clip demonstrating the effect.

YR7M5.png

Does any DirectX pro have any insight into why this might be happening or has anybody seen this before?

There is a more obvious effect on this video (ZIPPED)

https://www.dropbox.com/s/y6arcbn5c8jpcmh/MEngine%202014-01-02%2015-28-13-59533.zip

eppo
eppo

What I can think of is you've either set your camera's near-clipping distance too low or you do not clear the depth buffer at the beginning of every frame.

Best post videos to YouTube.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.