Me and my team were just discussing the subject of cutscenes and Baro was smart enough to mention AVI files.
The question is, how does one take a Build game and make it play an AVI file in the same window the game is running in without disrupting things?
I still can't figure out in which forum these questions fit best. :?
Awesoken at
Here are your choices:
1. Find an AVI library that gives you the ability to render frames into your own frame buffer. In my experience, this usually results in an all-day session of unsuccessful googling, as you never find exactly what you want. Maybe this nehe tutorial will be helpful: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35 Keep in mind that many libraries (including this one) are not platform independent.
2. Convert your movie to a series of PNG/JPG files, along with a WAV/VOC file for sound.
3. Implement your own AVI decoder. If you restrict your movies to uncompressed AVI, this is managable, although it's probably not your best use of time.
4. Wait for JonoF to implement a platform-independent movie decompressor. Don't count on this happening anytime soon.
I think #2 is your best option since JFBuild already has platform-independent routines for PNG/JPG decompression. Note: in OpenGL mode, you'll need to call invalidatetile() after rendering each frame.
Edited at
Kyoufu Kawa at
I'm willing to sacrifice portability. I'll choose door number 1...
Edit: Bwaaack! :shock: On the other hand, let's think of the poor 56k people and go for classic Duke-style ART tiles. An easy to use alternative to door 2. :lol:
Where -do- these threads go anyway? There's a Silverman forum, a JFBuild Games forum that explicitily states Duke and SW... but no Build Coding forum :?
Awesoken at
Unless your movies are simple paintbrush-quality cartoons, you will probably get better quality per bit with JPG.
I'm not sure there are enough people messing with the Build code to warrant its own forum. You are welcome to ask questions here for now.
masterlee at
For Windows look at the DirectShow Texture3D Sample (Which is included in DX 8.0 SDK and above)
Kyoufu Kawa at
Aside from the pre-rendered cutscenes, we also discussed the pros and cons of a machinema system.
We're about to implement Lua (as a replacement for the legally unusable Con) and I'm keeping a list of things we'd need.
> Locking out the player's controls
> Switching to a third-person camera
> Controlling the camera in script
Did I miss anything? I'm sure I did.
Edit: One of the cons to the machinema system would be mouth animation, but that's all we could think of.