Archived

This topic is now archived and is closed to further replies.

dawei

Drawing into file

Recommended Posts

Hi, I''d like to know, if there is a(n easy?) way to draw the OpenGL-stuff not into the window but directly (or per buffer) into a pic-file(e.g. jpeg). And all this using linux/KDE3. I''ll be happy about any answer or hint you can give! Thank you in advance, DaWei

Share this post


Link to post
Share on other sites
Render to a pbuffer, or perhaps to the backbuffer, and copy the frame to a mem-address. Then use some lib, like jpglib, jpeglib or whatever it was called, can''t remember...
I think there is an OGL example somewhere by Mark J. Kilgard which does almost what you want. Also, go to www.opengl.org and search in the forum, there has been a lot of discussion and code samples on off-screen rendering.

Share this post


Link to post
Share on other sites