--- ORIGINALLY POSTED BY STARFISHER for Homeworld2 badges. Same deal works for Dawn of War ---
Save yourself some aggravation. This tool, though orignially used for Descent III, will work in DoW. Just save a single frame. Thanks to Uberjumper.
Welcome to the badge tutorial for DoW. Making a badge is a very simple process. Having done it once, you will be able to churn them out like some similie I can't even imagine. For those of you who do not have PS7, I will do a quick generic run-down of what properties a badge must have. Hopefully you can figure it out with whatever program you use.
- Badges must be 64x64 pixels.
- Banners must be 64x96 pixels.
- Image must be either a 24 or 32bit Targa (.tga).
- To use transparency, image must have an alpha channel and be 32bit.
- Image must not be compressed.
- In the alpha channel, Black is transparent and White is opaque - any value in between is partially transparent.
This assumes you have an image you want to import into DoW as a badge. I show how to make part of it transparent; if you don't want transparency, do step 1 and then skip to the saving out steps.
Open the file.
Erase the parts that you want to be transparent. You want to make sure that the checkered background is showing in these areas.
In the menu bar, select Image->Image Size..
Make sure 'Constrain Proportions' is unclicked, then change the two boxes under 'Pixel Dimensions' to 64. Click ok.
All that's left is to save out the image in the proper format. To do this, go to the menu bar. File-> Save As..
Save the file as a Targa (.tga) with 32bits/pixel resolution, in the folder C:\Program Files\THQ\Dawn of War\Badges
Thanks directed at Malignus
Doing this in PSP 7.02 is a cinch.
Make your image and select the part of it you want to be transparent using the magic wand. Then use Selections > Modify > Expand a couple of pixels to make sure you get all of the empty space, then hit Selections > Invert.
You should now have selected everything solid (i.e. non-transparent) that you want to include. Click Selections > Save to Alpha Channel.
Resize the image to 64 by 64 pixels. Then, use save as to save the image as a 24-bit, uncompressed TGA. (Make sure those options are checked in the save-as dialog box.)
From the PSP 7 help on adding an alpha channel:
Use the Save to Alpha dialog box to save a selection to an alpha channel. To open the dialog box, choose Selections > Save To Alpha Channel. This command is available only when the image contains a selection.
Using the Save to Alpha Dialog Box
When the dialog box opens, the filename of the image appears in the Available Documents box, and the selection is displayed in the Preview box.
In the Available Alpha list, double-click New Channel, or highlight New Channel and click OK. The New Channel dialog box opens.
Type a name for the new selection.
Click OK. Paint Shop Pro saves the selection to the alpha channel and closes both dialog boxes.
Thanks to Wolf359
A) Get the GIMP.
B) Find some image you want to use, in my case I used logos I could find from old/defunct sports franchises.
C) Now preferably you have an image with a white or otherwise constant background, I'll assume you want to take that out, and leave yourself with just the central image to work with.
D) Drop the image into the GIMP, you'll see the GIMP menu with the headings File, Xtns, Help and so on. The image will be in a seperate window, first thing to do is to right click on the image, scroll down to select, and chose the by color... option. This will open another window which will probably have a completely black image displayed. Move the cursor over the white (or the background, whatever color it is) to select that color. This will highlight only that portion of the image that has the color you clicked upon. If this is the color you want to delete, continue on. If not try again until you've selected what you want to erase.
E) Now, close the select by color window and return to the image, right click on the image and scroll down to the Layers menu, chose the add alpha channel option, this will prime your selected background colors for removal.
F) Once you've added the alpha channel, right click on the image again and scroll down to edit-clear. This should have the effect of deleting the background color, allowing you to see the checkerboard (transparent) background behind your image. Now select the "select rectangular regions" tool from the GIMP menu and click on your image, this will take the selection off.
G) In my case I had some trouble getting my images to face the right direction when applied as a badge, to fix this its necessary to rotate and flip the image. To rotate your image, right click on the image and scroll down to the Image menu, then to Transforms, then to Rotate, and finally select 180 to flip the image on its head. Now to flip on the horizontal plain, (usually necessary to avoid a "mirror" image) right click on your image scroll down to Tools, Transform Tools and flip, this will change your cursor to a horizontal line with two arrows at either end, left click anywhere on your image and move the mouse to the right, this will flip the image horizontally for you.
H) Right click on the image and scroll down to the image menu, scroll to the mode option and you'll see several options RGB, Grayscale and Indexed, you want your image to be RGB, so if the option is available select it, if it is not, go to the View menu and select Image Info, if it reports your image is an RGB image of at least 24 bits, your fine. This is important to remember your image needs to be 24/32 bits and RGB for it to work as a badge.
I) Now that the image is ready, we can shrink it down, apply some blurring (if you wish) and apply some transparency.
J) To shrink the image right click and bring up the menu, scroll down to the Image menu and select the Scale image option. In the upper part of the menu you will see several text boxes, below the first set labeled New Width and Height are two other boxes called Ratio X, and Y. To the right of those boxes is a small chain link, click this link and see that the chain is broken, this will allow you to select any size and not have the CPU keep the aspect ratio the same. Now in the New Width and Height boxes type in 64 for both. Once your done close the window to the Scale menu.
K) Now it helped me to blur my image some before shrinking it, when you do the bluring does not matter much but bluring will help make sure your badge doesn't have sharp jagged edges. To blur what I did was I right clicked on the image, scrolled down to the Filters menu, selected the blur menu and selected the Selective Gaussian Blur option. I usually leave the settings alone and apply the blur, this component is optional.
L) Once your image is down to badge size, it helps to add some transparency so the image wont completely cover up the markings on the Mothership or ship its applied to, this adds to realism. First right click, and scroll to the Layers menu, select Layers, Channels and Paths option. This will open a new window, all you really need to do here is click the Keep Trans. Box first, then you'll notice the Opacity slider, edit this slider to the desired level, I usually set it to 80. Once your done close the Layers Channels and Paths menu.
M) Now its time to save, right click your image and scroll to file, save as. With the menu open select the path you want your file to be saved in, also be sure to chose the TGA extension in the Save Options area, where it says Determine File Type, this will change your image name to image.tga, you're nearly done, when you hit save, the program will give you an option to Export your image, if you do NOT get this option, your image is probably not in RGB format, and you need to try again. The box will say something about needing to merge visible layers, go ahead and export, then another menu will come up with two radio boxes and two options labeled RLE Compression and Origin at Bottom Left, I usually unclick both and hit ok.
Now you have a badge ready to go, probably not the most simple thing in the world but it works. The two most important things that will agrivate you in this process that you should avoid is 1) remember to make your image an RGB image, indexed color wont work, and 2) be sure to unclick the chain relating to ratio size when resizing your image, you don't want to end up with a 69x64 or 64x67 image that looks right but wont work. Anyway I do hope this helps anyone needing to create a badge in the GIMP, good luck.
The next time you fire up DoW and use the Color Picker, you should see a new badge. If you see a weird error message or the background is messed up, you forgot to follow one of the steps above. Try again.
Wolf359 (The GIMP)