Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Very Simple Question!!!

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2003
    Location
    Isreal
    Posts
    2

    Very Simple Question!!!

    hi, i can't play video movie can you show me a simle code to run a movie(play).
    p.s.
    what kind of ending the movie needs to be
    (mpeg,avi,etc...)

    thank in advanced,
    david.

  2. #2
    Intern Contributor
    Join Date
    May 2003
    Location
    Cologne / Germany
    Posts
    66

    Re: Very Simple Question!!!

    Look here : http://nehe.gamedev.net/data/lessons....asp?lesson=35
    This is the most simple way to do that. You can use all avi codecs as far as i know.

    cu
    Tom

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Very Simple Question!!!

    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).

    Mikael

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2003
    Location
    Isreal
    Posts
    2

    Re: Very Simple Question!!!

    you are the best i sensirly thank you.


    you're the best!!!
    David Schnider

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •