Decals

From MW4:Wiki

Jump to: navigation, search
(Resizing Your Transparent Decal)
(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 155: Line 155:
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]]
[[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.
+
#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.
+
:*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'''
'''Gimp'''
-
*Go to Layer > Transparency > and select 'Add Alpha Channel'
+
#Go to Layer > Transparency > and select 'Add Alpha Channel'
[[Image:Fuzzy select tool.jpg|thumb|x100px|left|Fuzzy Select Tool Settings]]
[[Image:Fuzzy select tool.jpg|thumb|x100px|left|Fuzzy Select Tool Settings]]
-
*Select the 'Fuzzy Select Tool'
+
#Select the 'Fuzzy Select Tool'
-
*Set the threshold to '10'
+
#Set the threshold to '10'
-
*Select the black area and press delete twice
+
#Select the black area and press delete twice
</td>
</td>
<td valign=top>
<td valign=top>
Line 175: Line 175:
'''Photoshop'''
'''Photoshop'''
-
*In photoshop, go to Layer>Layer Style>Stroke. Change the stroke color to black and the size to '10'.  
+
#In photoshop, go to Layer>Layer Style>Stroke. Change the stroke color to black and the size to '10'.  
'''Gimp'''
'''Gimp'''
-
*Select your main layer and create a duplicate layer by going to Layer> and choosing 'Duplicate Layer'
+
#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.
+
#Using your Fuzzy Tool, click in the transparent background area.
-
*Select the skull by inverting your selection. Go to Select> and choosing 'Inverse'
+
#Select the skull by inverting your selection. Go to Select> and choosing 'Inverse'
[[Image:Stroke.jpg|thumb|left|x100px|Stroke Settings]]
[[Image:Stroke.jpg|thumb|left|x100px|Stroke Settings]]
-
*Create the Stroke by going to Edit> and choosing 'Stoke Selection'
+
#Create the Stroke by going to Edit> and choosing 'Stoke Selection'
-
*Copy the settings from the image to the left
+
#Copy the settings from the image to the left
Line 209: Line 209:
[[Image:15 stroke.jpg|thumb|left|x100px|Stroke Corrected]]
[[Image:15 stroke.jpg|thumb|left|x100px|Stroke Corrected]]
-
You should still have the outline of the skull selected.
+
#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 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.
+
:*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 valign=top>
<td valign=top>
Line 223: Line 223:
'''Photoshop'''
'''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.
+
#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.
-
**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.
-
*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'''
'''Gimp'''
-
*In Gimp, simply go to Layer> and choose 'Merge Down' until you only have one layer left
+
#In Gimp, simply go to Layer> and choose 'Merge Down' until you only have one layer left
</td>
</td>
<td>
<td>
Line 243: Line 242:
[[Image:Alpha.jpg|thumb|100px|left|Layers Window]]
[[Image:Alpha.jpg|thumb|100px|left|Layers Window]]
In photoshop, I go to the channels window by going to Window>Show Channels. I now see four channels: RGB, Red, Green, and Blue.
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.
+
#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.
+
#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.
+
#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.
+
#After you fill it, you can deselect the image.
'''Gimp'''
'''Gimp'''
[[Image:Alpha2.jpg|thumb|100px|left|Layers Window]]
[[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'.
+
#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.
+
#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'.
+
#Once you are done, right click on the layer and choose 'Apply Layer Mask'.
</td>
</td>
<td valign=top valign=top>
<td valign=top valign=top>
Line 266: Line 265:
'''32x32 Decal'''
'''32x32 Decal'''
-
*In photoshop, go to Window>Show Layers and select your layer.
+
#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.
+
##Resize your image by going to Image>Image Size. Change the width and height fields to 32 and press OK.
-
**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.
+
##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.
+
#Save as a .tga and select 32 bits/pixel. Anything less won't retain the alpha channel.
'''64x64 Decal'''
'''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].  
+
#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.  
+
##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.
+
##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.  
+
##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.
-
***'''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.
-
**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.  
-
**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'''
+
==Things that will affect file size==
*Alpha Channel containing more than one color - No gradients from black to white!
*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.  
*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.
+
**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 decrease the number of colors after that step by going to Color> and choosing Posterize.  
+
**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>

Latest revision as of 05:21, 16 January 2011