Transparent BG for inventory items

Discuss any other topics here
Post Reply
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Transparent BG for inventory items

Post by incenseman2003 »

I have made .bmp images for my inventory menu. I want to make the backgrounds for them transparent. Can someone suggest a way to do this. Please include details.

Thanks :)
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Post by paradoxnj »

Make them 32 bit and use the alpha channel. You can do this with The GIMP which is a free program.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

There are many programs that can do that. I dont argue the open source aurgument. I think its a great thing though.

I did save it 32 bit and did use the alpha channels. Still a no go.

Does anyone have any input on the subject that can give a little more detail?

Never mind I figured it out.

Thanks anyway :)
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

1. Open your image in gimp(or what ever you use)
2. Copy everything to a new document the same size.
3. Then invert the image all the white in the background should be black now, and your image will look kinda strange.
4. If you using gimp or photoshop use the fuzzy select and click in the black, causing it to select the object in the image. Then delete the selection.
5. Now save your new alpha image file with an a_ in front.
6. Open inventory.ini and add a field like this:

Code: Select all

[lockpick]
catagory = use
image = items.bmp
imagealpha = a_items.bmp
text = Lock Pick
Replace image = items.bmp with your normal image.
Replace imagealpha = a_items.bmp with your alpha image.


If your wanting to make the inventory menu's background transparent open the alpha file and make it all black.
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Post Reply