Sign in to follow this  
r_bewick

C++ DirectX 9 drawing overlap problem

Recommended Posts

Hi, over my terrain I am drawing a grid of lines. Some of the points of the grid are below the height of the terrain and therefore some of the lines are not seen. I want them to be seen without having to clear the Z buffer. Is there a way to do this? thanks, r_bewick

Share this post


Link to post
Share on other sites
In theory you could transform the vertices of the grid yourself and set the post-projection z values to be in front of the terrain geometry z values. Problem is, I don't know how to do that in DirectX, sorry. Perhaps someone else does?

Share this post


Link to post
Share on other sites
It's not exactly clear what the problem is, you could for instance experience Z-fighting.

Can you show us your drawing code and/or how you calculate the grid lines, please, ? A screenshot might be clarifying, too.

[Edited by - unbird on March 10, 2010 12:38:50 PM]

Share this post


Link to post
Share on other sites

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