Hey all,
I have a geometric model that is drawn with gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_LINE), which means that the entire object looks like a wireframe of triangular mesh. My problem is that when I select a polygon in the mesh, I have several hit records in my selection array and I really only want to be able to select the polygon closest to the camera (the one in front) and not behind, yet still be able to show visually everything behind the one in the front (just never select anything from behind).
Any ideas what I need to do to accomplish this? Any help much appreciated.