View Full Version : Very Simple Question!!!
09-24-2003, 11:33 PM
hi, i can't play video movie can you show me a simle code to run a movie(play).
what kind of ending the movie needs to be
thank in advanced,
09-25-2003, 12:05 AM
Look here : http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35
This is the most simple way to do that. You can use all avi codecs as far as i know.
09-25-2003, 12:08 AM
Sorry, OpenGL does not have any videosupport.
If you want to display video you need to get a library that supports some kind of video format and use that to display it with.
Do you need to show the video in OpenGL ? if you are running on Windows it might be much easier to run an avi file in a window.
On X you could have a look at libmpeg or something like that (SDL can display mpeg files for example, you have a look at the source code).
I think it would be tricky to show video using OpenGL (it would be pretty slow as you have to send down each frame using the OpenGL pipeline...)
Otherwise you would have to create each frame as a texture but that would put a huge limit on the number of frames you can have).
09-25-2003, 04:02 AM
you are the best i sensirly thank you.
you're the best!!!
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.