Buffering and glReadBuffer

Hi guys

I have a little dilema, i’m new to openGL but picking it up pretty quick.

Problem is i have a main window, now i want to get the RGB out of the window which is fine using gluReadPixels, but i want to get the pixels from another camera location, without changiing the main camera view. So its like getting the pixels of something is the background from another perspective. So i’ve read up as best possible from the red book and found the glReadBuffer should be able to do this so longs double buffering is used.

Now i don’t have a clue where to start really, so any help is appreciated

Cheers :slight_smile:

You still have to re-render the scene for the different camera location. You might want to use a different buffer (stencil buffer, pbuffer, etc) rather than a draw buffer but it is your choice.