Jump to content
  • Advertisement
Sign in to follow this  

EDIT: (SOLVED) Draw AABBs with depth testing?

This topic is 1456 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

So I just got AABB rendering working; each mesh has a min/max vec3 from which a cube is built, and a linestrip traverses its 8 points and draws the AABB. This is a separate debug pass after all the geometry and shading has been completed (and I'd like to keep it that way if possible).


Now the problem is because I'm not actually drawing all the actual meshes again (jsut the AABBs) the depth testing dosn't work, which means the AABBs aren't culled and so there is simply too much cluttering for it to be useful.




Is there any good way to solve this?


EDIT: After debugging with RenderDoc, I noticed I simply forgot to enable depth testing. Nevermind, move along people, nothing to see here...

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!