LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: CodeBunny on January 12, 2011, 15:16:53

Title: Video Playback
Post by: CodeBunny on January 12, 2011, 15:16:53
What's the best way to play an avi movie in LWJGL?
Title: Re: Video Playback
Post by: avm1979 on January 12, 2011, 16:11:24
Take a look at glDrawPixels.
Title: Re: Video Playback
Post by: bobjob on January 12, 2011, 18:12:13
If you dont need the movie to run inside of a scene.

I recommend just using a seperate canvas for the movie.

so hide the LWJGL canvas, then open up a movie in a new canvas.

Iv had great results with fobs4jmf (but it seems outdated now you may want to try xuggler).
Title: Re: Video Playback
Post by: CodeBunny on January 13, 2011, 23:59:06
Inside of a scene would be optimal - ideally, one could play video not only as fullscreen, but either on a texture or otherwise fit into a scene.

Still, if that's the only efficient way, it's certainly better than nothing. However, this would be in a game, so would there be any noticeable change between canvasses? It sort of needs to be as seamless as possible.