diamondgeezer: "Also, there's something about a palette, but I'm not sure about that bit - I'd be interested myself if someone were to enlighten us..."
Making good-looking ANI files was triggering myself too. I have searched over and over to bypass the palette problem... and I think I have finally found a working solution.
So, this is my (improvised) tutorial on how to build a FS2 ANI from an AVI file:
1/. Prior to anything else, you will need these tools:
*
VirtualDub *
Pseudocolor plugin for VirtualDub * A palette file for use along with this plugin; this file will describe the color palette used by FS2 by any of its ANI files; to make it, simply open Notepad (or
EditPad Lite ...), begin a new file and copy what follows in the blank window:
0 0 0
15 15 15
35 35 35
55 55 55
71 71 71
91 91 91
107 107 107
127 127 127
143 143 143
163 163 163
179 179 179
199 199 199
219 219 219
235 235 235
255 255 255
255 255 255
Each line (or index) corresponds to a Red Green Blue triplet; each of these triplets forms a color (0 0 0 = black; 255 255 255 = white ...); if you would unpack an original FS2 ANI and open one of the resulting PCX files in Paint Shop Pro, you would see that the color palette it uses "looks like" the above one. After pasting the text, save the document to "freespace2.map" in
\plugins\palettes.
* ImageConverter Basic (about 3600Kb). This program will convert 24-bit BMP files to 8-bit PCX ones in a single operation
This is a demo version, but it is enough for our purposes; by the way, I don't see where is its limitation ...
* AC: I prefer using Volition's command-line tool instead of ANIBUILDER32 because it is just simpler and you cannot define with the latter a looping point above the 100th frame. Therefore, if you would wish to build an ANI from out of more than 100 PCX files, there would be a problem when defining this point...
2/. Launch VirtualDub, open your movie; since a FS2 ANI file has a specific size (160x120), you will need to resize your movie; as same as the movie color palette correction, this will be achieved by using filters.
---- Movie resizing ---- Go to Video/Filters; click on Add and select the "Resize" filter (or the "Smart Resize" one if you have it). In the dialog that opens, select 160 as the new width and 120 as the new height. As for the filter mode, I personally enjoy the "precise bilinear" mode. Click on OK to validate your settings.
---- Color palette correction ---- Go to Video/Filters; click on Add and select the "pseudocolor" filter. In the dialog that opens, select "freespace2.map" as the palette file. Click on OK.
You can already preview the result by pressing F5.
---- Dumping movies frames to *BMP* files ---- Go to File/Save image sequence. In the dialog that opens, be sure to select 4 as the mimimum number of digits in the filename (AC needs this). Click on OK when you are done with this dialog.
3/. Converting 24-bit BMP files to 8-bit PCX ones. Go in the directory where you have saved the frames. Select them all; right click and select ImageConverter Basic/Convert to PCX. A small dialog opens asking you for settings regarding the convertion to perform. Click on the "Go" button when you have all set correctly.
4/. Last stage: building the ANI out of these PCX. If you use AC, and that the first PCX file is named "test0000.pcx" for instance, then simply run AC like this: ac test0000.pcx
At this point, AC should have created an ANI file in the directory from where you have run it, "test.ani" here.
That's all! I hope I have been clear enough in my explanations and that this method will suit your needs 