views:

118

answers:

1

I am having some trouble with my World of Warcraft addon. Whenever I display my TGA files in the addon, there is a thin white frame around them. The same happens when I convert them to BLPs.

When I look at the images themselves with Preview, there's no white frame, but WoW decides to display one.

How do I resolve this?

+3  A: 

I'm guessing you are using TGA files with an alpha channel and the "thin white frame" is about a pixel or less.

This is usually the effect of a matte that is placed under the opaque edges of the artwork prior to calculating the alpha channel. The solution is to generate your own alpha channel and feather the edges in by a pixel or so thus masking the matte.

The explanation is actually a tad more complex than this, but the method works.

msw
And how do I go about doing this? Photoshop doesn't support TGAs with alpha, and using BLPs can be a pain. (As they don't always want to load)
Amit Ron
Photoshop since at least version 7 does support TGA with alpha-channel. If memory serves, Adobe borked TGA alpha and had to release an immediate 7.01 patch which was freely available last I looked. You do need to affirmatively create the alpha channel, the procedure for which is too long to fit in this box. Google gave me http://www.robinwood.com/Catalog/Technical/SL-Tuts/SLPages/WhiteHaloStart.html
msw