October 18, 2012 at 15:29 #27228
A quick search on the forums hasn’t shown anything useful/recent on the subject of intro/loading videos.
Essentially once peoplepress ok on the settings screen then while the game is loading it should play back a video. Once the game has loaded any key/mouse/whatever should then skip the rest of the video.
In Android there is no settings screen so it should go straight to the video while the app loads.
Has anyone done anything like this or even made a start on it? It’s a very common feature of games so something people will expect…
ZOctober 18, 2012 at 16:57 #192744
At the moment there’s no simple way of doing it. Monolo_fan did release something, but it has no audio and he said it still needs a lot of development, so I wouldn’t expect anything easily useable in the near future, unless you want to do it yourself and then share it after <3October 18, 2012 at 17:04 #192745
In Android, there is a splash screen that can appear so that the user has something to look at until the app is loaded. It goes away automatically on the first update loop. No video though.October 18, 2012 at 19:10 #192746
so many people ask about video player…
maybe you will find something interesting here:
if not, only wait for JME solution or make one yourself.October 18, 2012 at 20:46 #192747
Ugh, I’ve been doing some reading around and the java-video-playback situation is really horrifically messy!
It’s almost easier just to point a web browser at youtube and stream the video from there!October 18, 2012 at 21:11 #192748
Hmm, this thread seems interesting: http://www.java-gaming.org/topics/java-media-player/27100/view.htmlOctober 19, 2012 at 06:06 #192749
have you tried it?October 19, 2012 at 06:39 #192750
Hmm, this thread seems interesting: http://www.java-gaming.org/topics/java-media-player/27100/view.html
Yeah, there is some interresting information thereOctober 19, 2012 at 08:37 #192751
mhhh this lib just looks like exactly what we need.
@Momoko_Fan please read the linked thread and consider this approach.October 19, 2012 at 08:50 #192752
Read through the thread it looks like “all” that would be needed is to grab YUNPM (they go through quite a few iterations in the thread and the most recent looks like it gives decent performance from what they are saying) and insert it into the correct place in the rendering system.
Assuming the proof of concept works we would also need to do a compile of ffmpeg without the problem codecs for each target platform and put the correct DLLs in the SDK for distribution along with the attribution/source stuff to comply with LGPL.
I don’t see a problem with restricting games developers to one or two open source codecs so we can avoid all the patent/etc problems that come with certain codecs. If a developer can’t cope with encoding their videos into a known format then they aren’t going to get very far anyway…October 19, 2012 at 08:57 #192753
mhhh… not sure about the patent thing though
if you skip to the last question of the FAQ it’s pretty clear there are patent issue with the codec algorithm and not only with the content…
Apart from that i tested the bundled executable and it works fine…
Looks like it would be pretty straight forward to include it into the renderer.
But this license thing has to be sorted out before..October 19, 2012 at 09:15 #192754
According to the YUNPM thread (I’ve not confirmed this myself) ffmpeg comes bundled with a bunch of codecs, however if you build it yourself you can choose what codecs to include.
If you ditch all the patent encumbered ones (for example just use Theora) there are no known patent issues. The reason no-one will give a definitive answer though is the risk that someone is sitting on a submarine patent and waiting for Theora to become big before starting to sue.
…because software patents “encourage innovation” don’t you know…
So that’s why I said about building ffmpeg ourselves for each target platform and including the dll in the SDK.
TBH I don’t see a problem with restricting developers to a certain codec. If people can manage to make a video they can manage to transcode it and 99.9% of games will only be rendering out known and included video clips anyway.October 19, 2012 at 09:20 #192755
Just for a idea since in only read quickly trough this, it would be probably a good thing if the whole video rendering stuff would be something like render to textures, since that would allow to add videos easily as game content too, not only for an fullscreen intro.
Maybe even the ImagePainter is fast enough….
just a few centsOctober 19, 2012 at 09:24 #192756
Yep, I agree.
Also we could somehow bundle an encoder for this particular format with the SDK.
@normen what do you think?
EDIT : this was meant to answer ZarchOctober 19, 2012 at 09:26 #192757
@zzueg, actually it already has the capability to render to texture.
You must be logged in to reply to this topic.