Click to See Complete Forum and Search --> : Export OpenGl Animation to AVI
tlsn2
November 9th, 2006, 11:10 AM
Hello,
We are working on on our final project in computer graphics.
We are programming in C++ using GLUT and FreeImage library, we have this cool real time player that we are using to view our generated mesh. We were asked to add a feature that will record the camera movement and will export that to an AVI file that can be watched in a regular player.
We don't have a clue how it needs to be done - Can someone please provide us with a lead?
Thanks A lot.
JohnyDog
November 9th, 2006, 09:01 PM
Weel you need to capture each individual frame with glReadPixels and then encode them to avi using some external library (such as FFmpeg) or API. You may take a look at sources of BuGLe (http://bugle.sourceforge.net/) program, which does exactly that.
tlsn2
November 10th, 2006, 03:32 AM
Thanks a lot JohnnyDog,
I will take a look at your links...
tlsn2
November 11th, 2006, 12:40 PM
Hi JohnyDog and other good people.
I am still trying to figure out this AVI export problem, I saw I need to I build the video frame by frame.
I understood that I need to record each frame of my OpenGL program using the glReadPixels function but I still haven't found the right function in the FFmpeg that can read the openGL frame as argument and build a corresponding AVI.
Can someone please help me?
Thanks.
tlsn2
November 12th, 2006, 11:59 AM
It turned out that there is a much easier way to record the OpenGL animtion or DirectX to an AVI or MPEG File.
There is a small open source class that does exactly that.
Take a look at this link at "The Code Project":
https://secure.codeproject.com/directx/SimulationRecording.asp#Recording%20a%20Movie%20from%20OpenGL%20Rendered%20Sequence
Thanks and See you!
fazal
February 9th, 2008, 10:13 PM
Hi every one,
Is their any one who can help me?
i am doing my final year projet on multi roboti simulator, i am using openGL
as a graphics interface in c#. i have run a small peice of code to check it out working properlly, but it is failed and through an exception of "can not find the assemblly reference of tao.OpenGL Version=2.1.0.0"
Regards.
My email = fmarse_1986@yahoo.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.