[Tutorial] Making a Poster Overlay

Angry_Ed

L1: Registered
May 25, 2009
41
32
Not sure if this can be answered, but I'm having another problem with my overlays. I've done everything according to the tutorial (albeit using Photoshop) and yet for some reason I'm getting a thin white border around the edges of my overlay for no discernible reason. The line seems to be only a pixel wide so it's even more confusing. I did double-check and the image size was set at 512x512, and if it hadn't I wouldn't have been able to run it through vtex anyway from what I understand. I've gone back and tried, repeatedly, to use alpha channels to make sure everything that isn't the poster will be rendered transparent, yet this border continues to persist. Below is an image showing what I mean, if anybody knows what might be causing this, I would appreciate the assistance.

118gdfn.png

(to make it easier to see I've circled/boxed in the artifacts in question)
EDIT: Direct link to image is here for those who are having trouble seeing it
 
Last edited:

Angry_Ed

L1: Registered
May 25, 2009
41
32
I could but the border doesn't seem to show up on the VTF when I import it to Photoshop. As near as I can tell the only time the artifacts show up is in Hammer and in TF2.
 

Spammish

L3: Member
Jan 2, 2010
117
34
Train looks excellent and bottom text looks good but I would suggest changing the top font to suit better. And Angry Ed, have you tried opening the original image somewhere with a background that isn't white to see if you can see it there?
 

Angry_Ed

L1: Registered
May 25, 2009
41
32
Opening it up in Photoshop and giving it a black background behind the image shows nothing out of the ordinary. I also tried removing the white background parts in the VTF itself, leaving it transparent where the alpha channel should be taking care of it anyway, and it still produces the same inexplicable result. I'm starting to wonder if it's just photoshop that's the problem and I should try doing it through GIMP instead.

EDIT: Alternatively, by messing with the U and V settings in the overlay properties I can crop out the offending lines, but this is not the best method for fixing this in my opinion simply because it will lead to there being one side of the poster just slightly more cut off than the other. Not that anybody would be able to easily tell.

EDIT EDIT: Also I tried doing this through GIMP and got the same exact problem. I am officially perplexed.
 
Last edited:

DataTraveler

L1: Registered
Aug 28, 2009
29
1
Great tutorial helped me a lot. But I have one problem. Why my posters have white color? how to remove it?

bandymassigns0000.jpg
 

Angry_Ed

L1: Registered
May 25, 2009
41
32
It seems you forgot to have an alpha channel on your source image. Did you make sure you had a transparent background and then saved the .tga in 32 bit (if applicable)?
 

Ginger

L4: Comfortable Member
Jun 29, 2010
151
56
tf2postrough.png

My first 45 mins mock up, still having troubles getting it ingame, even with lotsa help from ZPQ
 

patonki

L1: Registered
Aug 9, 2010
3
1
hello
I made one poster before I saw this thread
corgiposta2.png

I was told this doesn't fit TF2!
So then I made one following these instructions
poster.png

It was looking great in hammer
v%20exlusiv%20medja2.jpg

but after a compile problems arose
odt%20no.jpg

My god there is a white line there! Thats not in the texture!
How would I go on about deleting this!?
 
Last edited:

Spooks

L1: Registered
Jul 20, 2010
1
0
Hey! I think I might've got it. It may have to do with the fact that Hammer tiles overlays like this (increased the V End property here):
overlay_texture_tiling.jpg

So if that's the cause, making sure all the edges of your overlays are transparent (deleting pixels by as little as what, 5px? 1px?) could be a permanent solution. Give it a try!
 

patonki

L1: Registered
Aug 9, 2010
3
1
It is working now!
v%20exlusiv%20medja.jpg

So you could try that, guy who posted a page ago. Chop a couple of pixels from the edges.
 
Last edited:

Confidence Man

L1: Registered
Jun 26, 2009
47
6
So I'm having some trouble here, I'm trying to make a simple white text overlay like the Gray Gravel signs, but all I get in hammer is a pink checkerboard 64x64 opaque texture.

In GIMP, I create a 512x512 transparent background, then add the text, save as tga, and convert to vtf. Does a sign like this need a different vmt than the one posted in the tutorial?

I can find my texture in hammer but like I said it's just a little checkerboard.
 

XFunc_CaRteR

L5: Dapper Member
May 14, 2009
248
17
So I'm having some trouble here, I'm trying to make a simple white text overlay like the Gray Gravel signs, but all I get in hammer is a pink checkerboard 64x64 opaque texture.

In GIMP, I create a 512x512 transparent background, then add the text, save as tga, and convert to vtf. Does a sign like this need a different vmt than the one posted in the tutorial?

I can find my texture in hammer but like I said it's just a little checkerboard.

Each vtf has its own .vmt file. Inside the vmt it needs to point to the right location for the vtf.
 
Sep 1, 2009
573
323
So I'm having some trouble here, I'm trying to make a simple white text overlay like the Gray Gravel signs, but all I get in hammer is a pink checkerboard 64x64 opaque texture.

In GIMP, I create a 512x512 transparent background, then add the text, save as tga, and convert to vtf. Does a sign like this need a different vmt than the one posted in the tutorial?

I can find my texture in hammer but like I said it's just a little checkerboard.

Lets get this for an example :

"LightmappedGeneric"
{
"$basetexture" "signs/yourtexture"
"$decal" 1
"$decalscale" 0.25
"$translucent" 1
"%keywords" "tf"
}


Whats highlighted in red is what you change to the files name eg sign and the folder eg signs
 
Last edited:

Ginger

L4: Comfortable Member
Jun 29, 2010
151
56
Lets get this for an example :

"LightmappedGeneric"
{
"$basetexture" "signs/yourtexture"
"$decal" 1
"$decalscale" 0.25
"$translucent" 1
"%keywords" "tf"
}


Whats highlihted in red is what you change to the files name eg sign.

"LightmappedGeneric"
{
"$basetexture" "Foldername/yourtexture"
"$decal" 1
"$decalscale" 0.25
"$translucent" 1
"%keywords" "tf"
}
I made a different folder to the tutorial, and sat for hours wondering why i couldn't see it, my mind just passed it completely