PDA

View Full Version : About capture graph in glut or opengl



uJason
02-11-2009, 11:19 PM
Hi there, i'm a newb here, i got a sample code and i've already load my .obj model in the program.

But now what i want to do is to capture the graph from the glut-screen that showing my 3d model, can anyone help me :)? thanks alot.


here's the sample code link

3D obj model loader (http://www.xmission.com/~nate/smooth/smooth.zip)

ZbuffeR
02-12-2009, 01:18 AM
You can use glreadPixels (http://www.opengl.org/sdk/docs/man/xhtml/glReadPixels.xml) to get back all the pixels on screen at once, onto an array.