Show a bitmap video in OpenGL

Hi,

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

Thanks

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.

Ok ,can u give an example to it? or put a link? Thanks :slight_smile:

A few things first:

[ul]
[li]I never implemented or saw such a thing, this is just an idea how it could be done [/li][li]You didn’t specify what your video source is [/li][li]Loading actual video files is already enough of a pygalgia as is [/li][li]There are probalby already implementations out there that simply copy frame by frame into a texture using glTexSubImage2D (did you try a google search?) [/li][li]this here should provide a useable explanation of what ring buffers are [/li][li]this here should provide a useable explanation of what array textures are [/li][/ul]