This guide covers adding video to your game using the ANM format, which is mostly used in the Build Engine.
This is the end result: https://www.dropbox.com/sh/vyrt7338u6rs ... uSsDa?dl=0
This requires the following:
- A video file of any kind.
A tool capable of converting videos to image sequences. (I used Rad Video Tools. I recommend a video editor.)
A tool capable of extracting audio from videos. (Audacity is capable of this.)
A program that can batch convert images to paletted .pcx files. (I used Photoshop.)
Anim2PCX (which can be found here: https://dukeworld.com/2001-current/rtcm ... s-editart/)
To begin, take the video and split it into an image sequence.
You should to name your files in this format:
Code: Select all
NAME0001
Next, choose a palette to use for your video. When using ANM, you can only use 1 palette for a video, but the palette can be any palette. I used the DN3D palette.
Now, using a program that is capable of batch converting images to paletted .pcx files... do that.
Finally, using Anim2PCX, join the frames together with this command:
Code: Select all
anim2pcx j [NAME]
STEP 2: Audio
This step is pretty simple, but may be more complicated depending on the video format you're using. For this tutorial, it will be an ideal situation with absolutely no problems whatsoever.
Simply drag and drop your video file into Audacity, which will automatically extract the audio. Then export the audio to any of these formats: OGG, FLAC, MP3, OPUS, or WAV.
Lastly, name the audio file similarly to the video file. So in my case, I would name it DOGB.OGG. But my video's audio wasn't interesting nor good, so I left it out.
That's the hard stuff out of the way! Now on to...
STEP 3: Adding the video to your mod
Place the video inside your .pk3 file. WADs are incapable of handling video due to MapInfo requiring path and extension information, so we're using a .pk3.
Create, or open, a MapInfo lump. Here's the cool part:
You can play a video in the following places inside your mod:
- At the beginning or end of a map.
At the beginning or end, or when the player dies in a cluster.
Before the title screen.
Before starting an episode.
Code: Select all
Outro {video = "DOGB.ANM" FPS = 3}
Finally, load up your mod and give it a test!
If all has gone well, your video should play at the point it is supposed to.
A quick note before this tutorial ends:
GZDoom is compatible with other video formats, like IVF, SMK and MVE, however I was unable to convert my videos to those formats successfully. It is likely that these other formats are a lot better, file-size-wise, than an ANM file.
Thanks for reading! I hope to see some mods with High Quality Full Motion Video Cutscenes in them!