we wrote a program to display molecules at different time from a data file.how to capture the output for each time frame and save it ?
Take a look at the glReadPixels() function. It allows you to read a block of pixels from OpenGL’s frame buffer.
More specifically, the code (in this case it writes TGA files) is at: http://www-courses.cs.uiuc.edu/~cs319/mp2.html
OOh, an unregistered UIUC CS319 student. How very intriguing
it worked cool.