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: Show a bitmap video in OpenGL

  1. #1
    Intern Newbie
    Join Date
    Mar 2014
    Posts
    32

    Show a bitmap video in OpenGL

    Hi,

    how can I upload bit maps and show it as video in OpenGL?

    Thanks

  2. #2
    Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    281
    You could theoretically show short animations by uploading to a texture array or 3D texture and running through the slices.

    If it actually has to be a longer video, I suggest using a texture array or 3D texture as a ring buffer, precacheing a few frames and continously loading the next frames as the existing ones are displayed.

  3. #3
    Intern Newbie
    Join Date
    Mar 2014
    Posts
    32
    Ok ,can u give an example to it? or put a link? Thanks :-)

  4. #4
    Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    281
    A few things first:
    • I never implemented or saw such a thing, this is just an idea how it could be done
    • You didn't specify what your video source is
    • Loading actual video files is already enough of a pygalgia as is
    • There are probalby already implementations out there that simply copy frame by frame into a texture using glTexSubImage2D (did you try a google search?)
    • this here should provide a useable explanation of what ring buffers are
    • this here should provide a useable explanation of what array textures are

Tags for this Thread

Posting Permissions

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