Feature Request

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Feature Request

Post by DarkWhoppy »

There wouldn't be... by any small chance, a way to play videos using Windows Media player within the engine? I've seen an application programmed for 3D GameStudio that plays a MPEG video and then launches the game. (Realspawn created this) I don't know much about Win32 programming but I was wondering if Niko could whip up something 8) for Irrlicht thats similar to that. I just need a way to play my intro movie...

Thanks in advance!
HIM
Posts: 13
Joined: Sat Dec 20, 2003 12:22 am
Location: Stockholm, Sweden
Contact:

Post by HIM »

An easy way of doing this without adding mplayer support to irrlicht is to do it the way that the Lego Alpha Team game does it. It launches a exe file that displays the intro video. And when it's finnished it launches another exe with the actual game.

This is of course the quick and dirty solution.
Guest

Re: Feature Request

Post by Guest »

DarkWhoppy wrote:There wouldn't be... by any small chance, a way to play videos using Windows Media player within the engine? I've seen an application programmed for 3D GameStudio that plays a MPEG video and then launches the game. (Realspawn created this) I don't know much about Win32 programming but I was wondering if Niko could whip up something 8) for Irrlicht thats similar to that. I just need a way to play my intro movie...

Thanks in advance!
someone would need to write the code to read in an avi file, decode it and then present each frame of the movie in sequence. a CAVIScenenode! not that hard, but you'd need to have the avi decoding information to do it. a very cool feature thou, if someone wants to go ahead and write it. actually, i think i saw a post somewhere in the forum that talked about the CAvi class for creating avi's from within irrlicht. i think that same class can be used to read avi's too
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

There is already code on how to play an AVI file at nehe.gamedev.net , its pretty simple, and could easily be adapted to Irrlicht.

It shows how to load each frame as a texture using OGL and maps that texture to a Quad. This way you can not only play your movies, but you can have in-game .avi textures as well.
a screen cap is worth 0x100000 DWORDS
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

AVIs file sizes are too big. I've compressed my intro to an MPEG and it went from 10Mbs -> 1.2Mbs. Using Windows Media Player would greatly help for those 56Kers when they download the game. :P I'll look around for some info on how Realspawn did that application for 3DGS.
Post Reply