View Full Version : [TUTORIAL] Custom Objective Icons using Photoshop
Novacane
11-20-2007, 07:02 AM
Add some more originality to your map with some custom HUD objective icons.
I've made a template in photoshop which allows you to create whatever icons you want and still retain the TF2 feel.
Creating a Objective Icon is just like any other source material (http://developer.valvesoftware.com/wiki/Creating_a_Material).
Theres two parts to it. The VTF (the actual texture file) and the VMT (the text file which tells the engine how to render the material).
Use the VTF Photoshop Plugin (http://nemesis.thewavelength.net/index.php?p=39) to speed of the process of converting the texture files. Without this, you'll need to do it the old-fashoned way of vtex command line (http://developer.valvesoftware.com/wiki/Vtex) :thumbdown:
Tip: Create the VMT in the directory in which you want to save the VTF with the proper properties first, and the photoshop plugin will read the proper values apon save.
Get my photoshop obj_icon template here (http://nova37.com/icon_obj.zip). Just unzip and open in photoshop.
Included in PSD:
- Lock graphic w/ optional shadow
- Team color backgrounds (Red/Blue/Neutral)
- TF2 objective icon border
- Example custom container graphic
- Pre-setup alpha channel
And don't forget to pack your custom materials into your map's BSP (http://www.geocities.com/cofrdrbob/pakrat.html) for safe shipping!
Example:
http://nova37.com/obj_icon_container.jpg
In-game Example:
http://nova37.com/obj_icon_container_ingame.jpg
Example Icon VMT:
"UnlitGeneric"
{
"$translucent" 1
"$baseTexture" "sprites\obj_icons\icon_obj_container_neutral"
"$vertexcolor" 1
"$no_fullbright" 1
"$ignorez" 1
}
PS: Hope this wasn't too hard for anyone to follow. I was writing it at 8AM after being up all night :closedeyes:
I'll try to organize it a little better some other time.
spaceweasels
11-20-2007, 09:24 AM
Some great info, I'll definitely have to try this. Thanks!
PS...
I had used Pakrat before and found it kept missing textures. I switched to Map Analyst (MAN) (http://www.map-lounge.de/man/index.html), and it seems to work better.
Immortal-D
11-20-2007, 11:58 AM
Wow, very detailed too :) I'm currently working on a tc map, and was wondering how I could differentiate the various control points. Nice work!
TheBladeRoden
11-20-2007, 01:30 PM
that's pretty useful
trentish
11-27-2007, 03:38 AM
This would be really awesome if I could just get it to work! :blushing:
It shows up fine in the Hammer material menu, but in game it shows up as purple checkers. I believe I'm doing everything else correctly (packing it up and what not).
What settings should you use when you save it as a VTF using the Photoshop plugin? Like what format/template should you use and which flags should be checked?
Any help would greatly be appreciated!
Edit: Hmm... not even creating a TGA and doing it the old fashion way seems to work. Still purple checkers.
Snipergen
11-27-2007, 10:34 AM
is your .vmt right?
trentish
11-27-2007, 06:13 PM
I believe so, I'm basically copying and pasting the example one above.
trentish
11-28-2007, 12:46 AM
I figured out what it was.
Apparently when a control point is locked, it will look for the "locked" version of the sprite. So if your sprite is called: "icon_obj_blahblah", it will look for "icon_obj_blahblah_locked". You just have to make a second version and have "_locked" at the end.
die_angel
11-28-2007, 05:19 AM
can you set an individual icon for each control point?
I'm making a map that is a wee bit complicated and having a visual "clue" of what the cp is supposed to be could probably help. (i have a cp that is into a rocket, like having a little rocket symbol only on this cp icon)
can you set an individual icon for each control point?
I'm making a map that is a wee bit complicated and having a visual "clue" of what the cp is supposed to be could probably help. (i have a cp that is into a rocket, like having a little rocket symbol only on this cp icon)
Yes, as seen here in shmitz's map. cp_science
http://www.fpsbanana.com/maps/screens/38493?img=http://hedra.fpsbanana.com/ss/maps/81107.jpg
MacBeth [O.C.Reg]
01-13-2008, 06:56 PM
Handy tips - customisation is good.
Having said that, something to bear in mind, having played cp_science a little, is that standard cap point letters are a bit easier to remember than abstract symbols, so your players may find it harder to learn their way around the map.
A letter goes straight into a little brain-memory pigeon-hole because people are familiar with them - a new symbol needs more processing to remember and relocate - and it's also much easier to communicate to fellow players where you are/want to go.
When combined with an intricate layout like science it means an extra obstacle to overcome when getting players to like your new map - so take care.
Shmitz
01-13-2008, 11:08 PM
I think letters are ideal for attack/defend maps like gravelpit, where one side is clearly offense and one side is clearly defense, and you have the circumstance where more than one point may be attacked at a time. They both help with communication and tell the attacking side where to start.
With equally divided maps, however, if you choose a traditionally sequenced system, one side has to be the head and one side has to be the tail. People who have a hard time digesting unique symbols will probably also get confused if someone says "get to point E" when E is actually the starting point.
Both letters and symbols have their pros and cons. I considered using both with cp_science, but I was worried having two things to represent each point would be even more confusing. I really wish there was a way to take the flag radar from CTF mode and make it point to the next attack point in CP mode.
I had to make a locked neutral even if it can't be locked....
It gave me a purple checkerd box on startup of the map :S
I just copied the neutral texture renamed it and now it work but you never see it.
phatal
02-02-2008, 11:46 AM
With equally divided maps, however, if you choose a traditionally sequenced system, one side has to be the head and one side has to be the tail. People who have a hard time digesting unique symbols will probably also get confused if someone says "get to point E" when E is actually the starting point.
Even more difficult to say get to point "um that rocket looking thing". The level is so difficult to follow anyway that these symbols are the kicker. The main reason we took the level off our server. Just not easy to follow at all. :crying:
DrHaphazard
02-11-2008, 05:27 PM
It saddens me that people can't comprehend the symbols in cp_science. Its not freaking rocket science. It remains to this day my favorite map, but every time i join a server with it running I end up having to explain to everyone what the hell to do. gah, how can people be so slow?! /rant over
Anyways back on topic. I am gonna do a map with 5 points, labeled 1-5, and i started to do so but I have come to realize that i SUUUCK at photoshop. If i just used MSPaint I could have achieved this labeling in like 10 seconds, but nooooo.... Anyways, my real question is can i just have my sister make the symbols for me (she's actually an art major) and have her send me back the result to turn into a VTF? Does she need to download the VTF plugin you have linked? Or is that simply so you can turn the product into a VTF when you're done?
you can either use the photoshop plugin, the VTF edit standalone application or the TGAtoVTF.exe that comes with the SDK
So its really really easy to pick a method that suits your working style, personally in that situation I'd get her to send you the .tga files and then for you to convert them yourself using any of the above. That way it saves her thinking about making .VTFs
DrHaphazard
02-19-2008, 11:52 AM
N/M i figued out my problem
saucyboy
03-25-2008, 08:30 AM
Get my photoshop obj_icon template here (http://nova37.com/icon_obj.zip). Just unzip and open in photoshop.
Download link doesn't seem work.. Could really use this file!
Does anyone have the file? Would you mind attaching it to a post please.
Thanks.
Unrealomega
05-10-2008, 12:24 PM
Would I need to save it as a Normal map with Alpha?
tedrock
05-10-2008, 01:19 PM
I'm a little confused on where to put this
Quote from the orginal post "Tip: Create the VMT in the directory in which you want to save the VTF with the proper properties first, and the photoshop plugin will read the proper values apon save."
if you need more info i suggest looking at the example VTM he provides. most file paths referenced in a vtm are trailing the default material folder so his vtm would be pointing to "C:\Program Files\Steam\steamapps\ted-rock\team fortress 2\tf\sprites\obj_icons\" and icon_obj_container_neutral being the actual file name (which also gives you a clue what to name the file.
I'm a little confused on what to name this
whatever you want. as long as you reflect it in the VTM
Do I have to make this for every team who caps + neutral?
depends on your map. i wouldn't be hard to make 1 for each if you use photoshop. layers ftw
Unrealomega
05-10-2008, 02:11 PM
depends on your map. i wouldn't be hard to make 1 for each if you use photoshop. layers ftw
Figured it out after I posted. But thanks for the help. Now I have two problems. I see there are new versions of the icon_obj that use a different border. Also, when starting the map, the black-purple checkerbox appears until someone picks a class, which usually makes there is a texture missing.
Also, mind you, I'm using Paint.net with the VTF plugin, which doesn't select the template to use. So, I need to know if should use the normal map or not? :P
tedrock
05-10-2008, 08:58 PM
even in photoshop my vtf plugin doesn't select a template by default but i can assume you would want "no level of detail checked" (thought that's not mentioned in the VMT) since it's going to be on the HUD. you could always read the original tip i've referenced once already...
" Tip: Create the VMT in the directory in which you want to save the VTF with the proper properties first, and the photoshop plugin will read the proper values apon save."
meaning you don't select anything template. the vtm tells it what to use.
Big Lou
09-08-2008, 04:37 PM
Is there a new download link? The old one is broken.
Images aren't showing up. :O
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.