Original Post
Hey, on the subject of clicking on 3d objects and having it select them:
I''m currently just finding the screen coordinates of the center of the object and checking which is closest on the screen to where they clicked. I was wondering if there was some way to assign each triangle an arbitrary number, and have that drawn to some surface offscreen somewhere. You see what I mean? This way, on a pixel-to-pixel basis, I would know what polygon was clicked on. Is that a stencil buffer?