capturing

Hello!

I would like to capture my opengl program screen.
First, I tried to use camtasia studio. It dropped 24f frame from 25, so I searched a program that supports opengl, and is designed for real-time capturing for games.
I found the fraps program, but when I hit the F9 button to start capturing, it throwed this exception:

Exception in thread “Thread-4” net.java.games.jogl.GLException: java.lang.reflect.InvocationTargetException
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:205)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
at net.java.games.jogl.Animator$1.run(Animator.java:107)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:851)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:203)
… 3 more
Caused by: net.java.games.jogl.GLException: glGetError() returned the following error codes after a call to glClear(): GL_INVALID_ENUM
at net.java.games.jogl.DebugGL.checkGLGetError(DebugGL.java:13783)
at net.java.games.jogl.DebugGL.glClear(DebugGL.java:613)

How can I cature the screen az high speed and quality?
or, how can I fix the fraps problem?

Tanks

Thanks, not tanks:)

Here’s a different approach, which I’m pretty sure is not the best way, but I’m posting it in case no one has a better solution:

Assuming you want to capture an application which depends on user input in realtime, how about just recording anything that happens within your app? I’m not talking about the actual graphics, but e.g. user input, position and orientation of objects in each frame etc. You could easily record all of this in realtime and write it out to a text file. Then copy and modify your application so that it reads back the text file and reconstructs the scene, saving a numbered screenshot for each frame.
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1091095319;start=2#2
Refer to this thread for how to save screenshots.

While this technique isn’t as simple as utilising a screen capturing app, it has some nice advantages: Lossless quality, any resolution you want and any framerate you want. :slight_smile: