WoWInterface (
-   Graphics Help (
-   -   Custom Textures (

Asriel 07-21-05 08:29 PM

Custom Textures
I'm trying to write my own set of unit bars and, for the health and mana bars I have my own texture, Statusbars.tga. I was using the bars from perl so I know my xml code is fine (using the perl StatusBars.tga file) but the bars that I made won't show.

Are there any specific requirements that the texture has to be meet to be able to be shown?



Gello 07-21-05 08:58 PM

It can be in either BLP format, or uncompressed TGA 32-bit (24-bit + alpha).

The sides of the texture must be a power of 2. ie, 16x16 or 64x16 or 128x128 or 256x128

Asriel 07-23-05 03:59 AM

Thanks Gello,

I think it was a problem with PaintShop pro not saving the alpha channel properly. If anyone else has that problem what I did was:

1. Use PSP to create/modify my image then save it as a tif file.
2. Open the .tif in gimp (
3. Save it as a .tga using gimp (and make sure you unclick RLE compression when it prompts you).

My unit bars will be coming up soon!

Beladona 07-23-05 12:24 PM

1 Attachment(s)
not sure what version of PSP you have, or what you are doing to create alpha channels, but mine works perfectly in creating TGA directly with alpha...

I do the following:

Create the image as you normally would, with no background (transparent background) so as to preserve the opacity.

Once you have finished creating your image, merge everything except the background, you still need the background as transparent for the alpha channel creation...

go to Layers -> New Mask Layer -> From Image and change the settings to match what I have in my example image below.

After you have created the mask layer, you can create another layer underneath everything as the background. Make this background layer black.

Select the Mask Layer you created in a previous step, and then to go Layers -> Load/Save Mask -> Save Mask to Alpha Channel. Name it Alpha Channel 1 (not sure that is necessary, but this seems to be what most alpha channels come up as when opening tga images from other sources...). Save the Alpha Channel.

Now with everything visible, including the black background, go to Layers -> Merge -> Merge All (Flatten) and save this image as a tga. You should now have a 24bit TGA + Alpha that works correctly in WOW or any other program that supports alpha channels...

Beladona 07-23-05 12:28 PM

FYI: Moved this thread to the Graphics Modification Help forum...

Gello 07-23-05 01:34 PM

PaintShop Pro 5 probably, or a version around there. WoW doesn't like the TGAs it makes at all. PaintShop Pro 9 format works great.

Asriel 07-23-05 06:42 PM

version 8.10 actually - maybe i was just doing something wrong ;)

All times are GMT -6. The time now is 02:04 AM.

vBulletin © 2018, Jelsoft Enterprises Ltd
© 2004 - 2017 MMOUI