Decals

From MW4:Wiki

Jump to: navigation, search
(Transparent Decals)
(Things that will affect file size)
 
Line 1: Line 1:
-
I'll be using Photoshop 6 for this tutorial, but most image editing software newer than MS Paint should be able to do most everything in this guide. A free image editor called "GIMP" can be found at [http://www.gimp.org/ www.gimp.org].
+
I'll be using Photoshop 6 and GIMP 2 for this tutorial, but most image editing software newer than MS Paint should be able to do most everything in this guide. A free image editor called "GIMP" can be found at [http://www.gimp.org/ www.gimp.org].
-
 
+
If you would like to share your decals with others, you can upload them to this page here: [[Decal Download Page]]
-
[[image:warning.png]] Note for Photoshop CS3, CS4 and CS5 users: These versions of Photoshop handle .tga files in a way that is incompatible with MW4:Mercs needs to make transparencies work. To get these versions to work, you will need the Targa.8BI plugin from Photoshop 7.
+
-
*UPDATE: You can download the necessary plug in [http://www.jadefalconclan.com/downloads/TGA_fix_for_Photoshop.rar [here]]. Put it into your Photoshop's file format folder inside the plugins folder. This has been tested with Photoshop 8, CS3 and CS4. Thanks to AnTi90d.
+
*UPDATE: I've included some separate instructions for people using Gimp 2. The version I am using is the version that can be found at the link at the top of this page.
*UPDATE: I've included some separate instructions for people using Gimp 2. The version I am using is the version that can be found at the link at the top of this page.
 +
 +
== Making Custom Decals ==
== Making Custom Decals ==
Line 18: Line 18:
This is fairly clean with sharp edges and only two colors and it's already a square.
This is fairly clean with sharp edges and only two colors and it's already a square.
*If it hadn't been a square, I could have fixed it like this:
*If it hadn't been a square, I could have fixed it like this:
 +
 +
'''Photoshop'''
[[Image:Canvas.jpg|left|thumb|100px|Canvas Size Box]]
[[Image:Canvas.jpg|left|thumb|100px|Canvas Size Box]]
In Photoshop 6, go to Image> Canvas Size>
In Photoshop 6, go to Image> Canvas Size>
Line 29: Line 31:
 +
 +
'''Gimp'''
[[Image:Canvas2.jpg|left|thumb|100px|Canvas Size Box]]
[[Image:Canvas2.jpg|left|thumb|100px|Canvas Size Box]]
In Gimp 2, go to Image> Canvas Size>
In Gimp 2, go to Image> Canvas Size>
Line 46: Line 50:
Now I need to resize it to 64x64 pixesls.  
Now I need to resize it to 64x64 pixesls.  
 +
 +
'''Photoshop'''
*In Photoshop 6, I go to Image> Image Size> and change the width and height values to '64' pixels. Press 'OK'.
*In Photoshop 6, I go to Image> Image Size> and change the width and height values to '64' pixels. Press 'OK'.
 +
 +
'''Gimp'''
*In Gimp 2, I go to Image> Scale Image> and change the width and height values to '64' pixels. Press 'Scale'.
*In Gimp 2, I go to Image> Scale Image> and change the width and height values to '64' pixels. Press 'Scale'.
Line 142: Line 150:
<table>
<table>
<tr>
<tr>
-
<td width="600" valign=top>The first thing I will do is delete the black area of the image I don't want to be visible.
+
<td width="600" valign=top>
 +
The first thing I will do is delete the black area of the image I don't want to be visible.
 +
'''Photoshop'''
In photoshop, the magic want set to a tolerance of 5 works well.
In photoshop, the magic want set to a tolerance of 5 works well.
 +
[[Image:Magic wand.jpg]]
 +
#Use the wand to select the black areas and press delete twice. That will leave us something similar to the image to the right.
 +
:*Make sure the layer you are working isn't locked. If it is, duplicate it to a new layer and delete the locked layer.
 +
 +
'''Gimp'''
 +
#Go to Layer > Transparency > and select 'Add Alpha Channel'
 +
[[Image:Fuzzy select tool.jpg|thumb|x100px|left|Fuzzy Select Tool Settings]]
 +
#Select the 'Fuzzy Select Tool'
 +
#Set the threshold to '10'
 +
#Select the black area and press delete twice
</td>
</td>
-
<td>
+
<td valign=top>
[[Image:decal1.jpg|left|thumb|Deleting the extra stuff]]
[[Image:decal1.jpg|left|thumb|Deleting the extra stuff]]
</td>
</td>
Line 152: Line 172:
<table>
<table>
<tr>
<tr>
-
<td width="600" valign=top>Next, I will select everything and give it a heavy border. I want to do that so the border is easily visible when I shrink it down to 32x32 pixels.
+
<td width="600" valign=top>Next, I will select everything and give it a heavy border. I want to do that so the border is easily visible when I shrink it down to either 64x64 or 32x32 pixels.
-
*In photoshop, go to Layer>Layer Style>Stroke. Change the stroke color to black and the size to '10'.
+
 
 +
'''Photoshop'''
 +
#In photoshop, go to Layer>Layer Style>Stroke. Change the stroke color to black and the size to '10'.
 +
 
 +
'''Gimp'''
 +
#Select your main layer and create a duplicate layer by going to Layer> and choosing 'Duplicate Layer'
 +
#Using your Fuzzy Tool, click in the transparent background area.
 +
#Select the skull by inverting your selection. Go to Select> and choosing 'Inverse'
 +
[[Image:Stroke.jpg|thumb|left|x100px|Stroke Settings]]
 +
#Create the Stroke by going to Edit> and choosing 'Stoke Selection'
 +
#Copy the settings from the image to the left
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
[[Image:30 stroke.jpg|thumb|left|x100px|Stroke Effects]]
 +
You will end up with something that looks like this.
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
[[Image:15 stroke.jpg|thumb|left|x100px|Stroke Corrected]]
 +
#You should still have the outline of the skull selected.
 +
#If you do, simple press delete and you should get an image similar to the one to the left
 +
:*If you accidentally deselected the skull, just use the fuzzy tool to select the skull in the other layer, invert the selection, and press delete.
</td>
</td>
-
<td>
+
<td valign=top>
[[Image:decal2.jpg|left|thumb|Adding a border]]
[[Image:decal2.jpg|left|thumb|Adding a border]]
</td>
</td>
Line 162: Line 220:
<table>
<table>
<tr>
<tr>
-
<td width="600" valign=top>Now I want to be able to select my image and the new border using the magic wand.
+
<td width="600" valign=top>Now I want to flatten my image to one layer so it's easier to work with.
-
*In photoshop, the easiest way for me to do this is to create a new transparent layer below my current one, then merge it down. Go to Layer>Merge Down.
+
 
-
*Now I can use my magic want to easily select my image by clicking the empty area, then inverting my selection by going to Select>Inverse.
+
'''Photoshop'''
 +
#In photoshop, the easiest way for me to do this is to create a new transparent layer below my current one, then merge it down. Go to Layer>Merge Down. *Using Layer>Flatten Image will fill in my background with white which is something I don't want.
 +
#Now I can use my magic want to easily select my image by clicking the empty area, then inverting my selection by going to Select>Inverse.
 +
 
 +
'''Gimp'''
 +
#In Gimp, simply go to Layer> and choose 'Merge Down' until you only have one layer left
</td>
</td>
<td>
<td>
Line 173: Line 236:
<table>
<table>
<tr>
<tr>
-
<td width="600" valign=top>Now that I have my selection, I can easily create my Alpha Channel.
+
<td width="600" valign=top>
-
*In photoshop, I go to the channels window by going to Window>Show Channels. I now see four channels: RGB, Red, Green, and Blue.
+
Now I can easily create my Alpha Channel.
-
*Create a new channel by clicking 'Create New Channel' at the bottom of that window. That gives me a black square with an outline of my crossbones.
+
 
-
*I want to fill that area with white so it will be visible in my decal. Go to Edit>Fill and use White.
+
'''Photoshop'''
-
*If you want to blend it to let some of the dirt and paneling of the mech show through, make a color that is 80% grey and fill the crossbones with the paintbucket too.
+
[[Image:Alpha.jpg|thumb|100px|left|Layers Window]]
-
*After you fill it, you can deselect the image.
+
In photoshop, I go to the channels window by going to Window>Show Channels. I now see four channels: RGB, Red, Green, and Blue.
 +
#Create a new channel by clicking 'Create New Channel' at the bottom of that window. That gives me a black square with an outline of my crossbones.
 +
#I want to fill that area with white so it will be visible in my decal. Go to Edit>Fill and use White.
 +
#If you want to blend it to let some of the dirt and paneling of the mech show through, make a color that is 80% grey and fill the skull and crossbones with the paintbucket.
 +
#After you fill it, you can deselect the image.
 +
 
 +
'''Gimp'''
 +
[[Image:Alpha2.jpg|thumb|100px|left|Layers Window]]
 +
#In Gimp, right click on your layer and choose 'Add Layer Mask'. Choose 'Transfer Layer's Alpha Channel' and press 'Add'.
 +
#If you want to blend it, select your skull (Fuzzy wand/Invert) and use the paintbucket with a color of 80% grey and fill the skull and crossbones with the color. You should see the grid behind it slightly show through.
 +
#Once you are done, right click on the layer and choose 'Apply Layer Mask'.
</td>
</td>
-
<td>
+
<td valign=top valign=top>
[[Image:decal4.jpg|left|thumb|Adding the Alpha Channel]]
[[Image:decal4.jpg|left|thumb|Adding the Alpha Channel]]
</td>
</td>
Line 187: Line 260:
<table>
<table>
<tr>
<tr>
-
<td width="600" valign=top>The only step left now is to re-size the image.<br>
+
<td width="600" valign=top>The only step left now is to re-size the image. You are left with two options; You can choose to make it a 32x32 image and be done with it, or you can go an extra step and make it a 64x64 decal with transparency.
-
*In photoshop, go to Window>Show Layers and select your layer.
+
 
-
**Resize your image by going to Image>Image Size. Change the width and height fields to 32 and press OK.
+
====Resizing Your Transparent Decal====
-
**After resizing, I would suggest creating a completely black layer under your image layer to ensure there isn't any white spots on the edge of your transparencies. That is completely optional though and usually not necessary.
+
 
-
*Save as a .tga and select 32 bits/pixel. Anything less won't retain the alpha channel.
+
'''32x32 Decal'''
-
*To create a 64x64 decal with transparency, you will need to take an extra step using Gimp [See top of this page for a link].  
+
#In photoshop, go to Window>Show Layers and select your layer.
-
**First re-size your image to 64x64 instead of 32x32 and save it.  
+
##Resize your image by going to Image>Image Size. Change the width and height fields to 32 and press OK.
-
**Then open your .tga in Gimp. You should see the transparent area as being a tinted checkered pattern.  
+
##After resizing, I would suggest creating a completely black layer under your image layer to ensure there isn't any white spots on the edge of your transparencies. That is completely optional though and usually not necessary.
-
**Go to Color>Posterize. A slider with a number going from 1 to 255 should appear. The program will probably automatically select the optimum number of colors you need for your image. For my crossbones image, I only needed three. To keep your file size under 5KB, you will have to use 16 colors or less, and possibly even fewer than that.
+
#Save as a .tga and select 32 bits/pixel. Anything less won't retain the alpha channel.
-
**After you press ok, to to 'Save As' and overwrite your file. A window allowing you to use RLE compression should appear, press Yes and save. Check your file size.  
+
 
 +
'''64x64 Decal'''
 +
#To create a 64x64 decal with transparency, you will need to take an extra step using Gimp [See top of this page for a link].  
 +
##First re-size your image to 64x64 and save it as a .tga file.  
 +
##Then open your .tga in Gimp. You should see the transparent area as being a tinted checkered pattern.
 +
##Go to Image>Mode and choose 'Index'. In the window that pops up, change the number colors to the minimum you think will be acceptable for your decal. The fewer colors you use, the smaller your end file will be. *'''Change the Image back to RGB Mode!!!''' Image>Mode> Choose 'RGB'. The Decal won't work if it's left in index mode.
 +
##Go to Color>Posterize. A slider with a number going from 1 to 255 should appear. This will fine tune the number of colors you use from the previous step. Keep decreasing the number of colors until your file is smaller than 5kb. For my crossbones image, I only needed three. To keep your file size under 5KB, you will have to use 16 colors or less, and possibly even fewer than that.
 +
##After you press ok, to to 'Save As' and overwrite your file. A window allowing you to use RLE compression should appear, press Yes and save. Check your file size.  
If it's under 5KB, transfer it to your 'customdecals' folder and try it out.
If it's under 5KB, transfer it to your 'customdecals' folder and try it out.
 +
 +
==Things that will affect file size==
 +
*Alpha Channel containing more than one color - No gradients from black to white!
 +
*Colors - Try to use as few colors as you can in your decal.
 +
**Decrease the number of colors in your decal by going to Image>Mode> Choosing 'Index' and changing the number of colors there. Start with 16 colors and whittle the colors down as much as you can while keeping the image clear. Then change it back to RGB mode (Image>Mode>RGB).
 +
**You can further decrease the number of colors after that step by going to Color> and choosing Posterize. Keep doing that until the file size is below 5kb.
 +
</td>
</td>
<td>
<td>

Latest revision as of 05:21, 16 January 2011