z fighting issue?

Started by
2 comments, last by Supernat02 15 years, 4 months ago
Hi Please see screen shot. Both the x and z axis lies exactly on the same plane as the 3d grid. I'd like my 3d axis lines to always show up. And if i start placing 3d objects on the grid, the grid lines won't fight with the 3d objects as well. I wonder if the right way is to always render my 3d grid lines first with disabled depth buffering. Thanks in advance.
Advertisement
If you want them to always show up draw them last with depth testing disabled or set to pass always.
Thanks works great.
You could also use depth biasing to bias each entity at a priority in the depth, but disabling depth testing is pretty much the same but faster. The downside is that it requires rendering in the correct order, but it fits perfectly for what you're doing.
Chris ByersMicrosoft DirectX MVP - 2005

This topic is closed to new replies.

Advertisement