TUTORIAL: CUSTOM SPRITES IN GMOD9

FROM PhotoShopCS TO GARRYS MOD FOR HL2

By Russell Lowe

Step 1: Create a custom material with the dimensions 256 x 256 pixels in PhotoShop. Add an alpha channel under the Channels tab.

step_1

Step 2: I copied the image from the RGB channel and adjusted the levels so it was black and white only. This means the white areas showing here will make the red text in the RGB image opaque while the black areas here will make the white in the RGB image translucent.

step_2

Step 3: Save it as a *.tga file and make sure it is 32 bits/pixel (the extra 8 bits defines the alpha channel information).

step_3

Step 4: Open Steam.

step_4

Step 5: Open Cannonfodder's Studio Compiler and fill in the Material Compile tab as I have here.

step_5

Step 6: Here is the compiled *.vmt and *.vtf files in the JoeStudent folder.

step_6

Step 7: Find the gmod_sprites.txt file and open it into Notepad (or ConText or equivalent text editor).

step_7

Step 8: Create a new line with a title and directory like the one I have below. The title of the sprite doesn't show up in gmod9, but its position in the list below is consistent in the gmod9 interface.

step_8

Step 9: Save the gmod_sprites.txt file and open Gmod9 in Steam.

step_9

Step 10: Here is a short video clip showing the sprite in game.