Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rendering video on a texture in LibGDX

i am new to LibGDX
i'm building a game and i have an animated background that has about 10 seconds of animation (250 frames aprox.) since it's useless to try and build a sprite sheet for this (large background of course) is there a way to render video files are png sequence to a texture so i can have my animated background drawn in the game?

like image 466
Matan Poreh Avatar asked Feb 27 '12 16:02

Matan Poreh


2 Answers

There is now an extension for video playback gdx-video.

like image 133
XiaoChuan Yu Avatar answered Sep 28 '22 01:09

XiaoChuan Yu


If your idea is to put a texture on background and render the image and timely replace it to give the animation frame, then a good start is having a look here: How to draw a texture into a quad with OpenGL ES 2?

like image 42
ThreaderSlash Avatar answered Sep 28 '22 01:09

ThreaderSlash