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 2 of 2

Thread: Rendering video with OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2009
    Posts
    4

    Rendering video with OpenGL

    My first idea for this would be to draw two triangles using glDrawElements and then changing texture continuously with glTexImage2D.

    I've been away from OpenGL couple years now and wondering if there's better way. Preferably in OpenGL 2.1 compatible way.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    720
    Take a look at the wiki pages on Buffer Object Streaming and Pixel Buffer Objects, for ways to make the texture uploads more efficient. The basic idea is what you describe though, upload the video frames as textures and display them.

Posting Permissions

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