I am currently in charge of building an opengl-renderer for a little gamestudio at my university.
Currently I am trying to implement alphapicking, which is causing me some problems. We are using openGL with GLKit.
The game is mostly 2D, and therefor all objects are planes with textures mapped onto them. When I pick, I need to be able to determine if the picked pixel has an alphavalue < 0.1 to not have it picked then. I tried glReadPixels(...), but the returnvalues are pretty strange. The openGL selectionmode does not really help me either, since it does not apply alphachannels (does it?).
What is the basic way to do it?