r/GraphicsProgramming • u/sariug • May 22 '20
Question Best practices for 3D(or 2D) axes
Hello all. What are the best practices for 3D or 2D axes rendering for viewers. You all know those axes in bottom-left of the viewer or somewhere else over everything.
Rendering to a texture and then to a quad?
Rendering to a 1mx1mx1m Voxel away from the camera?
Looking forward to get inspired.
0
Upvotes
5
u/BigJewFingers May 23 '20
Render it last, directly to your main render target without z buffer reading. Use a modified camera matrix with a super close near plane so that it doesn't get clipped and you don't get z-fighting on your main geometry. If your camera's field of view is too big it's going to look really distorted.
8
u/[deleted] May 22 '20
Drawing simple lines?