Color Picking, render to FBO and use a scissor box


I realised my picking mode by rendering the primitives to an fbo (Framebuffer Object) and then reading them back with readpixels().

Also I use a scissor box on the fbo to minimize the work for the gpu.

Is this approach considered “good” for picking? Especially the offscreen rendering to the fbo part? Is it better to use the pbuffer?


Best regards. Basti