How to create a texture with alpha [pics]
Hey all, this tutorial teaches you how to make a texture in photoshop that has alpha ingame.
Example:
The menu image has no background so it looks clean and tidy.
First you're going to need the basics:
- An I.Q above 30
- Knowledge of photoshop
- Knowledge of basic modding
- Knowledge of texturing
- Photoshop
- .DDS plugin for Photoshop
- CoD4 Mod Tools
Step 1.
Grab your image and load it into photoshop.
In this example, I'm getting a killfeed icon for my L96A1
Step 2.
Now you are going to select the Magic Wand tool, you have to right click the Quick Selection Tool and then select "Magic Wand Tool".
Step 3.
You now want to select the background.
Should look like this:
Step 4.
Now you're going to want to inverse the selection, so press Shift+Ctrl+I.
Should look like this:
Now click this button at the bottom left of the screen.
It will make a channel called Alpha.
If you followed this tutorial correctly you should be able to see this when you turn on the visibility for all channels.
Now use theses settings when exporting the .dds image:
Now open Asset Manager, and follow this:
Now press F10 and you should see something similar to this:
Now navigate to your modtools, then go to the raw folder, then inside materials, copy your image name.
So for me it would be hud_icon_l96a1. I copy this file to my mods materials folder.
I then navigate to the material_properties and do the same, copy your image over to the corresponding folder, so material_properties.
Repeat this with the images folder.
So...raw\materials\hud_icon_l96a1 > my_mod\materials\hud_icon_l96a1
raw\material_properties\hud_icon_l96a1 > my_mod\material_properties\hud_icon_l96a1
raw\images\hud_icon_l96a1.iwi > my_mod\images\hud_icon_l96a1.iwi
Then add this to your mod.csv:material,your_image_name
In my case its this:material,hud_icon_l96a1
Now you're done!precache your texture if you're using it in a script!precacheShader("hud_icon_l96a1");
End Result:
Related tutorials
Comments
Post comment
ONLY USERS CAN POST COMMENTS.