PDA

View Full Version : Color Picking, render to FBO and use a scissor box



eleven and two
08-16-2010, 09:49 AM
Hi,

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?

Thanks.

Best regards. Basti