Drawing into file
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
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement