views:

251

answers:

2

I need to put video playback to my game, and the video must be in a texture so that it is played inside the game world. I am using Java (Java3D, JOGL). How can I do this? Any ideas?

A: 

Decode the video using whatever codec you need (in Java this may require JNI). Copy the output data, which is typically some buffer of pixel data, to a texture. Repeat at the desired framerate.

basszero