PDA

View Full Version : how to capture a Frame / output window?



arnott
04-18-2000, 11:20 AM
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 ?

Nate
04-18-2000, 11:36 AM
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

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

S

drumminj
04-19-2000, 05:12 AM
OOh, an unregistered UIUC CS319 student. How very intriguing http://www.opengl.org/discussion_boards/ubb/smile.gif

arnott
04-27-2000, 07:31 AM
thanks.

it worked cool.