• Advertisement
Sign in to follow this  

EDIT: (SOLVED) Draw AABBs with depth testing?

This topic is 1186 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.

 

[attachment=24741:aabb.png]

 

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

  • Advertisement