Jump to content
  • Advertisement
Sign in to follow this  
r_bewick

C++ DirectX 9 drawing overlap problem

This topic is 3050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!