Page 1 of 1

Transparent BG for inventory items

Posted: Fri Nov 03, 2006 10:10 pm
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 :)

Posted: Fri Nov 03, 2006 10:33 pm
by paradoxnj
Make them 32 bit and use the alpha channel. You can do this with The GIMP which is a free program.

Posted: Fri Nov 03, 2006 11:05 pm
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 :)

Posted: Sun Nov 05, 2006 12:40 am
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.