How to output video to texture in Java?

I need to put video playback in my game, and the video must be in texture so that it plays inside the game world.

I am using Java (Java3D, JOGL). Any idea on how I can do this?

+3
source share
1 answer

Decode the video using any codec you need (in Java, this may require JNI). Copy the output, which is usually a pixel data buffer, into the texture. Repeat the desired frame rate.

+1
source

Source: https://habr.com/ru/post/1698034/


All Articles