well theres no transparency in a jpg. counter strike source doesnt allow PNGs for the spray. u can use a jpg for the spray and the game automatically converts it into a vtf, which is the standard and only file type in order to use the spray feature while your playing.
my problem is i have a problem that turns 32 bit tga into a vtf file so that i can have transparency in sprays, altho, i cannot save any creations to a 32 bit tga.
to clearify, the spray in-game is technically a logo. to understand what i mean, picture a game like counter strike, and when u hit a button, it "sprays" your logo which is a 256x256 image. jpgs are adjusted to fit in this window frame of 256x256, smaller things are stretched, larger things are crushed. if u save whatever your working on, lets say your name under a desert eagle pistol, with no background (aka the transparency), into a tga. u run a program called vtex that converts the tga into a vtf file in which the game accepts and looks exactly like it did as a tga when you saved it. although, if u save the image as a jpg and try using the jpg in the game for the spray, it will be fuzzy and the background will be white, no transparent features whatsoever. keep in mind both, jpg and tga copies, are 256x256.
thats why its important that i save my work as a 32 bit tga file so: 1) it has transparent features and 2) it looks great.
another example of a transparent spray in counter stirke:
a fake model of a player with a transparent background to fool the enemy when sprays strategically around a corner, or behind an object.