I am currently render my geometry using "Modern OpenGL" approach (with shaders and buffers). I have already implemented picking of single primitives using
glReadPixels. Now I am faced with problem how to implement selection of multiple objects. I cannot use
glReadPixels because maximum (and it seems meaningful for me) number of objects that I could select with
10x10 box is
100. But it is really necessary for my purposes to have ability to select thousands of objects in small selection area.
I already read answer to similar question where was recommended to test each point against selection rectangle. But it gives new problems: all my vertices are already stored in buffers and it looks like huge performance to test each point on CPU.
Could someone help with such issue?