Jump to content
  • Advertisement
Sign in to follow this  
Erik Sintorn

OpenGL How to get a video screenshot?

This topic is 4483 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I'd like to make some videos demonstrating my results in an opengl program, now how do I do that? Stills are no problem, just grab 'em from GIMP or whatever, but I don't know how to make a video capture? I'm sure this has been asked before, but I searched and couldn't find anything. Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement
since it does not have to run in realtime when recording the video, you can use glReadPixels every frame and write the result as images to disk. The you can use some software to make a video out of them (mencoder comes in mind, i think virtual doubt can do this sort of thing also)

Share this post


Link to post
Share on other sites
You could capture the screenbuffer and write it into some common
format (tga or jpg)...

However since it tends to get big, your hdd might not be fast enough,
to store the files without drastic drops in framerate.
In that case you have to trick around with the time-delta's you input
into your engine.

You probably have an 'advanceTime(float seconds)' function which updates
your logic and stuff..
Call that with a constant time (eg 1/20). Then do the framecapture
and convert the single frames into a movie.

Share this post


Link to post
Share on other sites
Quote:
In that case you have to trick around with the time-delta's you input
into your engine.


you have to do that anyway, since the video will be played back with constan frame rate.

Share this post


Link to post
Share on other sites
Thanks Vilio, FRAPS did exactly what I was looking for. Just start FRAPS, start my app and press F9 when i want to record an avi file. There is a 30 seconds limit for the unregistered version, but that's enough for me.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!