Making a movie using OpenGL
Hi!
In Nehe there is sample on how to use a movie as a texture.
How to make a movie using OpenGL?
I mean, how to capture the frames as an AVI movie?
Something like this:
startMovie(movieName);
while(!finish){
finish = MoveScene();
SaveFrame();
}
saveMovie();
If I would want to make a movie (which I just did), I would do it as a animation in 3d-studio or some other 3d-modeling program.
But if you wanna store your frames as a movie, I''ve heard there is such programs out there already that do it for you. If you look at glHorizon''s gamepage, I''m sure you can find something about it there (I remember reading that the game creator used some kind of a software to make a sample movie of the game).
The adress is:
http://www.web-discovery.net/
But if you wanna store your frames as a movie, I''ve heard there is such programs out there already that do it for you. If you look at glHorizon''s gamepage, I''m sure you can find something about it there (I remember reading that the game creator used some kind of a software to make a sample movie of the game).
The adress is:
http://www.web-discovery.net/
one way you can do it to save every frame and dump it to disk as image file or you can somehow include some video codec and dump them straight into avi/mpeg. There is an example how to do it under downloads on NeHe''s page.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
I have created an AVI creator class, so if you are using C++, I can send it to you, maybe clean it up a bit first. It grabs the pixels from the frame using glReadPixels, and writes to an AVI. If you are interested in doing your own code, I got my info from a Google search. Unfortunately, I don't remember where! Just search long enough, and there are tutorials out there.
I did a search, and found the web page I used. Go here
[edited by - variant on October 29, 2002 3:06:53 PM]
I did a search, and found the web page I used. Go here
[edited by - variant on October 29, 2002 3:06:53 PM]
Hi, variant.
I would like to know your class!
Do you know some libs or classes to write GIF or jpeg movies?
I would like to know your class!
Do you know some libs or classes to write GIF or jpeg movies?
Let me take some time to comment the code and clean it up. Right now I''ve only done work with AVI''s, so I don''t have any info on GIF''s or JPEG movies. Send me an email at avariant@hotmail.com and I''ll reply with the code.
www.fraps.com (or .org or so?) can capture every game you play into a movie file.. and count fps, etc.. it''s quite cool.. (still, for making a real movie, you should capture them yourself..)
"take a look around" - limp bizkit
www.google.com
"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement