Noob question: How to get picture data from OpenGL generated 3D scene?

Started by betwixt666, January 30, 2010, 20:43:00

Previous topic - Next topic

betwixt666

Hi,

what i mean is: Let's say I have a simple cube rotating in OpenGL perspective that has black background and I wan't to make a picture of this cube every 10 seconds and save it as jpg in such way that I get raw picture data about the cube, about how it looks like on the screen without the black background (well actually it would be ok also if the background would be black).

I hope I was able to express myself good enough. Feel free to tell me what would be a shorter way to ask this .

Is it possible to get screen data in such way that I described?
Is there like some buffer that holds it every frame and I can somehow get it from there?

Kai

You can get the raw data of the image currently being displayed on the screen with "glReadPixels".
That would be the fastest (development time) solution.