cb007sax Posted February 8, 2003 Share Posted February 8, 2003 Hi everyone reading this I'm trying to make a hud Image that displays on the bottom left and bottom right screen transparent. So i went and looked at hudleft.tga and hudrightframe.tga in the assets0.pk3. I noticed that the black portions were transparent in the game. So i edited the code, and changed them to the tgas i made. When i load, i see the whole image that i made, i see no transparency where my black parts are. What did i forget to do? Thanks Link to comment Share on other sites More sharing options...
Commodus Posted February 9, 2003 Share Posted February 9, 2003 are your targas named the same as hudleft.tga and hudrightframe.tga ? There probably is a shader which tells the game to replace black with transparent, which references those names, so just rename your images to hudleft.tga and hudrightframe.tga . Or if that doesn't work, just replace the black with transparent yourself (TGA is 32 bit colour - four hex values, red, green, blue and alpha). Link to comment Share on other sites More sharing options...
cb007sax Posted February 9, 2003 Author Share Posted February 9, 2003 Hey i fixed it, turns out you gotta edit the alpha channeling in photoshop or The GIMP to make the transparency, thanks though Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.