PDA

View Full Version : Output openGL rendered sequence to movie



villaa
07-28-2009, 08:55 AM
I am looking for a way to export a rendering sequence in openGL to a movie. It seems like there must be libraries to do this but the only one I came across was:

http://www.codeproject.com/KB/directx/Si...;select=2568564 (http://www.codeproject.com/KB/directx/SimulationRecording.aspx?fid=348586&df=90&mpp=25&n oise=3&sort=Position&view=Quick&select=2568564)

Seems as if it will only work on a windows system (true?). I need a library that can be compiled to work on Unix or Linux, but preferrably one that is somewhat portable between the two.

MaxH
07-28-2009, 10:33 AM
Do you have to go directly to a movie? Is it acceptable to output a sequence of images to a directory, then use something like moviemaker or Quicktime Pro to make the movie? I do this all the time. I use either Quicktime Pro, ImageReady, or Premier Pro to make the movie from the image files.

villaa
07-28-2009, 11:09 AM
This could be acceptable, It would certainly be nicer to have the option to do either but doing what you suggest is certainly a good start! How do you do it?

Thanks
V

villaa
07-28-2009, 11:11 AM
maybe it's even better from the perspective of portability....

ZbuffeR
07-28-2009, 11:59 AM
glReadPixels the frame before swapbuffers, then write it to disk as an image. For the second part either do your output by "hand" or use image library for .png output.