how to capture a Frame / output window?

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.

Nate http://nate.scuzzy.net

More specifically, the code (in this case it writes TGA files) is at: http://www-courses.cs.uiuc.edu/~cs319/mp2.html

S

OOh, an unregistered UIUC CS319 student. How very intriguing

thanks.

it worked cool.