Ways around No Video Playback
Posted: Mon Feb 16, 2015 1:05 am
Hi there,
So I spent a bunch of time in blender making myself a cool splash screen with a company logo, but then I guess lua can't do video playback. I wanted to talk about the methods I'm considering to get around this and hopefully get some advice about which is the best way to go.
Loading individual PNG's
I thought about doing this but it seems like a lot of loading to do considering my video is almost 480 frames. If I do go this route I was thinking I'd load 24 frames at a time and then release them as they play so that I don't have to load all 480 images. Is this viable? Will the loading speed keep up with the playback speed?
Calling out to C to do the work
Would it be possible to load and play a video by calling out to C with lua? I know C doesn't allow playback explicitly, but if I got some library that allows video playback are there major obstacles to running that C code from within lua? I can see complications with this because C wouldn't be outputting the video to the window LOVE has created for me, maybe it isn't a viable plan.
Any other way around this
I love lua and I want to program games with it, but I also want my cool splash screen plus the ability to create cut scenes. If anybody has any ways around this problem other than the approaches I mentioned above that'd be great. Thanks in advance folks!
So I spent a bunch of time in blender making myself a cool splash screen with a company logo, but then I guess lua can't do video playback. I wanted to talk about the methods I'm considering to get around this and hopefully get some advice about which is the best way to go.
Loading individual PNG's
I thought about doing this but it seems like a lot of loading to do considering my video is almost 480 frames. If I do go this route I was thinking I'd load 24 frames at a time and then release them as they play so that I don't have to load all 480 images. Is this viable? Will the loading speed keep up with the playback speed?
Calling out to C to do the work
Would it be possible to load and play a video by calling out to C with lua? I know C doesn't allow playback explicitly, but if I got some library that allows video playback are there major obstacles to running that C code from within lua? I can see complications with this because C wouldn't be outputting the video to the window LOVE has created for me, maybe it isn't a viable plan.
Any other way around this
I love lua and I want to program games with it, but I also want my cool splash screen plus the ability to create cut scenes. If anybody has any ways around this problem other than the approaches I mentioned above that'd be great. Thanks in advance folks!