Here is a tutorial explaine it:
http://www.gamedev.net/ref
Main Topics
Browse All TopicsUsing OpenGL and I'm trying to draw an image off screen. I originally tried hiding the window but this only resulted in the saved image being a screen grab of whatever was being shown at the windows coordinates.
I'm wondering if I can use a Renderbuffer Object to solve the problem. I'm not sure if this is only used to render already existing images or if it can be drawn onto directly ( i.e. glBegin()......glEnd() ).
Any other suggestions of how I might be able to draw and image off screen and save it would be welcome as I'm quickly running out of ideas.
P.S. I know that there are Graphics Engines out there that allow you to do this with a simple function call but I'm not looking to go down that route at the moment.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is a tutorial explaine it:
http://www.gamedev.net/ref
What I'm looking to be able to do is draw somethingoff screen, I'm thinking the Renderbuffer, then save it as an image without ever having to display on screen.
I've tried just drawing directly to GL_BACK but this doesn't work for Windows Vista as if the image is not rendered onto the screen the saved image will just be black. I've looked around the web for examples of drawing off screen with OpenGL but most forum relating to this usually point the person in the direction of a Graphics Engine like Qt.
My main objective here is to be able to render OpenGL images off screen and save them. I'm suspecting that drawing to the Renderbuffer might be a way of going about this.
Business Accounts
Answer for Membership
by: ikeworkPosted on 2009-08-15 at 01:21:13ID: 25104553
Hi vedeveloper,
/oglsrc/ og lsrc_14.ht m#ogl_fram e_buffer_o bject
Here is an example using the EXT_framebuffer_object extension.
http://www.codesampler.com
It renders off-scrren into a texture and renders that texture mapped onto a cube on-screen then.
ike