Xhairs

axmanaxman Join Date: 2004-02-20 Member: 26724Members
<div class="IPBDescription">help tranparentcy</div> I have made this x hair for my necro pistol but i dont know how to make the black in the picture be transparent

Here's the pic for those who can fix it

~Saved as png b/c bmp wont upload~

Comments

  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited May 2004
    You have to make sure the areas you want transparent are colored with the last color in the palette (this can be any color, but a high-contrast color is best). Then, when compiling, use AlphaTest transparency.

    In my example, I've chosen to use red as the transparency color, and have already configured the palette accordingly. You can take the PNG from below, convert it to a BMP, and then directly compile it.
  • axmanaxman Join Date: 2004-02-20 Member: 26724Members
    yeah so i did that with this web strand and it doesnt work whats wrong???
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited May 2004
    Again, the transparency color you've chosen is not the last color of the palette. Remember, you have to put that color (in this case, beige) as the last color of a 256-color palette. The last color of the palette right now, is black.

    Although, I would suggest you use a more contrasting color, such as blue or green, for this particular sprite.

    So, in short, keep these points in mind:<ul><li><b>Always</b> use a 256-color palette</li><li>If the image editor can't draw out 256 colors from the image, fill it up manually</li><li>Color the areas you want transparent, with the last color in the palette</li><li>Try to use a high contrast color</li></ul>The image below has been fixed, and should compile correctly. However, the sprite won't 'connect' properly in-game. You can see that the top and bottom joints are cut at the wrong places.
Sign In or Register to comment.