RLE Video in-game

While building some UI bits for the f18 game Ive been working on, I decided I really wanted the TVs in the ready room to play some actual video. I didnt want any thing huge (that consumed memory and cpu) so I decided to make one… because you can… :slight_smile:

Two days later… its looking great. Ive released the project here in a standalone example. I’ll make it extension friendly too (so you can just link it in).

Feel free to use it however you want. Happy to answer any questions about it too.

< update > For your own projects add this link in project dependencies:
https://github.com/dlannan/defold-rlevideo/archive/main.zip
Then run the Project → Fetch Libraries and you are gtg!

14 Likes

Great one! Thank you for sharing! :heart:

3 Likes

Did a little update to this.

Swapped out the io file handling to use resource loading (so it runs in web builds!) :slight_smile:

[ Side note: ] In a month or so, I expect to optimize this to use a streaming texture for the video data and do all the decompression on the gpu shader. This will make the perf quite good, especially since the data sets are quite small.

6 Likes